MUTANT: A Recipe for Multilingual Tokenizer Design

TL;DR

MUTANT employs a two-stage BPE training with language-aware preprocessing, reducing fertility by 39.5%, boosting inference throughput by 44%.

cs.CL 🔴 Advanced 2025-11-05 50 views
Souvik Rana Arul Menezes Ashish Kulkarni Chandra Khatri Shubham Agarwal
multilingual tokenizer design deep learning BPE efficiency

Key Findings

Methodology

MUTANT adopts a two-stage curriculum based on byte pair encoding (BPE), integrating language-aware preprocessing such as regex-based normalization and script-specific tokenization. The first stage involves fine-grained subword learning within word boundaries, ensuring semantic units are preserved. The second stage allows cross-word merging to form multiword expressions, improving compression and reducing sequence length. Vocabulary allocation is script-aware, balancing high- and low-resource languages through corpus-driven alignment. The approach emphasizes linguistic coherence and efficiency, validated through extensive ablation studies.

Key Results

  • Across 22 Indian languages, English, and code datasets, MUTANT-Indic reduces fertility scores by 39.5% compared to LLaMA4, and by 18% versus Sutra, indicating less fragmentation and higher efficiency.
  • Inference throughput improves by 44%, with models trained using MUTANT-Indic showing faster response times without performance loss on downstream tasks.
  • Ablation experiments reveal that data size, vocabulary, and preprocessing strategies significantly influence performance, confirming the robustness of the design choices.

Significance

This work addresses the persistent challenge of vocabulary fragmentation in multilingual models, especially for morphologically rich and low-resource languages. By systematically integrating linguistic insights into tokenizer design, it enhances both efficiency and fairness, facilitating broader deployment of multilingual large language models. The methodology bridges the gap between linguistic theory and neural modeling, offering a scalable, reproducible framework that can be adopted across diverse language scenarios, thus advancing the state-of-the-art in multilingual NLP.

Technical Contribution

The paper introduces a novel two-stage curriculum for BPE training, combining subword and multiword learning, guided by language-aware preprocessing. It innovates by embedding linguistic knowledge into the tokenization pipeline, balancing vocabulary coverage with semantic coherence. The approach demonstrates significant improvements in fertility, compression, and inference speed, validated through comprehensive benchmarks and ablation studies. It also provides a systematic framework for script-aware vocabulary allocation, setting new standards for multilingual tokenizer design.

Novelty

This is the first work to systematically combine two-stage curriculum learning with language-specific preprocessing for multilingual tokenization, especially targeting morphologically complex and resource-scarce languages like those in India. Unlike traditional single-stage BPE or WordPiece models, MUTANT emphasizes multiword expressions and script-aware normalization, leading to substantial reductions in fragmentation and improvements in efficiency and fairness.

Limitations

  • The approach may still face challenges with extremely low-resource or newly emerging scripts, where training data and linguistic resources are limited, affecting vocabulary coverage.
  • Preprocessing and multiword learning introduce additional computational overhead during training and inference, which could impact large-scale deployment.
  • Capturing complex phonological and morphological features in certain scripts remains limited, requiring further integration of phonetic and semantic information.

Future Work

Future research will focus on adaptive multiword learning mechanisms, integrating phonetic and semantic features for better low-resource language coverage. Expanding the framework to include multi-modal data (e.g., speech, images) and cross-lingual transfer learning will be explored. Additionally, efforts will be made to optimize preprocessing efficiency and extend evaluation benchmarks to ensure broader applicability and fairness.

AI Executive Summary

The rapid growth of multilingual large language models has highlighted the critical importance of efficient and fair tokenization. Traditional subword algorithms like Byte Pair Encoding (BPE) excel in resource-rich languages like English but struggle with morphologically complex, low-resource languages, often leading to excessive sequence lengths, high computational costs, and linguistic fragmentation. Addressing these issues, this paper introduces MUTANT, a systematic recipe for multilingual tokenizer design that leverages a two-stage curriculum training process combined with language-aware preprocessing.

The core innovation lies in first training a subword vocabulary within word boundaries, ensuring fine-grained semantic units, followed by a second stage that merges across word boundaries to form multiword expressions. This approach captures meaningful phrases, reduces sequence length, and maintains linguistic coherence. The vocabulary is allocated based on script-specific data proportions, using corpus-driven alignment to avoid fragmentation and imbalance. Language-aware preprocessing, including regex-based normalization and Unicode standardization, further enhances script sensitivity and reduces token fragmentation.

Experimental results demonstrate that MUTANT-Indic significantly outperforms existing tokenizers, lowering fertility scores by 39.5% compared to LLaMA4 and reducing token sequences by 44% in inference tasks. These improvements translate into faster inference speeds and more efficient model training, validated across diverse datasets covering 22 Indian languages, English, and code. Ablation studies confirm the robustness of the design choices, highlighting the importance of data size, vocabulary configuration, and preprocessing strategies.

This work advances the state-of-the-art in multilingual NLP, offering a scalable, linguistically grounded framework that enhances fairness, efficiency, and semantic fidelity. Its implications extend to deploying large models in resource-constrained environments, promoting equitable language technology development, and setting new benchmarks for multilingual tokenization.

Deep Analysis

Background

Multilingual NLP的发展经历了从字符级到子词级的演变,代表性工作如mT5、IndicBERT等,解决了多语种模型的跨语言表示问题。早期方法多依赖词表或字符编码,面临碎片化和效率瓶颈。近年来,子词化技术如BPE、WordPiece成为主流,但在形态丰富、资源有限的语言中仍存在碎片化严重、语义表达不足的问题。尤其在印度多语场景,脚本多样、语法复杂,传统方法难以兼顾效率和公平性。研究逐步认识到,结合语言学知识的预处理、多词表达学习,有望突破现有瓶颈,推动多语种模型的实用化。

Core Problem

多语种模型中,词汇碎片化导致序列长度增加、推理速度变慢、模型偏差加剧,尤其在低资源和形态丰富语言中表现尤为突出。现有子词化方法未能充分考虑脚本差异和语义完整性,造成长序列和高计算成本。如何设计一种结合语言学知识、能有效减少碎片化、提升语义连贯性的Tokenizer,成为关键难题。这不仅影响训练成本,也限制模型在实际应用中的公平性和效率。

Innovation

核心创新包括:1)引入两阶段curriculum训练策略,确保子词粒度细腻且能形成多词表达;2)结合语言学知识进行预处理(正则表达式、Unicode标准化),增强脚本感知能力;3)设计多词表达学习机制,优化常用短语编码;4)采用脚本感知的词汇分配策略,平衡高低资源语言的覆盖。区别于传统单阶段BPE,强调多词表达和多脚本适应,显著降低碎片化,提升效率。

Methodology

  • �� 数据采集:结合Web、Wikipedia、结构化数据,确保多样性和代表性。
  • �� 预处理:采用Unicode normalization、正则表达式分词,增强脚本感知能力。
  • �� 词汇分配:根据脚本比例进行词汇预算,采用语料驱动的联合训练策略,避免脚本间干扰。
  • �� 两阶段训练:第一阶段在空白字符基础上学习子词,确保粒度细腻;第二阶段放宽边界限制,合并多词表达。
  • �� 多词学习:在第二阶段引入多词表达机制,优化常用短语的编码。
  • �� 评估:采用Fertility、NSL、Rényi熵等多指标,验证碎片化和效率提升。
  • �� 实验验证:在22种印度语言、英语和代码数据集上,进行消融和对比实验,验证设计效果。

Experiments

采用多语种、多脚本、多资源的训练数据,比较不同词汇大小、预处理策略和训练阶段的效果。基线包括LLaMA4、Sutra等。指标涵盖Fertility、NSL、Bytes per Token、推理吞吐率等。通过消融实验验证各策略对碎片化、压缩效率和模型性能的影响。模型在多语种预训练和下游任务中均进行评估,确保方案的普适性和鲁棒性。

Results

MUTANT-Indic在22种印度语言和英语上Fertility平均降低39.5%,比LLaMA4低显著,减少碎片化。推理吞吐率提升44%,在保持英语和印度语性能的同时,显著加快推理速度。多项指标(NSL、Rényi熵)显示其压缩和信息利用效率优于对比模型。消融实验验证了数据规模、词汇大小和预处理策略对性能的关键作用,展现出方案的稳健性和适应性。

Applications

该Tokenizer适用于多语种预训练模型,特别是在资源有限的印度语场景中,可显著降低训练和推理成本。可广泛应用于多语种信息检索、机器翻译、语音识别等领域,提升模型公平性和效率。未来还可结合多模态信息,拓展到跨模态多语种应用,推动多语种AI的普及。

Limitations & Outlook

当前方法在极低资源语言或新兴脚本上仍存在碎片化和覆盖不足的问题,需进一步优化多词学习和预处理策略。预处理和多词学习带来一定计算开销,影响大规模部署效率。对复杂语音学和形态学特征的捕获仍有限,未来需结合深层语义和语音信息进行优化。

Plain Language Accessible to non-experts

想象你在经营一家国际餐厅,每个国家的菜肴都用不同的食材和调料。传统厨师用一种通用配方,可能会把一些特殊调料切碎,导致味道不纯。MUTANT就像是一位懂得每个国家特色的厨师,他会根据不同国家的风味,提前准备好调料(预处理),并用两步方法:第一步专注于基础调料(子词),确保每个调料都能单独识别;第二步则结合不同调料,形成特色菜肴(多词表达)。这样做,不仅菜肴更美味(语义连贯),也更快端上桌(推理速度快),还不会把某些调料弄碎(减少碎片化)。这让不同国家的菜肴都能被很好理解和享用,整个厨房变得更高效、更公平。

ELI14 Explained like you're 14

想象你在玩一个超级复杂的拼图游戏,每个拼图块代表一句话或一个词。以前的拼图方法就像用普通拼图块拼,可能会把一些常用的短句拆得支离破碎,拼起来很费劲。而MUTANT就像发明了一种新型拼图方法,先用细小的块拼出基础的图案(子词),然后再把这些基础块组合成完整的常用短句(多词表达)。这样拼图既快又完整,还能更好地理解每个图案的意思。它还会根据不同的拼图材料(语言和脚本)调整拼法,确保每个国家的拼图都能顺利拼好。最终,这个方法让拼图变得更快、更准确,也让拼出来的图片更清晰、更有意思。

Abstract

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.

cs.CL