Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

AC-ODM: Actor--Critic Online Data Mixing for Sample-Efficient LLM Pretraining

About

Optimizing pretraining data composition is pivotal for LLM generalization. While dynamic mixing outperforms static strategies by capturing evolving training dynamics, current methods fail to reconcile computational efficiency with sample efficiency and structural flexibility for diverse pipelines.We introduce Actor--Critic Online Data Mixing (AC-ODM), which approaches data mixing from a reinforcement learning perspective with a parameterized policy that we theoretically prove to act as a dynamic linear surrogate maximizing the constructive interference of gradients. To enhance practical flexibility, AC-ODM supports two operational modes: (i) a proxy mode for fixed, pre-prepared corpora, where a policy learned on a small model is transferred to a larger target; and (ii) a non-proxy mode for direct end-to-end training from scratch without priors. Empirically, AC-ODM significantly outperforms prior methods in convergence speed and downstream accuracy across various architectures. On Pythia-1B, it reaches optimal validation perplexity using up to 66% fewer training steps than competitive baselines, delivering a 27.5% relative improvement in MMLU accuracy and a 2.23 x higher pass@1 on HumanEval, all while incurring a virtually negligible (0.4%) per-step wall-clock increase and only 2% additional memory overhead. Code is available at https://github.com/DANG-ai/AC-ODM.

Jing Ma, Chenhao Dang, Mingjie Liao• 2025

Related benchmarks

TaskDatasetResultRank
Commonsense ReasoningWinoGrande
Accuracy63.38
1581
Physical Commonsense ReasoningPIQA
Accuracy72
724
Code GenerationHumanEval
pass@172.644
329
Language UnderstandingMMLU
MMLU Accuracy35.215
307
Common Sense ReasoningCOPA
Accuracy72
288
Science Question AnsweringSciQ
Accuracy (SciQ)73
134
Language ModelingThe Pile (val)
Perplexity (bits/byte)8.79
55
Language ModelingThe Pile (val)
PPL4.24
41
Language ModelingThe Pile
Inference Speedup2.08
11
Showing 9 of 9 rows

Other info

GitHub

Follow for update