mlsanityData to 7 Oct 2026

Does your data spark joy? Performance gains from domain upsampling at the end of training

arXiv 2406.03476 ↗First posted 5 Jun 2024cs.LG cs.CLcited by 51

Not on the map. Why?

Abstract (arXiv)

Pretraining datasets for large language models (LLMs) have grown to trillions of tokens composed of large amounts of CommonCrawl (CC) web scrape along with smaller, domain-specific datasets. It is expensive to understand the impact of these domain-specific datasets on model capabilities as training at large FLOP scales is required to reveal significant changes to difficult and emergent benchmarks. Given the increasing cost of experimenting with pretraining data, how does one determine the optimal balance between the diversity in general web scrapes and the information density of domain specific data? In this work, we show how to leverage the smaller domain specific datasets by upsampling them relative to CC at the end of training to drive performance improvements on difficult benchmarks. This simple technique allows us to improve up to 6.90 pp on MMLU, 8.26 pp on GSM8K, and 6.17 pp on HumanEval relative to the base data mix for a 7B model trained for 1 trillion (T) tokens, thus rivaling Llama-2 (7B)unicodex2014a model trained for twice as long. We experiment with ablating the duration of domain upsampling from 5% to 30% of training and find that 10% to 20% percent is optimal for navigating the tradeoff between general language modeling capabilities and targeted benchmarks. We also use domain upsampling to characterize at scale the utility of individual datasets for improving various benchmarks by removing them during this final phase of training. This tool opens up the ability to experiment with the impact of different pretraining datasets at scale, but at an order of magnitude lower cost compared to full pretraining runs.

Key facts. Cited by 51 papers in the map (data through 7 Oct 2026). Builds on 26 of its 36 references that are in the map. First posted on arXiv 5 Jun 2024.

Builds on

26 of 36 references.

References · 26

  1. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  2. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  4. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  5. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  6. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  7. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  8. 2023Mistral 7Bcited by 3,065
  9. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
  10. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
  11. 2022Emergent Abilities of Large Language Modelscited by 2,483
  12. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
14 more
  1. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
  2. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
  3. 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,793
  4. 2024Mixtral of Expertscited by 1,785
  5. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
  6. 2021Scaling Vision Transformerscited by 993
  7. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
  8. 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 861
  9. 2023The RefinedWeb Dataset for Falcon LLM: Outperforming Curated Corpora with Web Data, and Web Data Onlycited by 755
  10. 2023AGIEval: A Human-Centric Benchmark for Evaluating Foundation Modelscited by 701
  11. 2018CoQA: A Conversational Question Answering Challengecited by 674
  12. 2024Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Researchcited by 475
  13. 2023Symbolic Discovery of Optimization Algorithmscited by 423
  14. 2023DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretrainingcited by 385

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 11; 2025: 23; 2026: 17.

51 papers.

Sort:

By area:

  1. 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,928
  2. 2025olmOCR: Unlocking Trillions of Tokens in PDFs with Vision Language Modelscited by 120
  3. 2024Reuse, Don't Retrain: A Recipe for Continued Pretraining of Language Modelscited by 69
  4. 2025Nemotron-CLIMB: CLustering-based Iterative Data Mixture Bootstrapping for Language Model Pre-trainingcited by 62
  5. 2025Diffusion Language Models are Super Data Learnerscited by 45
  6. 2025Nemotron-CC-Math: A 133 Billion-Token-Scale High Quality Math Pretraining Datasetcited by 34
  7. 2024Aioli: A Unified Optimization Framework for Language Model Data Mixingcited by 33
  8. 2025Steering off Course: Reliability Challenges in Steering Language Modelscited by 29
  9. 2025EuroBERT: Scaling Multilingual Encoders for European Languagescited by 28
  10. 2025Llama-3.1-FoundationAI-SecurityLLM-Base-8B Technical Reportcited by 28
  11. 2024Maximize Your Data's Potential: Enhancing LLM Accuracy with Two-Phase Pretrainingcited by 24
  12. 2025Encode, Think, Decode: Scaling test-time reasoning with recursive latent thoughtscited by 23
38 more
  1. 2025Signal and Noise: A Framework for Reducing Uncertainty in Language Model Evaluationcited by 22
  2. 2024The Zamba2 Suite: Technical Reportcited by 20
  3. 2025Language Models Improve When Pretraining Data Matches Target Taskscited by 18
  4. 2025A Survey on LLM Mid-Trainingcited by 18
  5. 2025Data Mixing Can Induce Phase Transitions in Knowledge Acquisitioncited by 15
  6. 2025FlexOlmo: Open Language Models for Flexible Data Usecited by 14
  7. 2024Zyda-2: a 5 Trillion Token High-Quality Datasetcited by 12
  8. 2026Replaying pre-training data improves fine-tuningcited by 12
  9. 2024Predicting Emergent Capabilities by Finetuningcited by 10
  10. 2025MixMin: Finding Data Mixtures via Convex Minimizationcited by 10
  11. 2025Midtraining Bridges Pretraining and Posttraining Distributionscited by 10
  12. 2026Arcee Trinity Large Technical Reportcited by 10
  13. 2025Data Mixture Optimization: A Multi-fidelity Multi-scale Bayesian Frameworkcited by 8
  14. 2026The Finetuner's Fallacy: When to Pretrain with Your Finetuning Datacited by 7
  15. 2026From Growing to Looping: A Unified View of Iterative Computation in LLMscited by 6
  16. 2026Covenant-72B: Pre-Training a 72B LLM with Trustless Peers Over-the-Internetcited by 6
  17. 2025HyperCLOVA X THINK Technical Reportcited by 5
  18. 2026When Should We Introduce Safety Interventions During Pretraining?cited by 5
  19. 2024DEPT: Decoupled Embeddings for Pre-training Language Modelscited by 4
  20. 2025Trillion 7B Technical Reportcited by 4
  21. 2025Mitigating Geospatial Knowledge Hallucination in Large Language Models: Benchmarking and Dynamic Factuality Aligningcited by 3
  22. 2026Scaling Open Discrete Audio Foundation Models with Interleaved Semantic, Acoustic, and Text Tokenscited by 3
  23. 2025DocTalk: Scalable Graph-based Dialogue Synthesis for Enhancing LLM Conversational Capabilitiescited by 2
  24. 2026Solar Open 2 Technical Reportcited by 2
  25. 2024Unsupervised Data Validation Methods for Efficient Model Trainingcited by 1
  26. 2024BSM: Small but Powerful Biological Sequence Model for Genes and Proteinscited by 1
  27. 2024Sparse Upcycling: Inference Inefficient Finetuningcited by 1
  28. 2026Capacity-Aware Mixture Law Enables Efficient LLM Data Optimizationcited by 1
  29. 2026Diffract: Spectral View of LLM Domain Adaptationcited by 1
  30. 2025Measurement of LLM's Philosophies of Human Naturecited by 0
  31. 2025Using Scaling Laws for Data Source Utility Estimation in Domain-Specific Pre-Trainingcited by 0
  32. 2025Predicting Training Re-evaluation Curves Enables Effective Data Curriculums for LLMscited by 0
  33. 2026MaD-Mix: Multi-Modal Data Mixtures via Latent Space Coupling for Vision-Language Model Trainingcited by 0
  34. 2026BioAlchemy: Distilling Biological Literature into Reasoning-Ready Reinforcement Learning Training Datacited by 0
  35. 2026XekRung Technical Reportcited by 0
  36. 2026Introspective X Training: Feedback Conditioning Improves Scaling Across all LLM Training Stagescited by 0
  37. 2026Understanding Data Temporality Impact on Large Language Models Pre-trainingcited by 0
  38. 2026Let's Scale Step by Step: Compute-Efficient Hyperparameter Transfer for Large-Scale Mixture-of-Expertscited by 0

50 most cited of 51 All 51 (JSON)