# Efficient and Simple Data Mixing All The Time

*Michael Hu, Apurva Gandhi, Kyunghyun Cho, Tal Linzen, Pratyusha Sharma*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/154977) · [Open on the map](../papers.html#p154977)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Mixture-of-Experts Data Mixing](../pgroup/305.md) · Type: new method · Keywords: data mixing, language model training, online decision making, low-rank adapters, continual learning

Areas: [Continual Learning & Adaptation](../areas/continual-adaptation.md) › Catastrophic Forgetting and Unlearning › Catastrophic Forgetting

## Summary
OP-Mix is an online data mixing algorithm that unifies mixing across pretraining, continual learning, and instruction tuning by simulating mixtures via low-rank adapters, achieving better perplexity and lower compute.

## Explained to a 5-year-old
When we teach a computer program to understand words, we give it many different stories and facts. Sometimes we want to mix different kinds of stories together so it learns better. The paper says we can decide which stories to mix on the fly, without needing extra small models. This helps the program get better results while using less computer power. It makes learning from data a smooth, continuous process instead of separate steps.

## Explained to a 5-year-old, longer
When we teach a computer to understand words, we show it lots of reading material. Sometimes we want to mix different kinds of reading material together to help it learn better. Existing ways of mixing data only work for one part of the learning, like just the beginning or just later. The paper says mixing data is like making decisions online, all the time during training. They came up with a simple idea: you can pretend to mix data by using small changes to the model. These small changes let you try out different mixes without needing extra models. This way you can find good mixes that improve the model's performance. In the beginning training, the new method makes the model understand words better, reducing mistakes. When the model keeps learning new things, the method helps it keep old knowledge while adding new facts. When we teach the model to follow instructions, the method also helps it learn from different kinds of instructions. All of this works while using much less computer power than the old ways. So the whole learning process becomes one smooth, continuous activity instead of many separate steps.

## For a technical reader
OP-Mix is an online data mixing algorithm that works across all phases of language model training. It simulates candidate mixtures by interpolating between low-rank adapters attached to the current model, avoiding separate proxy models. This approach grounds the search in the model’s actual learning dynamics, leading to near-optimal mixes with far less compute. In experiments, OP-Mix reduces perplexity by 6.3% during pretraining and matches the performance of full retraining while using 66%-95% less compute. The paper argues that training should be seen as a single continuous process rather than a series of distinct phases.

## Problem
Data mixing is needed across different phases of language model training, but existing methods address only one phase at a time, requiring proxy models or fixed domains, and lack a unified online solution.

## Method
The approach simulates candidate data mixtures by interpolating between low-rank adapters trained on the current model, eliminating separate proxy models and grounding the search in actual learning dynamics.

## Results
The approach improves average perplexity by 6.3% in pretraining and matches the performance of retraining and on-policy distillation while using 66% and 95% less compute, respectively, in continual learning.

## Contributions
It proposes a unified online data mixing framework that works across all training phases, uses low-rank adapters for cheap mixture simulation, and achieves better performance with far less compute.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/154977)
