atlas

Research map / Continual learning / Continual fine-tuning of LLMs

Data Mixing Laws: Optimizing Data Mixtures by Predicting Language Modeling Performance

ICLR 2025 · Continual learning › Continual fine-tuning of LLMs · approach: Continual pretraining of language models · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes data mixing laws, an exponential function of domain mixture proportions predicting validation loss, combined with nested scaling laws (steps, model size) to optimize pretraining mixtures from small-scale runs.

Problem

Pretraining data mixture proportions crucially affect LLM performance, but tuning them relies on heuristics, and evaluating candidate mixtures at target scale is prohibitively expensive.

Approach

Model validation loss as an exponential function of a linear combination of domain mixture proportions (data mixing law), fit on small-scale runs, and chain it with power-law scaling laws of training steps and model size to predict large-scale performance on unseen mixtures before training.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace the default RedPajama mixture with the optimized mixture1B model trained on RedPajama · Pile validationtraining steps for comparable performance: 0.73 of the original number of training steps; 48% more steps with the default mixtureHelped
Use M4 rather than a random guess for loss predictionData mixing law · GitHub validationMAE: 0.8758 -> 0.0365Helped
Use M4 rather than a random guess for loss predictionData mixing law · Books3 validationMAE: 0.1331 -> 0.0074Helped
Use M4 rather than a random guess for loss predictionData mixing law · Pile-CC validationMAE: 0.1045 -> 0.0078Helped

Surprising findings

Limitations

Experimental setup

Datasets: The Pile RedPajama GitHub Books3 Pile-CC Wikipedia ArXiv StackExchange

Benchmarks: The Pile validation set domain-specific validation sets (GitHub, Pile-CC, Books3, and others)

Metrics: validation loss mean absolute error perplexity

Baselines: DoGE DoReMi default RedPajama mixture

Builds on: Chinchilla scaling laws DoReMi DoGE Pythia

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy