Training language models with generated staged data improves learning
Generative Curriculum Learning
Machine LearningComputation and Language
Summary
Training large language models with a fixed dataset in a certain order can sometimes help and sometimes hurt, depending on the data used. The authors show that this inconsistency happens because current methods only reorder existing data rather than designing data to match learning stages. To fix this, they create data step-by-step with increasing difficulty, like school grades, so the model learns progressively from easier to harder materials. This new approach, called generative curriculum learning, improved math and coding problem-solving performance, showing promise for better training methods.
What this means in practice
- •For machine learning engineers: Create training datasets with graded difficulty levels to improve language model performance on complex reasoning tasks.
Authors
Animesh Jha, Karthik Mohan, Haakon Mongstad, Maximilian Böther, Ties Robroek, Ari S. Morcos, David J. Schwab, Matthew L Leavitt, Pratyush Maini
Abstract
Curriculum learning, training on data in a defined order rather than at random, has been frustratingly inconsistent for LLM pretraining despite its intuitive appeal, success in reinforcement learning, and ubiquity in human and animal learning environments. We start by implementing representative curriculum methods to confirm the inconsistency. We find, for example, that a method that helps by 6 percentage points (pp) on one corpus hurts by the same amount on another, and only uniform sampling is robust to the choice of corpus. This leads us to identify a shortcoming of existing curriculum methods: they take the corpus as given and impose an order over it. We argue that this puts the cart before the horse. An arbitrary corpus that was never designed to be progressive may not contain the material a model needs at each stage or the signals required to create a curriculum. We sidestep this problem by turning to synthetic data, which allows us to write the curriculum directly into the data. We define this as generative curriculum learning. In generative curriculum learning, we specify a progression of stages first, and then generate the data for each stage. We demonstrate its efficacy first in math, in which we rewrite math problems using a curriculum of grade level difficulty for grades 1 through 7. Training in grade order beats uniform sampling of the same data by 3-6 pp on GSM8K and MATH-500 pass@8 at both 0.6B and 1.7B parameters. We find that this holds across domains, from mathematics to code. Our results suggest that generating data with an explicitly designed progression is a promising, underexplored axis for curriculum research in LLM pretraining.