TL;DR
Standard scaling laws dictate language model training budgets in terms of tokens, but this paper reveals that compute-optimal scaling is actually driven by data size in bytes. By training over 1,300 models, the authors demonstrate that the optimal token compression rate changes with the compute budget and varies across languages, showing that popular subword tokenizers like BPE are frequently compute-suboptimal.
What Problem Does This Paper Address?
Existing scaling laws (like Kaplan or Chinchilla) provide a recipe for balancing model size and the number of training tokens for a given compute budget. However, a "token" is not a standardized unit of information; its information density depends entirely on the tokenizer's compression rate ($T$, measured in average bytes per token).
This introduces a fundamental blind spot: does the optimal token-to-parameter ratio hold when token granularity changes? Is there an absolute optimal compression rate for a dataset, and does this sweet spot shift as we scale up compute or move to different languages? This paper systematically unpacks how token granularity impacts compute efficiency.
Methods
To isolate the effect of token compression without altering vocabulary size or model parameters, the authors primarily leverage the Byte Latent Transformer (BLT) architecture. BLT dynamically groups byte-level inputs into latent tokens based on local text entropy, allowing the researchers to precisely dial the average compression rate ($T$) up or down.
For validation, they also test standard isotropic subword tokenized models (including character-level tokenization, standard BPE, and SuperBPE). In total, they execute a massive grid search, training:
- 988 latent tokenized models ranging from 50M to 7B parameters.
- 320 subword tokenized models.
They fit the results using a robust two-stage power-law approach: first determining the optimal data-to-parameter configurations via IsoFLOP profiles, and second, modeling the optimal loss dynamics as a function of compute and compression rate.
Datasets
- Training: The primary experiments use the DCLM corpus, a dataset of plain English text chosen to prevent domain- or language-mixing from confounding the scaling trends. For multilingual extensions, they train separate monolingual models using data from FineWeb-2.
- Evaluation: Models are evaluated on the C4 validation split. To ensure fair comparison across different tokenizers, performance is measured in bits-per-byte (BPB) over a fixed context length of 8,192 bytes. Downstream evaluations are performed on HellaSwag and the AI2 Reasoning Challenge (ARC). Cross-lingual baselines are calculated using the FLORES-200 multi-parallel corpus.
Key Insights and Ideas
- Bytes, Not Tokens, Govern Scaling: The compute-optimal ratio of data to parameters remains virtually constant when data is measured in bytes, not tokens. For English text, the optimal ratio ($\rho^*$) is roughly 60 bytes per parameter across varying tokenizers and compute budgets.
- The Non-Monotonicity of Compression: More compression is not inherently better. There is a distinct U-shaped curve where under-compressing (e.g., character-level) or over-compressing (e.g., large vocabularies) degrades performance for a fixed compute budget.
- Optimal Compression Shrinks with Scale: As the training compute budget grows, the optimal compression rate slowly decreases. Larger, more powerful models perform better when trained on finer-grained tokens.
- The BPE Mismatch: Popular pre-trained tokenizers (such as Llama 3's BPE) tend to over-compress high-resource languages like English and Arabic, while significantly under-compressing lower-resource or non-Latin script languages like Hindi and Vietnamese relative to their compute-optimal rates.
Key Results
- For English text, the optimal byte-per-parameter ratio ($\rho^*$) is empirically shown to be $\approx 60$.
- At a compute budget of $10^{20}$ FLOPs, the optimal compression rate for English is $T^* \approx 3.69$. This optimal rate drops to $3.33$ when compute scales up to $2 \times 10^{21}$ FLOPs.
- Strikingly, subword models with 75% and 90% of their BPE vocabulary masked (forcing lower compression rates) actually outperformed standard BPE at larger compute scales.
- Optimal tokenization parameters are highly language-dependent and correlate with cross-lingual parity (the byte-length ratio of parallel sentences relative to English). For example, Hindi—which requires 2.6x more bytes than English to express the same information—reaches its compute-optimal performance at a much higher compression rate ($T^* \approx 8.09$).
Limitations and Future Work
- Fixed Hyperparameters: To keep the massive grid search computationally feasible, the authors did not tune learning rates or other optimization hyperparameters specifically for each compute budget.
- Text-Only Modality: The study focuses entirely on text data. The authors note that understanding how data compression scales in other modalities (like vision, speech, or source code) is a critical next step.
- Dense Architectures: The derived scaling laws apply strictly to dense Transformer models. How token compression interacts with sparse architectures, such as Mixture of Experts (MoE), remains an open question.
Summary updated