Introduction
Determining the optimal proportions of diverse data sources—such as code, web text, and academic papers—is a critical yet often overlooked aspect of training Large Language Models (LLMs). This process, known as data mixture, directly impacts a model's reasoning capabilities and domain-specific performance. As models scale, relying on simple heuristics becomes increasingly suboptimal and computationally expensive. This survey provides a formal taxonomy and theoretical framework for data mixture, categorizing existing methods and identifying key challenges in the field.
A Taxonomy of Data Mixture Methods
The survey categorizes data mixture techniques into two primary paradigms: offline and online methods. Offline methods determine domain weights before the main training run, often utilizing smaller "proxy models" to estimate performance. Online methods, conversely, adjust weights dynamically during the training process.
Offline Approaches
Offline methods are generally more cost-effective as they avoid the overhead of dynamic weight adjustment during large-scale training. They include:
- Heuristic-based: Traditional approaches like uniform or proportional sampling.
- Algorithm-based: Employs formal optimization techniques. Min-Max Optimization aims to improve the worst-performing domain, while Bi-level Optimization minimizes loss on a specific validation set.
- Function Fitting-based: These methods develop "Mixing Laws"—mathematical functions that predict model performance based on the data mixture, analogous to Scaling Laws.
Online Approaches
Online methods respond to the model's current state during training:
- Online Min-Max: Dynamically shifts focus to domains where the model is currently underperforming (e.g., DoReMi, ShearedLLaMa).
- Online Mixing Laws: Uses training history to fit models that guide real-time weight adjustments (e.g., AIOLI).
Theoretical Foundations and Mixing Laws
A significant contribution of this survey is the formalization of "Mixing Laws." These laws transform the complex, nested optimization problem of data selection into a more manageable regression task. By fitting functions to observed performance data, researchers can predict the optimal recipe for a target model without exhaustive experimentation.
Key Insights: The Proxy Gap and Multi-Domain Learning
The survey highlights several critical theoretical perspectives:
- Multi-Domain Learning (MDL): Data mixture is fundamentally a subfield of MDL, where various domains share a single set of neural network parameters.
- The Proxy Gap: A major challenge identified is that weights optimized for small proxy models often fail to transfer effectively to massive target models. This "model scale issue" suggests that current offline methods may have inherent limitations.
- Loss vs. Downstream Performance: There is a persistent gap between minimizing mathematical loss and achieving high performance on complex downstream tasks like coding or creative reasoning.
Future Directions
Despite the proliferation of sophisticated algorithms, the survey notes that many advanced methods currently struggle to significantly outperform simple uniform sampling in all scenarios. Future research must address the "Natural Domain" problem—moving beyond coarse labels (e.g., "The Internet") to unsupervised clustering that identifies specific skills—and reduce the computational overhead of online methods that require per-domain gradient calculations.
Summary updated