arXivDaily arXiv每日学术速递 周一至周五更新
​通知:联邦节假日调休:哥伦布日 / 原住民日(Columbus Day / Indigenous Peoples' Day),今日(13日)无更新。
arXiv 2605.29992cs.CL

通过跨语言分词器手术和离线蒸馏使多语言嵌入模型适应土耳其语

Adapting Multilingual Embedding Models to Turkish via Cross-Lingual Tokenizer Surgery and Offline Distillation

Yıldız Technical University(Yıldız技术大学);Istanbul Bilgi University(伊斯坦布尔比尔格大学)

M. Ali Bayram, Banu Diri, Savaş Yıldırım

AI总结:

提出一种高效的三阶段适应流程,通过跨语言分词器优化、教师模型克隆和离线蒸馏,构建了土耳其语句子嵌入模型embeddingmagibu-200m,在STSbTR上超越教师模型,并在TR-MTEB上以更少参数达到竞争性能。

摘要:

句子嵌入是语义搜索、聚类、分类和检索增强生成的基础组件。本文提出了embeddingmagibu-200m,一个专注于土耳其语的句子嵌入模型,生成768维L2归一化向量,支持8192个token的上下文窗口,远超早期基于BERT的土耳其语编码器的512 token限制。无需完整预训练,引入了一个高效的三阶段适应流程:(1) 通过从教师词汇表中修剪冗余token,并基于40语言语料库的频率分析纳入多语言token,构建一个词汇量为131,072的土耳其语优化多语言分词器;(2) 克隆教师嵌入模型,同时保留transformer骨干权重,并通过均值组合token映射为新的词汇表初始化兼容的嵌入表;(3) 使用余弦相似度目标,在平衡的40语言维基百科语料库上,从预计算的教师向量进行离线嵌入蒸馏。得到的student模型约有2亿参数,在单个GPU上训练约四小时,通过避免训练期间的在线教师推理,总成本为5-20美元。实验表明,在STSbTR上,Pearson/Spearman相关系数达到77.55%/77.45%,超过了3亿参数的教师模型(73.84%/72.92%)。在TR-MTEB(26个任务)上,平均得分为63.9%(在26个模型中排名第7),提供了有竞争力的成本-质量权衡,参数比教师少33%。为促进可复现性和下游使用,所有工件均已发布,包括模型权重、分词器文件、预计算嵌入数据集以及开源克隆和蒸馏工具。

英文摘要:

Sentence embeddings are a foundational component for semantic search, clustering, classification, and retrieval-augmented generation. This paper presents embeddingmagibu-200m, a Turkish-focused sentence embedding model that produces 768-dimensional L2-normalized vectors and supports an 8,192-token context window, far exceeding the 512-token limit of earlier BERT-based Turkish encoders. Instead of full pretraining, an efficient three-stage adaptation pipeline is introduced: (1) construct a Turkish-optimized multilingual tokenizer with a 131,072 vocabulary by pruning redundant tokens from the teacher's vocabulary and incorporating multilingual tokens via frequency analysis on a 40-language corpus, (2) clone a teacher embedding model while preserving transformer backbone weights and initializing a compatible embedding table for the new vocabulary via mean-composition token mapping, and (3) perform offline embedding distillation from precomputed teacher vectors using a cosine similarity objective over a balanced 40-language Wikipedia corpus. The resulting student model contains approximately 200M parameters and trains in roughly four hours on a single GPU by avoiding online teacher inference during training, at a total cost of $5-$20. Empirically, Pearson/Spearman correlations of 77.55%/77.45% are obtained on STSbTR, surpassing the 300M-parameter teacher model (73.84%/72.92%). On TR-MTEB (26 tasks), a mean score of 63.9% is achieved (7th out of 26 models), providing a competitive cost-quality trade-off with 33% fewer parameters than the teacher. To facilitate reproducibility and downstream use, all artifacts are released including model weights, tokenizer files, precomputed embedding datasets, and open-source cloning and distillation tooling.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑