Maximize Your Data's Potential: Enhancing LLM Accuracy with Two-Phase Pretraining
Steven Feng, Shrimai Prabhumoye, Kezhi Kong, Dan Su, Mostofa Patwary,, Mohammad Shoeybi, Bryan Catanzaro

TL;DR
This paper introduces a two-phase pretraining strategy for large language models, demonstrating significant accuracy improvements through optimized data selection and blending, scalable to larger models and token horizons.
Contribution
It formalizes the two-phase pretraining concept and provides systematic guidance for data blending to enhance LLM accuracy, including scalable methods for larger models and datasets.
Findings
Two-phase pretraining outperforms random and natural data ordering by 3.4% and 17%.
Effective data blending can be scaled from 1T to 15T tokens and models up to 25B parameters.
Guidelines for designing and scaling data blends are provided for practitioners.
Abstract
Pretraining large language models effectively requires strategic data selection, blending and ordering. However, key details about data mixtures especially their scalability to longer token horizons and larger model sizes remain underexplored due to limited disclosure by model developers. To address this, we formalize the concept of two-phase pretraining and conduct an extensive systematic study on how to select and mix data to maximize model accuracies for the two phases. Our findings illustrate that a two-phase approach for pretraining outperforms random data ordering and natural distribution of tokens by 3.4% and 17% on average accuracies. We provide in-depth guidance on crafting optimal blends based on quality of the data source and the number of epochs to be seen. We propose to design blends using downsampled data at a smaller scale of 1T tokens and then demonstrate effective…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNeural Networks and Applications · Fault Detection and Control Systems · Machine Learning and Data Classification
