Adaptive Data Optimization: Dynamic Sample Selection with Scaling Laws

Yiding Jiang, Allan Zhou, Zhili Feng, Sadhika Malladi, J Zico Kolter

Introduction

The performance of foundation models depends heavily on the composition of their pretraining data—for instance, balancing Wikipedia articles against GitHub code. However, determining the "optimal" mixture is a massive challenge. Adaptive Data Optimization (ADO) is a "plug-and-play" algorithm designed to optimize the mixture of pretraining data on the fly. By fitting per-domain scaling laws during training, ADO identifies which data sources offer the most "learning potential" and adjusts sampling weights accordingly. It outperforms complex proxy-model methods with a negligible computational overhead of less than 0.4%.

The Problem with Current Approaches

Currently, researchers rely on two main strategies to determine data mixtures, both of which have significant drawbacks:

  1. Small-scale experimentation: Training many small models on different mixtures and hoping the best one generalizes to a billion-parameter model. This is notoriously unreliable; what works for a tiny model often fails to scale.
  2. Proxy models: Training a smaller "guide" model alongside the main one to evaluate data quality. This adds significant computational cost and pipeline complexity.

The field lacks a method that is online (happens during training), agnostic to downstream tasks, and cheap (requires no extra models).

The ADO Method

ADO introduces a way to dynamically adjust data mixtures without needing a secondary model.

Comparison of multi-staged proxy methods vs. Adaptive Data Optimization (ADO)

Its core components include:

  • Per-Domain Scaling Laws: During training, ADO tracks the loss for each specific data domain (e.g., ArXiv, StackExchange). It fits a local power-law function for each domain to predict how much the loss will drop if more data from that domain is seen.
  • Learning Potential: It calculates the derivative of these scaling laws. Domains where the loss is expected to drop sharply are considered to have high "learning potential" or "information density."
  • Credit Assignment: To prevent a domain from "stealing credit" for improvements caused by transfer learning from other domains, ADO uses a credit assignment score. A domain only gets a high priority if it has actually been sampled recently and is showing progress.
  • Temporal Averaging: To keep the training stable, ADO uses moving averages to smooth out the sampling weights, preventing erratic jumps in the data distribution.

Key Insights and Ideas

  • Curricula Exist but are Hard to Find: Through meta-learning experiments, the authors proved that "good" data orderings (curricula) exist and can significantly outperform random shuffling. However, finding them via brute force is computationally impossible for large models.
Test loss comparison showing meta-optimized data ordering outperforming random order
  • The "Proxy" Problem: Small models are brittle predictors. Factors like the tokenizer or specific hyperparameters can make a data strategy that is "optimal" for a 100M model perform poorly for a 1B model.
  • Information Density as a Metric: ADO essentially treats the derivative of the scaling law as a proxy for information density. It prioritizes "hard-but-learnable" data over data that the model has already mastered (low potential) or data that is pure noise (high irreducible loss).
  • Scale-Dependent Strategies: ADO automatically discovers that different model sizes need different data. For example, it might prioritize GitHub code differently for a 124M model than it does for a 1.3B model.

Experimental Setup and Results

The authors pretrained models on The Pile (an 800GB dataset categorized into 22 diverse domains) and evaluated them using validation loss on high-quality datasets like SlimPajama and FineWeb, as well as a suite of 7 zero-shot benchmarks (HellaSwag, WinoGrande, PIQA, ARC-E, SciQ, LogiQA2, and LAMBADA).

Key Results: * Superior Performance: At the 1.3B parameter scale, ADO achieved the highest average accuracy across all benchmarks, outperforming the "Natural" distribution and the state-of-the-art "DoReMi" method. * Extreme Efficiency: ADO is incredibly efficient. For a 1.3B model training run lasting 3.5 days, ADO added only 20 minutes of total wall-clock time (a mere ~0.4% overhead). * Implicit Quality Selection: Even though ADO was trained on the noisier Pile dataset, it achieved better validation loss on high-quality datasets like FineWeb than models trained on the standard Pile mixture. This suggests ADO implicitly learns to favor higher-quality samples.

Limitations and Future Work

While ADO is highly effective, it currently fits scaling laws for domains independently, ignoring inter-domain interactions (e.g., how learning Math might help the model learn Python). Additionally, standard power laws struggle to model the final "cool-down" phase of a cosine learning rate schedule, where loss often drops precipitously. Future work could incorporate more complex scaling laws to address this and apply ADO to finer-grained clusters of data to find even more specific pockets of high-learning-potential information.

Summary updated

BibTeX
@inproceedings{jiang2025adaptive,
  author = {Yiding Jiang and Allan Zhou and Zhili Feng and Sadhika Malladi and J Zico Kolter},
  title = {{Adaptive Data Optimization: Dynamic Sample Selection with Scaling Laws}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=aqok1UX7Z1},
}
Figure