Towards a Universal Scaling Law of LLM Training and Inference

Chuhan Wu, Ruiming Tang

TL;DR

This paper proposes a unified qualitative scaling framework that mathematically connects LLM pre-training parameters (such as model depth, width, and tokens) with inference-time techniques (chain-of-thought reasoning and repeated sampling). It formalizes why test-time compute can hit diminishing or negative returns under imperfect verification, and introduces the conceptual framework of meta-scaling—hierarchical, multi-level verification—to break through inference scaling bottlenecks.

What Problem Does This Paper Address?

Pre-training larger models on ever-growing token corpora is becoming increasingly constrained by compute budgets, data limits, and training instabilities. In response, the field has leaned into inference-time scaling (e.g., Chain-of-Thought prompting, majority voting, search, and models like OpenAI's o1) to extract reasoning performance from smaller models.

However, existing scaling laws treat pre-training compute and test-time compute as separate regimes. This leaves several practical phenomena unexplained:

  • Why do deeper models expanded via layer-copying outperform baseline models that share the exact same training loss?
  • Why does test-time search excel on math and code but stall on knowledge-heavy benchmarks or subjective evaluation?
  • When does generating more reasoning tokens or candidate answers actually hurt performance?

The authors aim to bridge this gap with a single analytical framework connecting training architecture to inference dynamics.

Methods

The authors construct a qualitative mathematical model:

  1. Fine-Grained Loss Formulation: They decompose standard scaling laws by separating model shape into depth (layer count $N$) and width (hidden dimension $d$), plus training tokens $S$ and an expansion factor $E$ for Mixture-of-Experts (MoE): $$\mathcal{L} = \left(\frac{x_1}{N^{w_1}} + \frac{x_2}{d^{w_2}}\right)\frac{x_4}{E^{w_4}} + \frac{x_3}{S^{w_3}} + b$$

  2. Connecting Loss to Downstream Accuracy: Training loss determines equivalent correct token logits $\mu = -\log(e^{\mathcal{L}} - 1)$, which are perturbed during decoding as $y \sim \mathcal{N}(\mu, \sigma^2)$.

  3. Modeling Chain-of-Thought (CoT): The paper models multi-step reasoning with $C$ critical steps, where intermediate steps scale with model depth $N$ via a bounded hyperbolic tangent term: $$y' = y + y_0 \cdot \tanh\left(\frac{C \log(N)}{C_0}\right)$$ Here, $y_0$ represents task amenability to CoT, and $C_0$ represents reasoning complexity.

  4. Modeling Verification and Repeated Sampling:

  5. No verification (e.g., self-consistency): Primarily reduces sampling variance via $\sigma^2 / f(R)$ across $R$ trials.
  6. Perfect verification (e.g., unit tests): Follows the infinite monkey theorem: $I' = 1 - (1 - I)^{f(R)} \to 1$ as trials increase.
  7. Imperfect verification (e.g., LLM-as-a-judge): Accounts for an error rate $\epsilon$ of rejecting correct answers, yielding $I' = (1 - (1 - I)^{f(R)})(1 - \epsilon)^{f(R)}$.
  8. Meta-Scaling: To combat error accumulation in imperfect judges, the authors propose recursive verification functions: $$m_K(x) = g_K(\dots g_2(g_1(x, R_1), R_2)\dots, R_K)$$ where judges evaluate judges up to order $K$, resulting in an inference compute complexity of $\mathcal{O}\left(e^{\sum_{i=1}^K R_i}\right)$.

Datasets

The paper does not introduce new datasets. It conducts theoretical and numerical simulations and grounds its qualitative arguments against findings from several established benchmarks:

  • Reasoning & Math: GSM8K
  • Code: HumanEval
  • Knowledge & Multi-task QA: MMLU, MMLU-Pro, and GPQA

Key Insights and Ideas

  • Model Depth is an Inference Multiplier: Deeper models give chain-of-thought reasoning higher expressive capacity per critical step ($C \log N$). This explains why depth-expanded models trained on relatively small token budgets (~100B tokens) outperform unexpanded counterparts at identical training loss: they expend more computational depth during inference.
  • The "Imperfect Judge" Trap: When verification relies on an imperfect verifier (generation loss $L_g \approx$ verification loss $L_v$), increasing sample trials $R$ initially improves accuracy, peaks, and then drops toward zero. The judge eventually rejects valid solutions and selects false positives.
  • Task Topology Dictates Strategy:
  • Large $y_0$, large $C_0$ (e.g., GSM8K): High synergy between depth and multi-step prompting.
  • Small $y_0$, large $C_0$ (e.g., MMLU): Broad knowledge lookup with little multi-step structure; test-time CoT yields minimal benefit over base model depth.
  • High training loss: If base loss is too high (as on GPQA/MMLU-Pro), sampling and voting fail because the model lacks foundational representations to begin with.

Key Results

  • Theoretical Phase Transition in Test-Time Compute: Numerical simulations demonstrate that scaling inference compute is only monotonic when verification is near-perfect ($\epsilon \approx 0$ or $L_g \gg L_v$). At $\epsilon = 0.2$ or $0.5$, test-time scaling exhibits sharp degradation past modest trial counts ($f(R) > 5$).
  • Explanation for GPT-o1 Style Discrepancies: The formulation explains why test-time scaling produces dramatic gains in math and competitive programming (where programmatic verification or strict verifiers exist) but yields marginal gains in open-ended or subjective tasks.

Limitations and Future Work

  • Theoretical/Qualitative Character: The formulations are conceptual models and numerical simulations rather than empirical power laws fitted to large-scale multi-run experimental sweeps.
  • Simplifying Assumptions: The model treats final answers as single-token predictions, assumes all critical steps must succeed independently, and abstracts token sampling into idealized Gaussian logit distributions.
  • Feasibility of Meta-Scaling: While meta-scaling offers a theoretical pathway to beat judge error accumulation, its computational cost grows super-exponentially ($\mathcal{O}(e^{\sum R_i})$), making practical implementations challenging without aggressive pruning and search heuristics.

Summary updated

BibTeX
@misc{wu2024towards,
  author = {Chuhan Wu and Ruiming Tang},
  title = {{Towards a Universal Scaling Law of LLM Training and Inference}},
  year = {2024},
  url = {https://openreview.net/forum?id=0O69Ng9LFT},
  howpublished = {OpenReview},
}
Figure