Notes

Data Mixture

Before anyone trains a large model, somebody decides what it will read — not just which sources are allowed, but what share of the training tokens each source gets. That set of proportions is the data mixture, and it shapes the finished model as firmly as the architecture does.

What the proportions look like

A recipe typically draws from filtered web crawl (the bulk), code, books, reference text, mathematics, scientific papers and multilingual text, with each slice given a sampling weight rather than simply its natural size. Those weights are not raw availability: small high-quality sources are up-sampled, sometimes seen more than once, while the long tail of junk web pages is down-weighted hard. Choosing them by intuition is expensive to get wrong, so methods such as DoReMi tune the weights on small proxy models before the real run begins.

What the mixture decides
  • Whether the model can write usable code, and in which languages — the code share is the most visible dial of all.
  • Arithmetic and step-by-step reasoning, which track the mathematics and code fractions more closely than the total token count.
  • Multilingual competence, which is a budgeting decision rather than an emergent gift.
  • Repetition risk: up-sample a small source too aggressively and you trade generalisation for memorisation.

The mixture matters most because it is fixed before the expensive part starts. Later fine-tuning can change a model's manners, but it cannot install knowledge the corpus never contained — the mixture sets the ceiling everything afterwards works beneath.

Data mixture is the set of proportions in which a pretraining corpus is sampled — how many training tokens come from filtered web text, code, books, mathematics, reference text and each language. The weights are chosen rather than inherited from raw availability, with small high-quality sources up-sampled. The mixture fixes what the model can do before training starts: code ability, arithmetic and multilingual coverage are budget decisions, and later fine-tuning cannot add knowledge the corpus lacked.

Think of a diet rather than a reading list. If someone eats only one kind of food, you can predict what they will be short of. The data mixture is the diet given to a language system: how much ordinary web writing, how much computer code, how many books, how much mathematics, how much of each human language. The people building it pick those proportions on purpose, before any training begins. That choice is why one assistant is strong at programming while another handles Hindi better. It is not a mysterious talent that appeared on its own — it is what the system was fed.