arXiv:2508.06533cs.CLcs.AI2025-08被引 4

优化多语言分词器,提升效率与模型性能

The Art of Breaking Words: Rethinking Multilingual Tokenizer Design

  • 基于语料组成与预分词策略,设计新型分词数据组合算法
  • 相比现有方法,平均词元比降低6%,多语言模型提升超40%
  • 适合关注多语言LLM效率、分词优化的研究者与工程师

尽管模型架构和训练目标已得到充分研究,多语言环境下的分词仍相对被忽视。现有分词器常出现词元与词的比例过高、上下文长度利用效率低、推理速度慢等问题。本文系统研究了词汇表大小、预分词规则及训练语料构成对词元效率与模型质量的影响。为确保分析的语义多样性,我们在印地语系文字上开展广泛实验,这些文字因书写体系多样且拼写复杂而具挑战性。基于分析结果,我们提出一种新的数据组合算法,以平衡多语言语料用于分词器训练。预分词策略的优化显著提升了模型表现,新算法使平均词元比相较传统随机化方法降低约6%。与当前最先进的多语言印地语模型相比,本分词器在词元效率上平均提升超过40%,并带来可测量的模型性能和推理速度提升。这表明分词应与架构和训练目标并列,成为构建高效、可扩展多语言大模型的关键杠杆。

原文摘要 · Abstract (English)

While model architecture and training objectives are well-studied, tokenization, particularly in multilingual contexts, remains a relatively neglected aspect of Large Language Model (LLM) development. Existing tokenizers often exhibit high token-to-word ratios, inefficient use of context length, and slower inference. We present a systematic study that links vocabulary size, pre-tokenization rules, and training-corpus composition to both token-to-word efficiency and model quality. To ground our analysis in a linguistically diverse context, we conduct extensive experiments on Indic scripts, which present unique challenges due to their high script diversity and orthographic complexity. Drawing on the insights from these analyses, we propose a novel algorithm for data composition that balances multilingual data for tokenizer training. Our observations on pretokenization strategies significantly improve model performance, and our data composition algorithm reduces the average token-to-word ratio by approximately 6% with respect to the conventional data randomization approach. Our tokenizer achieves more than 40% improvement on average token-to-word ratio against stateof-the-art multilingual Indic models. This improvement yields measurable gains in both model performance and inference speed. This highlights tokenization alongside architecture and training objectives as a critical lever for building efficient, scalable multilingual LLMs

分词器多语言效率优化LLM

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。