Data / Methods
verifiedData Mixing
A training corpus is several corpora — web text, code, books, papers, forums — and how much of each you use is a decision with large effects. Code improves reasoning on non-code tasks; too much of any single source costs breadth. The proportions are tuned like hyperparameters and reported far less often.
Tuning them directly is expensive because each trial is a training run, so the practical methods fit proxy models at small scale and transfer the weights up. That transfer is the assumption to watch: a mixture optimal for a small model is not obviously optimal for a large one, and the literature has examples of the ranking changing with scale.
Sample domain i with weight w sub i summing to one; the loss is a weighted sum over domains and the gradient is dominated by whichever has the most mass. Optimising the weights against a target distribution is a bilevel problem — the inner problem is training — which is why the working methods approximate it with small proxy models rather than solving it.
16 values. The left group decays steeply; the right group is 36% of the way to flat, and reads flatter than the left.
How training mass is spread across source domains, as sampled and as it is balanced. Drag the balancing up to watch the mixture even out — a natural crawl is steeply uneven, and both ends of this drag cost something.
Reviewed by opendroid · 2026-08-18
- arXiv:2305.10429 — DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretraining