The Fine Line: Navigating Large Language Model Pretraining with Down-streaming Capability Analysis

Chen Yang, Junzhuo Li, Xinyao Niu, Xinrun Du, Songyang Gao, Haoran Zhang, Zhaoliang Chen, Xingwei Qu, Ruibin Yuan, Yizhi Li, Jiaheng Liu, Stephen W. Huang, Shawn Yue, Ge Zhang

TL;DR

This paper shifts the focus of Large Language Model (LLM) scaling laws from abstract pretraining loss to concrete downstream task performance. By analyzing intermediate checkpoints of models up to 67 billion parameters, the authors demonstrate that downstream capabilities develop in predictable trajectories, revealing a natural "curriculum" where basic skills plateau early while complex reasoning emerges later.

What Problem Does This Paper Address?

Traditional LLM scaling laws (like those from OpenAI or DeepMind's Chinchilla) rely heavily on cross-entropy loss on the pretraining dataset to evaluate model progress. While pretraining loss correlates beautifully with compute and data scale, it only measures a model's data compression capabilities.

Unfortunately, a lower pretraining loss does not always translate linearly or predictably to better performance on downstream tasks. Phenomena like "grokking" or the sudden "emergence" of abilities make it difficult for engineers to know if a model under development will actually perform well on real-world benchmarks. This paper addresses this gap by providing a comprehensive, dynamic analysis of how specific downstream capabilities evolve across intermediate training checkpoints.

Methods

The authors evaluated numerous intermediate checkpoints from several prominent open-source model families, including Baichuan-7B, DeepSeek-7B/67B, Yi-34B, OpenLLaMA-7B, and Amber-7B. To ensure fine-grained data control, the researchers replicated the training of Amber-7B and OpenLLaMA-7B from scratch.

Instead of just tracking loss, they mapped checkpoint token counts directly to downstream task accuracies. Furthermore, they adapted the Chinchilla scaling law framework to model downstream performance ($P$) directly using the formula: $$P = a \cdot N^\alpha \cdot D^\beta \cdot C^\gamma$$ where $N$ is model size, $D$ is data size, $C$ is the computational budget, and $a, \alpha, \beta, \gamma$ are task-specific constants.

Datasets

The models were evaluated across a robust suite of 22 datasets categorized into six core capabilities:

  • Code: HumanEval, MBPP
  • Commonsense Reasoning: PIQA, SIQA, HellaSwag, WinoGrande, ARC-Easy/Challenge, OpenBookQA, CommonsenseQA
  • World Knowledge: NaturalQuestions, TriviaQA
  • Reading Comprehension: BoolQ, SQuAD 2.0
  • Math: GSM8K, MATH, TheoremQA
  • Examination: MMLU, CMMLU, CEval

Key Insights and Ideas

  • Intra-Domain Predictability: Training dynamics for tasks within the same domain are highly synchronized. For instance, a model's performance trajectory on MMLU can reliably predict its trajectory on other examination benchmarks like CMMLU and CEval.
  • The Pretraining "Curriculum": LLMs naturally acquire skills in a layered fashion. Basic capabilities (e.g., physical common sense in PIQA or story outcome prediction in HellaSwag) develop rapidly and plateau early—often within the first 300 billion tokens. Advanced cognitive tasks (e.g., social comprehension in SIQA or complex scientific reasoning in ARC) experience a performance spike much later in the training lifecycle.
  • Architecture vs. Scale: Model size isn't everything. While larger models generally dominate complex math and reasoning tasks, data quality and architectural efficiency allow certain smaller models to punch above their weight. For example, the OpenLLaMA-7B model approached or exceeded the capabilities of the much larger Yi-34B on specific reasoning tasks at identical training phases.

Key Results

The modified scaling law effectively captures downstream performance trends, showing a clear monotonic increase in exam scores as training data scales, though with clear diminishing returns later in training.

Scaling law curve fits for CEval, CMMLU, and MMLU benchmarks show a predictable, monotonically increasing trend with diminishing returns.

Horizontal analysis across different model families confirmed that the synchronization of examination benchmarks holds true regardless of the specific model architecture or size.

Performance trends across MMLU, CEval, and CMMLU show remarkable consistency within each model family.

For standard benchmarks, the rapid early rise and subsequent plateau before 300B tokens was consistently observed across all evaluated models, validating the foundational-to-higher-order skill progression hypothesis.

Standard benchmarks across various models show a rapid early performance spike followed by a plateau.

Limitations and Future Work

The authors note that while the modified scaling law curves fit some models tightly (like Baichuan2 and Yi-34B), others deviate. This discrepancy stems from the fact that downstream task scoring methods vary wildly and dataset distributions differ from the pretraining token distribution.

Additionally, the paper highlights that using non-embedding FLOPs per token instead of overall model parameters can introduce nuances that the original scaling laws fail to capture perfectly. Future work will focus on developing more data-centric algorithmic approaches and refining scaling laws to better predict highly non-linear downstream task emergence.

Summary updated

BibTeX
@misc{yang2024fine,
  author = {Chen Yang and Junzhuo Li and Xinyao Niu and Xinrun Du and Songyang Gao and Haoran Zhang and Zhaoliang Chen and Xingwei Qu and Ruibin Yuan and Yizhi Li and Jiaheng Liu and Stephen W. Huang and Shawn Yue and Ge Zhang},
  title = {{The Fine Line: Navigating Large Language Model Pretraining with Down-streaming Capability Analysis}},
  year = {2024},
  eprint = {2404.01204},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.01204},
}
Figure