AC-ODM: Actor–Critic Online Data Mixing for Sample-Efficient LLM Pretraining
Abstract
Lay Summary
Large language models learn from enormous mixtures of text, code, scientific writing, books, and other data sources, but choosing how much to train on each source is difficult. A fixed data mixture can waste computation because the model's needs change throughout training. We propose AC-ODM, a method that treats data mixing as a feedback problem: it observes the training state of the model and adjusts the mixture online. The method favors data sources whose learning signals work well together, helping each training step make more useful progress. In experiments on large pretraining corpora, AC-ODM trains models faster and improves performance on language understanding and code generation tasks. This can reduce the compute and energy needed to reach a target model quality, while also helping researchers better understand how different data sources contribute during pretraining.