RegMix-D: Dynamic Data Mixing via Proxy Training Trajectories

Kaiyan Zhao, Zhongtao Miao, Akiko Aizawa, Yoshimasa TsuruokaarXiv 2026

TL;DR

RegMix-D introduces dynamic data mixing for LLM pretraining by leveraging the full loss trajectories of small proxy models, rather than just their final endpoint losses. It offers both offline and online scheduling modes, outperforming static baselines across 13 downstream tasks while slashing proxy compute budgets by up to 75%.

What Problem Does This Paper Address?

When pretraining Large Language Models (LLMs), data is assembled from a massive variety of domains—such as web crawls, code repositories, and academic papers. How you mix these domains significantly impacts the final model's capabilities.

Recent automated methods like RegMix optimize these proportions by training a fleet of tiny "proxy" models on different data mixtures and using a regression model to predict which mixture yields the lowest final loss. However, these methods assume a single static mixture is optimal for the entire training run. In reality, a model's data needs shift as it matures. While some dynamic mixing methods exist, they typically introduce heavy computational overhead, complex reinforcement learning loops, or gradient-influence calculations during the main training run.

Methods

RegMix-D elegantly extends the RegMix framework to dynamic data mixing without adding any new optimization machinery to the final target training phase.

The core insight is that proxy models don't just provide a final endpoint loss; they provide an entire loss trajectory over time. RegMix-D logs validation losses at multiple intermediate step intervals during proxy runs. It then trains a trajectory-conditioned regression model ($f_N$) to predict local transitions: given the current step, the current data mixture, and the current loss, what will the loss be at the next interval?

Figure 1: Overview of REGMIX-D. We train a regression model f on proxy loss trajectories (left), then deploy f in two modes (right): Offline recursively generates a complete mixture schedule before target training; Online queries f during target training using observed losses to adapt the mixture in place.

The authors introduce two deployment modes for this regression model:

  1. Offline Mode: Before target training begins, the regression model recursively predicts the next best data mixture step-by-step, generating a complete time-varying schedule.
  2. Online Mode: The regression model acts as a frozen predictor during target training. At designated "switch points," the actual validation loss of the target model is measured, scaled to match the proxy model's range using a power-law correction, and used to query the regression model for the next optimal mixture on the fly.

Datasets

  • Training: The target model (a 1B parameter TinyLlama variant) was pretrained on 25 billion tokens from The Pile, partitioned into 17 distinct domains.
  • Evaluation: Downstream performance was evaluated across 13 tasks using the lm-eval-harness suite, covering benchmarks like HellaSwag, PIQA, LAMBADA, ARC-Easy, ARC-Challenge, SciQ, and WinoGrande.

Key Insights and Ideas

  • Exploiting Wasted Signal: Standard proxy-based methods throw away intermediate training data. RegMix-D shows that the path a model takes (its trajectory) contains crucial clues about how domain relevance evolves.
  • Grounding in Target Dynamics: The online variant consistently outperforms the offline variant. This highlights the importance of grounding data-mixing decisions in the actual, real-time state of the large-scale target model rather than relying purely on simulated proxy rollouts.
  • Dynamic over Static: Shifting data mixtures dynamically provides a more robust performance boost than simply scaling up the number of proxy models used to find a static mixture.

Key Results

  • Superior Downstream Performance: RegMix-D consistently outperformed standard RegMix and DoReMi baselines. The online variant achieved the highest average downstream accuracy (48.44%).
  • High Compute Efficiency: RegMix-D with only 128 proxy models outperformed standard RegMix using 512 proxy models. This represents a 75% reduction in proxy compute budget (saving roughly 192 H800 GPU-hours).
Figure 2: Pile-CC validation loss across training for Reg- Mix and all four REGMIX-D variants (Offline/Online × 128/512 proxies), at N=5 switch points. All four REGMIX-D variants achieve consistently lower valida- tion loss than RegMix throughout training. The inset zooms into the final 5B tokens, where RegMix-D Online (512) attains the lowest loss.
  • Negligible Overhead: In online mode, querying the regression model at switch points adds a mere +0.37% to the target model's wall-clock training time, making it highly practical for production pipelines.
  • Distinct Schedules: As visualized below, the dynamic schedules discovered by RegMix-D deviate sharply from static baselines, often reducing the weight of dominant domains early on to favor non-dominant domains before concentrating back later.
Figure 3: Pile-CC weight across training process for RegMix (static, dashed) and REGMIX-D (dynamic, N=5, 512 proxies). The REGMIX-D variants assign substantially different mixture weights than RegMix. This illustrates the dynamic schedules discovered by our method.

Limitations and Future Work

  • Single-Target Optimization: The current framework relies on a single target-domain validation loss (pile-cc) as its optimization signal. Extending RegMix-D to multi-target or domain-agnostic objectives remains an open challenge.
  • Cross-Setup Comparisons: Because different dynamic data-mixing papers use entirely different corpora, model scales, and evaluation suites, direct numerical comparisons with other dynamic methods (like Aioli or TiKMiX) were not feasible within this study.

Summary updated

BibTeX
@misc{zhao2026regmix,
  author = {Kaiyan Zhao and Zhongtao Miao and Akiko Aizawa and Yoshimasa Tsuruoka},
  title = {{RegMix-D: Dynamic Data Mixing via Proxy Training Trajectories}},
  year = {2026},
  eprint = {2606.18663},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.18663},
}
Figure