Curriculum Learning for LLM Pretraining: An Analysis of Learning Dynamics
Mohamed Elgaar, Hadi Amiri
TL;DR
This work analyzes how pretraining data order shapes learning dynamics in large language models by training Pythia variants (14M–410M parameters) on 300B tokens under three linguistically motivated curricula and comparing to Random ordering. It finds that all orderings follow a shared sequence of latent learning phases, and curricula mainly affect data exposure within phases, yielding greater stability and modest accuracy gains in smaller models through reduced gradient noise and less spectral saturation of the output head. A theoretical framework links difficulty pacing to bounded gradient variance, explaining why curricula stabilize late-stage optimization, especially when model capacity is insufficient to avoid softmax bottlenecks. Gains shrink with scale, suggesting curricula are most beneficial for capacity-constrained regimes and guiding practical, phase-aware curriculum designs, including adaptive and multi-stage strategies for broader applicability. The results offer actionable insights for robust, compute-efficient pretraining, highlighting how within-phase data exposure, not phase creation, underpins stability improvements.
Abstract
Curriculum learning changes the order of pre-training data, but it remains unclear whether it changes the learning trajectory or mainly reorders exposure over a fixed trajectory. We train Pythia models (14M-410M parameters) for 300B tokens under three linguistically motivated curricula-Age-of-Acquisition, word frequency, and Verb Variation (VV)-and compare each against Random ordering; at 1B parameters we compare Random and VV. Across orderings, training follows a shared sequence of latent phases, while curricula mainly change within-phase data exposure. In smaller models (up to 160M parameters), Random ordering exhibits higher gradient noise and stronger late-training output-head spectral saturation, alongside lower final accuracy; curricula reduce both effects at matched compute. At larger scales, saturation differences are smaller and curriculum gains shrink. We formalize the link between difficulty pacing and optimization stability in an idealized analysis based on gradient-variance control, and our results point to a practical takeaway: curricula help by stabilizing within-phase optimization rather than by creating new phases.
