TL;DR
When we evaluate a base language model on a zero-shot benchmark, how much of its score reflects genuine reasoning versus simply sharing the same vocabulary frequencies as its training data? This paper shows that a dead-simple, model-free metric—word-level unigram cross-entropy (UCE)—tracks zero-shot accuracy across training corpora with uncanny precision. Even better, you can actively use this "lexical imprint" to filter training documents for higher benchmark accuracy and route prompts to speed up inference.
What Problem Does This Paper Address?
It’s late, so let’s strip language modeling down to its bare bones. Pre-training a model via next-token prediction pulls its internal probability distribution toward the empirical patterns of its training corpus. Later, when we run standard zero-shot evaluations, we usually feed the model multiple-choice candidates and see which option has the highest conditional likelihood (i.e., the lowest surprise).
Naturally, if a benchmark uses words in proportions similar to what the model saw during training, the model will be less "surprised" by the right answers. Prior studies noticed this correlation using off-the-shelf, pre-trained checkpoints. The catch? Comparing Llama to Mistral entangles training data with architecture, scale, tokenizers, and secret training recipes. To truly isolate how much zero-shot performance is just a "lexical imprint" of the training data, we need a clean, controlled, from-scratch pre-training sweep that holds everything fixed except the training corpus.
Methods
To measure alignment without getting tripped up by model-specific subword tokenizers or the massive data sparsity of long phrases, the authors step back to standard, whitespace-separated words. They introduce word-level unigram cross-entropy (UCE), which measures the overlap between a reference training distribution ($P$) and a target benchmark distribution ($Q$):
$$\text{UCE}(Q, P) = -\sum_{w} Q(w) \log P(w)$$
Up to the benchmark's fixed entropy, UCE is just the KL divergence between word frequencies. Lower UCE means the training corpus allocates more probability mass to the exact words the benchmark cares about.
The authors deploy this single mathematical lens at three distinct scales:
- Corpus-level (Measurement): Pre-training decoder-only Transformers from scratch (400M, 1.33B, and 3.36B parameters) at Chinchilla-optimal token budgets to see if UCE predicts which corpus wins on which benchmark.
- Document-level (Data Selection): The UCE-filter, a fast, single-pass algorithm that calculates how much removing a single document changes corpus–benchmark UCE, keeping the top 20% of documents that best align with a target suite.
- Prompt-level (Inference Routing): In speculative decoding (where a small, fast "drafter" model guesses tokens and a large "verifier" checks them), computing a sparse dot-product UCE between an incoming prompt and specialist drafter corpora to pick the best drafter on the fly.
Datasets
No new benchmarks were created, as the goal was to audit established ones:
- Pre-training Corpora: FineWeb-Edu, DCLM, C4, and OpenWebText (plus OpenThoughts-114k to train math, code, and science specialist drafters, and an internal 2T-token production mix for a 30B case study).
- Evaluation Benchmarks: A 12-task zero-shot pool (ARC-Easy/Challenge, HellaSwag, MMLU, SciQ, OpenBookQA, PIQA, LAMBADA, SocialIQA, SWAG, CommonsenseQA, BoolQ), MMLU-Pro for the 30B run, and AIME, LiveCodeBench, MMLU, and MedQA for speculative decoding.
Key Insights and Ideas
- "High-quality" data isn't universally better: Modern datasets like FineWeb-Edu and DCLM have stellar reputations, yet older C4 beats FineWeb-Edu on benchmarks like HellaSwag, PIQA, and SWAG. Why? Because C4 has a lower UCE on those specific tasks! "Data quality" is heavily mediated by task-dependent lexical overlap.
- It’s about mass allocation, not missing words: At web scale, every corpus covers virtually 100% of the benchmark vocabulary. Performance differences come down to how much probability mass is rescued from the "long tail" of rare words and placed onto benchmark-relevant terms.
- It’s not just data contamination: A 13-gram audit and retraining after scrubbing overlapping documents proved that benchmark memorization does not explain the effect. The model is genuinely riding background word statistics.
Key Results
- Corpus Tracking: Across 3.36B models trained on 60B tokens, UCE predicts the exact accuracy ranking of C4, DCLM, and FineWeb-Edu on every tested benchmark. Across 16 random 8.5B-token subsets (400M models), UCE strongly tracks accuracy ($R^2 = 0.928$ on ARC-Easy; $0.805$ on PIQA).
- Targeted Filtering: Training 1.34B and 3.33B models on 70B tokens selected by the UCE-filter boosts 7-task targeted accuracy by 3.31 to 3.64 percentage points (pp) on DCLM and 1.84 to 2.73 pp on FineWeb-Edu over random selection—outperforming hashed n-gram resampling (DSIR) while leaving out-of-target tasks unharmed.
- 30B Production Case Study: Replacing the web portion of a 2T-token Stage-2 mixture with a UCE-filtered subset retained the bulk of downstream gains (matching MMLU-Pro at 48.81% vs. 48.64%) using 10$\times$ fewer tokens (200B).
- Faster Decoding: Routing prompts via UCE to specialist SAM drafters (verified by DeepSeek-R1-Distill-Llama-8B) yielded a 55.3% average speedup, beating a generalist drafter by 5.3 pp across all tasks.
Limitations and Future Work
Because UCE treats text as an unordered bag of words, it is completely blind to syntax, word order, multi-token composition, and factual co-occurrence. Consequently, UCE fails to rank corpora on grammar benchmarks (BLiMP) or math reasoning (MathQA). Furthermore, relying on whitespace splitting limits UCE to segmented languages, leaving scripts like Chinese or Japanese—and agglutinative languages—for future work. Finally, this study focuses on base models; understanding whether this lexical imprint survives post-training (SFT and RLHF) or paraphrased benchmarks are prime open questions.
Summary updated