MUTANT:多语言分词设计的配方
MUTANT: A Recipe for Multilingual Tokenizer Design
AI总结:
本文提出MUTANT多语言分词方法,通过精心设计词汇和训练数据、语言感知预分词和子词多词感知训练,提升多语言LLM的分词效果,MUTANT-Indic在22种印度语言上实现SOTA性能。
摘要:
分词在确定大型语言模型(LLM)的性能、训练效率和推理成本中起着关键作用。设计有效的多语言LLM分词器尤其具有挑战性,因为存在多样化的脚本和丰富的形态学变化。虽然子词方法如字节对编码(BPE)被广泛采用,但其在多语言环境中的有效性仍待探索。我们提出了MUTANT,一种构建多语言分词器的配方,包含精心设计的词汇和训练数据、语言感知预分词以及子词和多词感知训练。我们还介绍了MUTANT-Indic,一种针对印度特定多语言LLM的分词器,能够生成语言上连贯的分词并实现SOTA性能。在英语、22种印度语言和代码数据上评估,我们的分词器在LLaMA4上平均生育率提高了39.5%,在Sutra(当前最佳)上提高了18%。这在保持英语和印度基准性能的同时,使推理吞吐量比LLaMA4提高了44%。我们展示了分词训练数据大小、词汇大小、合并技术以及预分词策略的详细消融研究,证明了我们的设计选择的鲁棒性。
英文摘要:
Tokenizers play a crucial role in determining the performance, training efficiency, and the inference cost of Large Language Models (LLMs). Designing effective tokenizers for multilingual LLMs is particularly challenging due to diverse scripts and rich morphological variation. While subword methods like Byte Pair Encoding (BPE) are widely adopted, their effectiveness in multilingual settings remains underexplored. We present MUTANT, a recipe for building multilingual tokenizers, with careful vocabulary and training data design, language-aware pre-tokenization, and subword and multiword aware training. We also introduce MUTANT-Indic, a tokenizer for India-specific multilingual LLMs, that produces linguistically coherent tokens and achieves state-of-the-art performance. Evaluated across English, 22 Indian languages and code data, our tokenizer improves the average fertility score by 39.5%$ over LLaMA4 and by 18% over Sutra (the current best). This translates to 44% improvement in inference throughput over LLaMA4 while maintaining comparable performance on English and Indic benchmarks. We present detailed ablations across tokenizer training data size, vocabulary size, merging techniques, and pre-tokenization strategies, demonstrating the robustness of our design choices.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。