NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Efficient and Simple Data Mixing All the Time

Michael Y. Hu, Apurva Gandhi, Kyunghyun Cho, Tal Linzen, Pratyusha SharmaNeurIPS 2026

TL;DR

Training a language model is a bit like tending a sourdough starter: what you feed it—and in what proportions—determines everything, especially as new ingredients arrive over time. While existing "data mixing" methods rely on expensive, separate miniature models and break down the moment new datasets appear, OP-MIX (On-Policy Mix) uses lightweight adapters attached directly to the live model to simulate and find the optimal data blend on the fly. It unifies pretraining, midtraining, and instruction tuning into a single continuous process, matching expensive retraining and distillation methods at a tiny fraction of the compute cost.

What Problem Does This Paper Address?

Language models learn from diverse diets of text—code, math, web scrapes, academic papers. Deciding the exact recipe (say, 30% math, 50% web, 20% code) is called data mixing, and getting it right dramatically improves model quality.

Historically, finding the right mix meant training dozens of tiny "proxy" models from scratch on different candidate recipes, fitting a curve to predict which mix wins, and hoping that recipe scales up to your giant model. This has two glaring flaws:

  1. Combinatorial explosion & off-policy drift: As domains grow, testing combinations gets wildly expensive, and tiny models initialized from scratch don't actually learn the same way a massive, half-trained model does.
  2. Static worlds: Most mixing algorithms assume your datasets are fixed on Day 1. In reality, training happens in stages (pretraining $\rightarrow$ midtraining $\rightarrow$ instruction tuning), with fresh datasets constantly arriving. Feed a model new data naively, and it suffers catastrophic forgetting—wiping out old skills to make room for new ones. Plus, if you download an open-weight model to fine-tune, you don't have a matching tiny proxy model lying around anyway.

The authors ask: Can one lightweight algorithm find the right data mix continuously, across every stage of a model's life, even as the datasets keep changing?

Methods

The authors introduce OP-MIX, which turns data mixing into a cheap, "on-policy" operation—meaning the proxy is built directly out of the exact model currently being trained.

Figure 1: Overview of OP-MIX. OP-MIX aims to cheaply estimate optimal data mixing ratios in a continual setting. (1) Train a lightweight LoRA adapter on new domains to estimate future performance. (2) Interpolate adapters to simulate different data mixtures without retraining and then estimate the optimal mixture ratio. (3) Train the base model with the computed mixture.

When $K$ new datasets arrive, OP-MIX runs a three-step loop:

  1. Lightweight On-Policy Probes: Instead of training separate proxy models, OP-MIX freezes the current base model and trains one LoRA (Low-Rank Adapter—a tiny, cheap-to-train set of add-on weights) for each new dataset. To avoid retraining adapters for every historical dataset, it trains just one additional LoRA on the previous optimal data mixture, locking in the relative ratios of old domains.
  2. Simulating Mixes via Interpolation: Rather than doing new training runs to test different data blends, OP-MIX mathematically blends (linearly interpolates) the trained LoRA weights themselves at various ratios and runs quick forward passes to measure validation loss. It then fits a standard log-linear regression curve over those points to find the sweet-spot mixing weights ($\alpha^*$).
  3. Full Training: Finally, it discards the temporary LoRA scaffolding and trains the actual base model using the newly discovered data mixture. (For pretraining from scratch, it simply runs a 20% uniform warmup phase first so the base model has sensible initial weights).

Datasets

No new benchmarks are introduced; the authors evaluate across established datasets spanning three lifecycle phases:

  • Pretraining & Continual Midtraining: C4, Algebraic Stack, ArXiv, Open Web Math, Reddit, and StackExchange (with midtraining starting from C4-pretrained DataDecide checkpoints).
  • Continual Instruction Tuning: Sequential fine-tuning of Qwen2.5-7B-Instruct on Tool Use (4k examples), Science (1.2k examples), and Medical (10k examples), adopted directly from prior continual learning work (Shenfeld et al., 2026).

Key Insights and Ideas

  • Weight merging mirrors data mixing: Because all the LoRA adapters branch off the exact same base model checkpoint, linear mode connectivity holds—meaning averaging adapter weights in parameter space remarkably tracks the true loss surface of actually training on mixed data.
  • LoRAs make better scouts than soldiers: In an ablation where the authors just kept the merged LoRAs instead of doing full training on the discovered data mix, performance dropped significantly. LoRAs don't have the capacity to replace full continual learning, but they have just enough signal to accurately point full training toward the right data mix.
  • Data mixing can rival complex training objectives: In continual instruction tuning, smart data replay via OP-MIX atop basic Supervised Fine-Tuning (SFT) recovers the anti-forgetting benefits of Self-Distillation Finetuning (SDFT)—an expensive method where the model constantly generates and distills its own outputs. Even better, combining OP-MIX with SDFT stacks the gains, showing data composition and loss objectives are orthogonal levers.
  • Lifecycle phases are artificial: Pretraining, midtraining, and fine-tuning don't need separate, specialized mixing machinery; they are all just instances of online continual learning.

Key Results

Across all three training phases, OP-MIX sits on the Pareto frontier of performance vs. total compute (counting the cost of finding the mix plus final training):

OP-MIX Pareto-dominates baselines in compute efficiency and performance across all three training stages
  • Pretraining (150M–530M OLMo models): OP-MIX improves average perplexity by 6.3% over uniform sampling (ERM), beats separate-proxy baseline OLMix by 5–6%, and matches full-model merging (MergeMix) using up to 14% less compute.
  • Continual Midtraining (150M–530M): OP-MIX mitigates forgetting 27% better on average (and 71% better on Reddit) than Continual SFT, while matching the "skyline" performance of retraining on all accumulated datasets from scratch using 66% less compute.
Figure 3: OP-MIX enables continual learning: For a 530M parameter model, OP-MIX mitigates forgetting 27% better on average and 71% better on Reddit than Continual SFT with WSD-S learning schedule, a method specifically designed for continual learning [Wen et al., 2025].
  • Continual Instruction Tuning (7B): OP-MIX + standard SFT hits 60.0% mean accuracy, virtually tying SDFT (60.2%) while using 95% less compute. Pairing OP-MIX + SDFT pushes accuracy to 61.9%.
  • Mixin Accuracy: In midtraining sweeps, OP-MIX's chosen mixtures land within 0.9% of the true brute-force optimal loss (vs. a 2.9% gap for a standard 10% data replay heuristic).

Limitations and Future Work

  • Model & Domain Scale: Pretraining and midtraining experiments top out at 530M parameters (7B for instruction tuning), leaving frontier-scale (70B+) behavior untested. Similarly, experiments use up to 5–6 domains; how LoRA interpolation holds up when blending 10 to 100+ domains simultaneously remains an open question.
  • Reward-Based Post-Training: The paper focuses on cross-entropy and distillation losses. Extending OP-MIX to reinforcement learning stages like RLHF—where LoRA proxies are already known to behave well—is highlighted as a natural next step, alongside unifying other phase-specific heuristics like learning rate schedules.

Summary updated

BibTeX
@inproceedings{hu2026efficient,
  author = {Michael Y. Hu and Apurva Gandhi and Kyunghyun Cho and Tal Linzen and Pratyusha Sharma},
  title = {{Efficient and Simple Data Mixing All the Time}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=9UVUeqvO8L},
}
Figure