Abstract
Finding the optimal training data mixture for Large Language Models (LLMs) is a computationally expensive challenge. Traditional methods rely on intuition or rigid scaling laws that often fail to capture the irregular performance landscapes of diverse data sources. We present a Multi-fidelity Multi-scale (MFMS) Bayesian Optimization framework that leverages cheap, small-scale experiments to predict optimal configurations for larger models. By modeling uncertainty across model sizes and training steps, our approach achieves up to a 3.3x speedup in finding optimal data recipes compared to standard search methods.
Introduction
The performance of an LLM is fundamentally tied to its "data diet"—the specific ratios of sources like Wikipedia, code, and textbooks. However, identifying the ideal mixture is often a process of trial-and-error. Current practices either rely on human intuition or assume deterministic scaling laws. This paper argues that these methods are insufficient because the relationship between data composition and model performance is frequently non-smooth and irregular, making simple extrapolation brittle.
The MFMS-BO Framework
To address this, we propose a probabilistic extrapolation framework using Bayesian Optimization (BO). Instead of a fixed curve, we use a Gaussian Process (GP) surrogate to maintain a belief over the space of data mixtures, model scales, and training durations.
Key components of the framework include:
- Multi-fidelity: Using early-stopped training runs (fewer steps) as low-cost proxies for a mixture's potential.
- Multi-scale: Treating model size as a decision variable, recognizing that small models provide predictive signals for larger ones.
- EIpu Acquisition: Selecting experiments that maximize knowledge gain per unit of compute (FLOPs).
Key Insights and Results
Using the SlimPajama dataset and a simulator built from 472 real LLM runs, the researchers found several critical insights:
- Small Models are Informative: Training runs on models below 500M parameters provide surprisingly strong predictive signals for 1B parameter models.
- The "Optimal" Mix Shifts: A major finding is that the best data mixture for a small model (e.g., 20M) isn't necessarily the best for a 1B model. This invalidates simple deterministic scaling laws that assume the "recipe" stays constant as you scale up.
- Efficiency Gains: The MFMS-BO framework achieved the best terminal model performance 2.6x faster than multi-fidelity BO and 3.3x faster than random search.
Conclusion
By treating data mixture selection as a multi-fidelity optimization problem, we can significantly reduce the compute required to train high-performing LLMs. While this study focused on scales up to 1B parameters, it provides a principled foundation for optimizing the data recipes of frontier-scale models. Future work will explore dynamic mixtures that evolve during the training process and asynchronous parallelization for large-scale engineering teams.
Summary updated