Abstract
Guided by the prophecy of scaling law, large language models (LLMs) demonstrate higher levels of intelligence with increased sizes and computational power. Meanwhile, the overall outcome of small LLMs seems to show a scaling trend when a higher inference cost is paid in prompting and sampling. However, the inherent relatedness between training and inference in the path of scaling up is less studied. In this article, we present a universal theory on the joint computational scaling of LLM training and inference, which characterizes the general behaviors of LLM in various settings. Based on simple modeling of several key hyperparameters, we give intuitive explanations for the effectiveness of various techniques at both training and inference time. To explain the limitation of the current inference paradigm, we further propose the concept of meta-scaling to address the problem of error accumulation in the inference scaling process. We hope that this work can provide insight into future LLM research, development, and applications.
Introduction
For years, the AI community has followed the "scaling laws" established by OpenAI and DeepMind, which suggest that more data and more parameters lead to better models. However, we are hitting a wall: high-quality data is becoming scarce, and training massive models is increasingly unstable and expensive. Recently, models like OpenAI’s o1 have shown a "second scaling curve" at inference time—spending more compute "thinking" before answering. But a major theoretical gap remains: How do training-time decisions (like model depth) affect inference-time performance? And why does "thinking longer" help some tasks but hurt others? This paper seeks a unified theory to explain the joint effects of training and inference.
Decomposing the Scaling Law
The authors move beyond the "vanilla" scaling law by introducing a finer-grained qualitative model. Instead of treating model size as a single variable, they split it into depth ($N$) and width ($d$). They argue that depth plays a unique role in reasoning that width cannot replicate.
A key insight is the "free lunch" phenomenon: expanding a model's depth (even without much extra training) improves downstream performance. This is because deeper models are more efficient at the "thinking" required during inference. As shown in the theoretical modeling of training loss versus downstream performance, a deeper model might initially show higher loss but eventually crosses over to provide superior downstream utility.
The Verification Bottleneck
Inference scaling isn't infinite. The authors mathematically model Chain-of-Thought (CoT) reasoning as a series of "critical steps." The probability of success is tied to both the number of steps and the model's inherent depth. They analyze two types of inference-time sampling:
- Perfect Verification: (e.g., code or math) where a "gold standard" can tell if an answer is right.
- Imperfect Verification: (e.g., RLHF or LLM-as-a-judge) where the judge might mistakenly reject a correct answer.
With an imperfect judge, there is an "optimal" number of inference trials or reasoning steps. Beyond that point, performance drops because the judge starts picking "confidently wrong" answers. This creates a U-curve (or inverted U-curve for accuracy) where excessive "thinking" or sampling eventually degrades performance.
Meta-Scaling: Solving the Bottleneck
To break the "imperfect judge" bottleneck, the authors propose meta-scaling—a recursive verification strategy. By verifying the verifier through a hierarchy of checks, the system can potentially eliminate evaluation errors. While this leads to a faster growth in computational complexity, it offers a path toward overcoming the limitations of current inference paradigms.
Conclusion and Future Work
This paper provides a qualitative framework that aligns with the real-world behavior of modern models like GPT-o1, explaining why they excel at verifiable tasks (math/code) but show less dramatic gains in subjective areas. While the theory is currently qualitative, it sets the stage for future empirical studies to "fit" these equations to real-world training runs, turning this framework into a predictive tool for the next generation of LLMs.
Summary updated