Introduction
In the pipeline of training Large Language Models (LLMs), tokenization is often relegated to a preprocessing step—a "solved" problem handled by standard algorithms like Byte Pair Encoding (BPE). However, the choice of tokenizer significantly influences how a model perceives and generates language. While the theoretical objective of BPE is to minimize sequence length through text compression, the field has lacked a rigorous empirical link between this intrinsic compression metric and extrinsic downstream performance.
This research addresses a critical question for NLP practitioners: Is there a reliable, low-cost intrinsic metric to evaluate a tokenizer without the prohibitive expense of full-scale model pre-training? By investigating the relationship between text compression and model capability, the authors provide evidence that compression is not merely a storage optimization but a fundamental predictor of model success.
Experimental Framework
To isolate the impact of compression, the authors designed a controlled experiment involving varying levels of tokenizer "support"—the volume of data used to train the BPE tokenizer itself.
- Tokenizer Variants: Six BPE tokenizers were trained with support ranging from 1 million documents (high compression) down to a single document. A character-level tokenizer (zero compression) served as the baseline.
- Model Scaling: For each tokenizer, decoder-only Transformer models were trained from scratch at three scales: 10 million, 128 million, and 1 billion parameters.
- Linguistic Diversity: To ensure findings were not English-centric, the study included Turkish, an agglutinative language with complex morphology that poses unique challenges for tokenization.
- Evaluation: The study measured intrinsic quality (sequence length on held-out data) against extrinsic quality (performance on classification tasks like QQP and MultiNLI, and generative tasks like XSum and Question Generation).
The Compression-Performance Correlation
The results reveal a near-perfect monotonic relationship between tokenizer support and downstream success. As the tokenizer's training data decreased, the resulting sequence lengths for the same text increased—by 121% for the 1-document tokenizer and 323% for the character-level baseline.
Crucially, this increase in sequence length (lower compression) correlated strongly with a decline in model performance. Pearson’s correlation coefficients between sequence length and task performance were frequently above 0.9, suggesting that compression is a highly reliable proxy for how well a model will eventually perform.
Generation vs. Classification
The impact of compression is most pronounced in generative tasks. In English Question Generation (QG-QA), a 10M parameter model’s performance dropped from 22.43 RougeL with a high-compression tokenizer to 16.92 with a character-level tokenizer. This disparity exists because generation requires the model to predict tokens step-by-step; poor tokenization compounds errors and increases the complexity of the output space. Classification tasks, while still affected, showed more resilience, as the model only needs to encode the input effectively to make a categorical prediction.
Why Compression Matters: The Parameter Buffer and Rare Words
The paper offers two key theoretical insights into why compression affects performance:
1. The Parameter Buffer: Larger models (1B parameters) demonstrate greater resilience to poor tokenization than smaller models (10M parameters). The authors hypothesize that larger models possess a "parameter buffer"—sufficient capacity to learn and compensate for the fragmented, inefficient subword patterns produced by low-compression tokenizers. Smaller models, constrained by their parameter count, struggle to map these fragments back to coherent semantic meanings.
2. The Rare Word Gap: Analysis shows that all tokenizers perform similarly on high-frequency words. The performance gap is driven almost entirely by the "long tail" of rare, semantically dense words. High-compression tokenizers represent these words as single or few tokens, preserving their semantic integrity. Low-compression tokenizers "shatter" these words into numerous meaningless fragments, forcing the model to learn complex dependencies just to reconstruct a single word's meaning.
Conclusion
The findings across both English and Turkish suggest that the importance of compression is a universal property of subword tokenization. For researchers and practitioners, the takeaway is clear: the tokenizer is a foundational component of model architecture. Investing in a tokenizer that achieves superior compression is a direct, cost-effective path to improving downstream performance, particularly for generative tasks and resource-constrained model sizes.
Summary updated