Towards Optimal Learning of Language Models
Yuxian Gu, Li Dong, Yaru Hao, Qingxiu Dong, Minlie Huang, Furu Wei
TL;DR
This work proposes a principled theory for accelerating language-model learning by treating LM training as lossless data compression and minimizing the area under the dsr-loss curve $AUC$. The central result, the Learning Law, shows that in the optimal learning regime all non-noisy training examples contribute equally, implying a dynamic data-reweighting policy that emphasizes highly contributive samples while avoiding overfitting. The authors validate the theory with gradient-flow analysis and empirical experiments on Perceptron and Transformer models (TinyStories), demonstrating substantial speedups of $5.50\times$ and $2.41\times$ respectively and improvements in the LM scaling-law coefficients. The work connects data-selection principles, optimization dynamics, and information-theoretic views to offer a coherent path toward efficient LM training, while acknowledging limitations and outlining directions for scaling to larger models and more practical training setups.
Abstract
This work studies the general principles of improving the learning of language models (LMs), which aims at reducing the necessary training steps for achieving superior performance. Specifically, we present a theory for the optimal learning of LMs. We first propose an objective that optimizes LM learning by maximizing the data compression ratio in an "LM-training-as-lossless-compression" view. Then, we derive a theorem, named Learning Law, to reveal the properties of the dynamics in the optimal learning process under our objective. The theorem is then validated by experiments on a linear classification and a real-world language modeling task. Finally, we empirically verify that the optimal learning of LMs essentially stems from the improvement of the coefficients in the scaling law of LMs, indicating great promise and significance for designing practical learning acceleration methods. Our code can be found at https://aka.ms/LearningLaw.
