TL;DR
Large Language Models (LLMs) often suffer from "token over-fragmentation" in non-Latin scripts, leading to significantly higher costs and latency for those languages. This paper introduces FragMend, a novel vocabulary expansion method that uses model interpretability to identify how LLMs internally reconstruct fragmented subwords, offering a superior tradeoff between token efficiency and downstream performance.
What Problem Does This Paper Address?
Most modern LLMs use subword tokenization, which relies on a fixed-size vocabulary. Because these vocabularies are typically trained on data skewed toward Latin scripts, languages like Hindi, Odia, or Burmese are often "over-fragmented"—split into many tiny, meaningless tokens. For example, an Odia word might require ten times as many tokens as its English equivalent to encode the same information.
This isn't just a technical quirk; it’s a "silent tax." More tokens mean higher API costs, increased inference latency, and often poorer model performance for speakers of these languages. While "vocabulary expansion" (adding new tokens) is a common fix, traditional methods rely on simple frequency heuristics (like BPE) that don't always align with the model's internal representations.
Methods
The authors shift the focus from frequency to interpretability. They build upon the concept of detokenization—the observation that LLMs internally reconstruct meaningful representations for concepts that span multiple subword tokens.
- Interpretability-based Selection: Using the Patchscopes framework, they test if a model can "detokenize" a candidate word. If the model's internal activations for a fragmented word can successfully predict that word in a repetition-seeking prompt, it's considered part of the model's "inner lexicon" and a good candidate for the vocabulary.
- Subword Detokenization: The authors identify a new phenomenon: models don't just jump from fragments to full words; they progressively merge subwords into larger intermediate units across layers.
- FragMend: Their proposed method, FragMend, leverages this progressive merging. Unlike previous methods that only add full words, FragMend identifies and adds these successfully detokenized subwords. This significantly raises the "efficiency ceiling," allowing for more effective token reduction even with a small training corpus.
- Initialization: New token embeddings are initialized by mapping the model's internal hidden states (where detokenization was successful) to the existing embedding space using an orthogonal Procrustes transformation.
Datasets
The researchers evaluated their approach across 14 diverse languages, balanced by script type (Latin vs. non-Latin) and resource level (high vs. low resource).
- Training/Tuning: Data sourced from the Glot-500c corpus.
- Evaluation Benchmarks:
- SIB200: Topic classification across 200+ languages.
- Belebele: A parallel reading comprehension dataset.
- Glot-500c test set: Used to measure Bits-Per-Byte (BPB) for language modeling performance.
Key Insights and Ideas
- LLMs have a "hidden" vocabulary: The success of detokenization proves that models maintain a rich internal lexicon far larger than their explicit, fixed vocabulary.
- Frequency is a bottleneck: Traditional frequency-based selection (BPE) creates a harsh tradeoff between efficiency and accuracy. Interpretability-based methods push the "Pareto front," achieving better results on both metrics simultaneously.
- The "Efficiency Ceiling": Previous interpretability methods (like Tokens2Words) were limited by only adding full words found in a small corpus. By recognizing that models also detokenize intermediate subwords, FragMend breaks through this ceiling.
- Latin-script bias persists: Even in modern open-weight models like Qwen3, non-Latin scripts remain heavily disadvantaged by standard tokenizers.
Key Results
- Performance Gains: Interpretability-based initialization (Tokens2Words) showed massive gains—up to 20 points—over standard baseline initializations for several non-Latin script languages.
- Efficiency Breakthrough: FragMend achieved 2-3x more vocabulary additions than word-only methods using the same small 1000-sequence training corpus.
- Better Tradeoffs: FragMend provided substantial token efficiency gains (up to 3x reduction for Burmese) with minimal performance degradation compared to previous state-of-the-art expansion methods.
- Faster Inference: The authors confirmed a strong correlation (r=0.98) between token reduction and actual reduction in inference latency, making these models significantly faster in practice.
Limitations and Future Work
- Model Scale: The success of these methods depends on the quality of model activations. Smaller models (under 4B parameters) struggle with detokenization due to the "curse of multilinguality" and fewer layers to perform the reconstruction.
- Selection Speed: While inference is faster, the initial process of checking every subword at every layer for detokenization is computationally intensive. Future work could involve identifying high-probability candidate units (like morphological units) a priori.
- Tuning Strategies: This work focused on selection and initialization; the authors suggest that exploring more advanced tuning strategies specifically for interpretability-based expansion could yield even further gains.
Summary updated