Equal pre-training loss, equal scores; MMLU wakes up below 2.2

Understanding Emergent Abilities of Language Models from the Loss Perspective

Zhengxiao Du, Aohan Zeng, Yuxiao Dong, Jie Tang

NeurIPS 2024

cs.CL, cs.AI, cs.LG

2024-03-23

Thirty-plus models trained from scratch show matched downstream scores at the same pre-training loss; MMLU stays near chance until that loss falls below about 2.2.

What problem this solves

Wei et al. defined emergent abilities as skills large language models have and small ones do not. Two later results loosened that cut. LLaMA-13B beats GPT-3 175B on MMLU with less compute, by training on more tokens and filtering harder. Schaeffer et al. argue the jump is mostly the metric: accuracy marks a multiple-choice item 0 or 1, so a slow rise in probability can plot as a flat line and then a leap.

Chinchilla already showed that the same training compute can land at different pre-training losses, depending on how parameters and tokens are paired. Loss is closer to a progress meter than parameter count. The missing piece was a direct map from that loss onto downstream scores. Earlier work either measured transfer after finetuning, or stayed inside one model, one task, or one prompt style.

This paper freezes the corpus, the tokenizer, and the architecture, and puts pre-training loss on the x-axis. Do models at the same loss get the same downstream scores? On tasks like MMLU, does performance sit at chance until loss crosses a threshold?

Method

Zhipu AI and Tsinghua pre-trained more than 30 Transformers from scratch, at 300M, 540M, 1B, 1.5B, 3B, 6B, and 32B. English and Chinese are mixed 4:1. The stack is close to LLaMA, with two changes. Grouped-query attention replaces multi-query attention, so several query heads share one key/value group. Rotary position embeddings cover only half the dimensions of the query and the key.

The probability of a correct continuation is p(y|x) = exp(-l(y|x)), with l the cross-entropy of that prompt. Same shape as the pre-training loss, different number. Pre-training loss averages every token, and documents are not equally hard. If the prompt never appears in the corpus, l is a generalization loss and can still depend on size. In vision, a larger model often wins on the test set after both models have fit the training data. Whether average loss locks prompted scores has to be measured.

Twelve tasks, six English and six Chinese, cover closed-book QA, commonsense inference, reading comprehension, coreference, exams, and math word problems. Prompts include few-shot, zero-shot, and few-shot chain-of-thought. English uses TriviaQA, HellaSwag, RACE, WinoGrande, MMLU, and GSM8K. Chinese uses NLPCC-KBQA, ClozeT, CLUEWSC, C3, C-Eval, and a translated GSM8K.

MMLU and C-Eval also get two continuous metrics, so a 0/1 accuracy cannot be the whole story. CorrectChoiceProb is the probability on the right option. Brier Score is the mean squared error between predicted probabilities and the true labels. Lower is better.

Results

Checkpoints from the 1.5B, 6B, and 32B runs fall on one curve. Cover the color that marks size, and the points are hard to separate. Near a training loss of 2.00, different sizes already overlap on TriviaQA. Scores rise as loss falls, in both languages, even though the loss is computed on the mixed token stream.

The correlations are negative because lower loss tracks higher scores. On the smooth tasks, Spearman and Pearson both sit near -1. The four harder tasks are weaker: a stretch of each curve lies on chance.

TaskSpearmanPearson
TriviaQA-0.996-0.994
HellaSwag-0.996-0.994
RACE-0.977-0.963
WinoGrande-0.978-0.988
NLPCC-KBQA-0.984-0.982
ClozeT-0.986-0.985
C3-0.988-0.993
CLUEWSC-0.947-0.972
MMLU-0.804-0.903
C-Eval-0.831-0.884
GSM8K-0.975-0.874
GSM8K-Chinese-0.948-0.829

MMLU has four options, so chance is about 25%. Above a loss of about 2.2, accuracy stays near 25%. Below 2.2 it climbs as loss drops. C-Eval, GSM8K, and GSM8K-Chinese share that neighborhood. GSM8K's Spearman is still -0.975, while Pearson falls to -0.874: the link stays monotone, and the flat segment keeps it off a straight line.

RACE is also multiple choice with in-context examples, yet it rises from the start of training. The paper puts the split down to difficulty. Reading and commonsense are easier than exams and multi-step math. No separate difficulty score is reported.

The 28 shorter runs, from 33B to 500B tokens, still land on the same endpoint curves. Under 500B tokens the four hard tasks stay near chance. Most of those runs never reach a loss of 2.2.

LLaMA 7B through 65B mostly follow one rising curve too. Early LLaMA-65B is the exception: above a loss of 1.8 it trails smaller models at the same loss, and those points are only the first 10% of tokens. The paper attributes the outlier to exponential smoothing on the published figure. Intermediate checkpoints are not public. Pythia agrees in direction. The main text gives no separate correlation for it.

Continuous metrics do not erase the kink. Accuracy, CorrectChoiceProb, and Brier Score all turn once loss passes the threshold. Brier Score also falls while loss is still above it. A lower Brier Score there is not the same as getting the item right. Correct answers are spread evenly over the four options, and a predictor that always emits the uniform distribution scores 0.75. Until the threshold, the models do not beat that baseline.

With token count fixed, loss falls as a power law in size, L(N) = L∞ + (N0/N)^αN. The paper therefore calls an ability emergent when it is absent at higher pre-training loss and present at lower loss. The jump versus parameter count is this loss threshold drawn on another axis.

Why it matters

Inside one corpus, one tokenizer, and one architecture family, parameter count is not the switch. A 1.5B model trained longer and a 32B model trained less meet on the same 12 prompted scores once their losses match. Loss is the cleaner x-axis for whether a task has left chance.

The account that emergence is only a discontinuous metric does not fit these runs. The kink remains under continuous scores, and before the kink the model is not beating chance. Extrapolating the flat high-loss region only reproduces random guessing.

This is a change in measurement, not a training recipe. The value 2.2 is tied to this tokenizer and this corpus. A loss printed in another technical report is not comparable. Instruction tuning can still raise zero-shot MMLU and GSM8K, so a chat model's score does not say whether the base model's pre-training loss crossed the threshold.

Limitations

Architecture and optimizer barely move. LLaMA and Pythia are nearby Transformers. Routed models, non-Transformer nets, and optimizers other than AdamW are untested. Loss also moves with the tokenizer and the corpus, so numbers from different mixtures cannot be compared directly. Normalized perplexity on a public validation set is suggested as a fix for vocabulary size, and that comparison is not run. The paper states that new tipping points at larger scale are not guaranteed.

The external check is thin. LLaMA points were read off figures, and the early 65B outlier is guessed to be smoothing. Runs under 500B tokens generally never reach loss 2.2, so the small-model side is an extrapolation. Difficulty is not measured on its own. GSM8K uses few-shot chain-of-thought, so the threshold mixes in whether the model follows the step-by-step format. Why four tasks share a threshold near 2.2 is left open. The grokking analogy, a sudden generalization after overfitting, does not fit: pre-training here is still underfitting overall.

There is no test of whether size still matters once loss is held fixed. Checkpoints are about 43B tokens apart, which is the resolution of the threshold. The scope is prompted evaluation without finetuning. Tay et al. find that after finetuning the same pre-training loss can still split by architectural bias. Shin et al. find that once the corpus changes, lower perplexity does not guarantee better in-context learning. Each result covers a different setup.

Terms

Source

What people are saying

Related papers

All paper explainers