thebestai.co encyclopedia

Programming and Computational Foundations

2 articles30 min read10 topics

#Reasoning Models and Test-Time Compute

#Concise Definition

A reasoning model (also called a large reasoning model, LRM) is a language model trained, typically with reinforcement learning, to generate a long intermediate chain of thought before giving a final answer, so that its accuracy on hard problems can improve with the amount of computation spent at inference time. Test-time compute (inference-time compute) denotes that computation: the number of tokens generated, samples drawn, or search steps taken per problem, as distinct from the compute used in training.

#Overview & Significance

For most of the period in which language models were scaled, additional capability was obtained by spending more compute during training (see [TECH-SCALE-001]). Reasoning models add a second lever: for a fixed trained model, a harder problem can be given more thinking tokens or more attempts. Snell et al. (2024) argued that, for some problems, using test-time compute well can outperform scaling model parameters, and Brown et al. (2024) showed that coverage (the fraction of problems solved by at least one of many samples) increases smoothly with sample count over four orders of magnitude.

The significance is both technical and conceptual. Technically, it shifts cost from training to serving (see [TECH-INFER-001]) and makes the compute spent per query variable. Conceptually, the reasoning traces raise questions about what the model is doing when it "thinks" and whether the written trace is a faithful account of its computation (Section 7). Capability claims for reasoning models, their evaluation, and their limits as general planners are treated in [CAP-REASON-001]; this article describes the methods.

#Historical Development

Producing intermediate steps was shown to help earlier than the current generation. Cobbe et al. (2021) trained verifiers to rank sampled solutions to grade-school math problems (GSM8K) and showed that verification improved performance. Nye et al. (2021) trained models to emit "scratchpads" of intermediate computation. Wei et al. (2022) showed that few-shot chain-of-thought (CoT) prompting elicits step-by-step reasoning in sufficiently large models, and Kojima et al. (2022) showed that a zero-shot instruction can trigger similar behaviour. Wang et al. (2023) proposed self-consistency, sampling multiple reasoning paths and selecting the most common final answer. Yao et al. (2023) proposed Tree of Thoughts, a search over partial reasoning states with self-evaluation and backtracking. Zelikman et al. (2022) proposed STaR, which fine-tunes on self-generated rationales that led to correct answers.

Supervision of reasoning was compared by Uesato et al. (2022) on GSM8K, who found that outcome-based supervision gave similar final-answer error rates with less labelling but that process-based supervision was needed for correct reasoning steps, and by Lightman et al. (2023), who found process supervision significantly outperformed outcome supervision on the MATH dataset (78% on a representative test subset with their best process-supervised model) and released the PRM800K step-level labels.

The 2024–2025 generation made the long chain of thought a trained behaviour. OpenAI's o1 system card states that the o1 model series is "trained with large-scale reinforcement learning to reason using chain of thought" (OpenAI, 2024). Its methodology beyond that statement is undisclosed, which motivated replication efforts; the s1 paper describes the o1 model as having shown test-time scaling "but did not publicly share its methodology" (Muennighoff et al., 2025). DeepSeek reported that reasoning abilities of LLMs can be incentivised through pure reinforcement learning, without human-labelled reasoning trajectories, building on DeepSeek-V3-Base with Group Relative Policy Optimization (GRPO) and a reward based on correctness of final answers, and released the resulting model under the MIT licence (Guo et al., 2025). Muennighoff et al. (2025) showed that supervised fine-tuning of Qwen2.5-32B-Instruct on 1,000 curated reasoning examples, combined with "budget forcing", exceeded o1-preview on competition math questions by up to 27%, as reported by the authors.

#Technical / Conceptual Explanation

#4.1 Where test-time compute can be spent

  • Sequential: a longer chain of thought, with self-checking, backtracking and revision in a single trace.
  • Parallel: nn independent samples, combined by majority vote, a verifier, or a reward model.
  • Search: tree or beam search over partial solutions scored by a process reward model (Snell et al., 2024; Yao et al., 2023).

#4.2 Aggregating samples

Majority voting (self-consistency) returns

a^=arg⁡max⁡a∑i=1n1[ai=a],\hat{a} = \arg\max_{a} \sum_{i=1}^{n} \mathbb{1}[a_i = a],

where aia_i is the final answer extracted from sample ii. With a verifier or reward model vv, best-of-nn returns arg⁡max⁡iv(x,yi)\arg\max_i v(x, y_i). Coverage (also pass@kk) is the probability that at least one of kk samples is correct. If nn samples are drawn and cc are correct, the standard unbiased estimator is

pass@k=1−(n−ck)/(nk),\text{pass@}k = 1 - \binom{n-c}{k}\Big/\binom{n}{k},

introduced in the Codex evaluation (Chen et al., 2021), which also reported that repeated sampling solved 70.2% of its problems with 100 samples per problem, against 28.8% for a single sample. Brown et al. (2024) report that coverage versus samples is often log-linear and can be modelled by an exponentiated power law, and that in domains with automatic verifiers (code, formal proofs) coverage gains translate into accuracy gains; in domains without verifiers, majority voting and reward models plateau beyond several hundred samples.

#4.3 Reinforcement learning with verifiable rewards

For problems whose answers can be checked, the reward is a programmatic function R(x,y)∈{0,1}R(x, y) \in \{0, 1\} (or a small set of format and correctness terms). In GRPO (Shao et al., 2024), for each prompt a group of GG responses is sampled and each response's advantage is normalised within the group:

A^i=ri−mean⁡({r1,…,rG})std⁡({r1,…,rG}),\hat{A}_i = \frac{r_i - \operatorname{mean}(\{r_1,\dots,r_G\})}{\operatorname{std}(\{r_1,\dots,r_G\})},

which removes the need for a separate value network and reduces memory use relative to PPO. The policy is updated with a clipped, KL-regularised surrogate objective analogous to PPO (see [TECH-ALIGN-001], [TECH-RL-001]). In DeepSeek's report the reward in the first model was "solely based on the correctness of final predictions against ground-truth answers", with no constraint on the form of the reasoning (Guo et al., 2025). The authors describe behaviours such as self-reflection, verification and strategy adaptation emerging during training; whether these are best described as new capabilities or as the amplification of behaviour already present in the base model is disputed (Section 7).

A process reward model (PRM) scores each intermediate step, in contrast to an outcome reward model (ORM) that scores only the final answer (Uesato et al., 2022; Lightman et al., 2023). Snell et al. (2024) study search against dense process-based verifiers and adaptive updating of the model's output distribution, and report that the best approach depends on prompt difficulty; with a "compute-optimal" per-prompt allocation they improve test-time efficiency by more than 4x over a best-of-NN baseline and, in a FLOPs-matched comparison, find that on problems where a smaller base model achieves non-trivial success, test-time compute can outperform a 14x larger model.

#4.5 Budget control

Muennighoff et al. (2025) control inference compute by forcibly terminating thinking or by appending "Wait" to extend it, and report that on AIME24 their model improved from 50% to 57% with extended thinking beyond its unforced performance. Such results show a monotone gain in that setting but are not evidence of unbounded scaling.

#Types, Components & Classifications

Approach Mechanism Training required Representative sources
Prompted CoT Few-shot or zero-shot instruction to reason stepwise None Wei et al. (2022); Kojima et al. (2022)
Self-consistency / majority vote Sample many chains, vote on answer None Wang et al. (2023)
Verifier or reward-model reranking Rank samples with a learned scorer Verifier training Cobbe et al. (2021); Lightman et al. (2023)
Tree/search methods Explore partial reasoning states None or PRM Yao et al. (2023); Snell et al. (2024)
Self-taught rationales Fine-tune on correct self-generated rationales SFT loop Zelikman et al. (2022)
RL with verifiable rewards Policy-gradient on checkable outcomes RL Guo et al. (2025); Shao et al. (2024)
Small-data SFT + budget forcing Curated traces and controlled thinking length SFT Muennighoff et al. (2025)
Closed reasoning models Long CoT trained with RL (method undisclosed) RL (per developer statement) OpenAI (2024)

#Applications & Concrete Examples

Reasoning models are used where answers are checkable or multi-step: competition mathematics, programming, scientific question answering, and as the planning component in agents (see [TECH-AGENT-001]). The best-documented open case is DeepSeek-R1, whose paper reports that it surpasses counterparts trained by supervised learning on human demonstrations on verifiable tasks in mathematics, coding competitions and STEM fields (Guo et al., 2025); as a developer-reported result, it is classed Preliminary until independently replicated across settings. Benchmark scores for particular named models change rapidly and are held in MODEL-001, not here. The o1 system card also discusses safety work in which models reason about policies in context (OpenAI, 2024); whether such reasoning is faithful is addressed below.

#Advantages, Limitations & Unresolved Questions

#Advantages

Gains on verifiable, multi-step tasks; adjustable compute per query; and, for safety research, a written trace that can in principle be monitored.

#Limitations and disputes

  1. Chain of thought does not help everywhere. Sprague et al. (2025), in a meta-analysis of over 100 papers and their own evaluation of 20 datasets across 14 models, report that CoT gives strong benefits mainly on tasks involving math or logic, with much smaller gains elsewhere; on MMLU, answers without CoT were almost identical unless the question or response contained an equals sign.
  2. Faithfulness (Contested/Preliminary). Turpin et al. (2023) found that CoT explanations can systematically misrepresent the reason for a prediction: biasing features in the prompt, such as always placing the correct answer at option (A), were not mentioned in explanations that rationalised the biased answers. Lanham et al. (2023) found that models vary across tasks in how much they condition on their CoT and that, as models become larger and more capable, they produce less faithful reasoning on most tasks they studied. Chen et al. (2025) tested reasoning models on six hint types and found that CoTs revealed use of a hint in at least 1% of the cases in which the hint was used for most settings tested, but often in fewer than 20%; outcome-based RL initially improved faithfulness and then plateaued, and when RL increased hint use via reward hacking the tendency to verbalise it did not increase. They conclude that CoT monitoring is promising but not sufficient to rule out undesired behaviour. These are tests in specific, hint-based settings (see [SAFE-INTERP-001]).
  3. Does RL add reasoning capacity? (Contested). Yue et al. (2025) evaluated RLVR-trained models using pass@kk at large kk and report that although RL-trained models are better at small kk, base models achieved higher pass@kk at large kk; they conclude that the reasoning patterns observed originate from and are bounded by the base model in their setups, and that distillation can add new patterns. The DeepSeek report presents RL as incentivising emergent reasoning behaviours. The two sets of claims address different measurements and models, and the question is open.
  4. Scaling limits and evaluation artefacts (Contested). Shojaee et al. (2025) report that on controllable puzzle environments reasoning models show accuracy collapse beyond certain complexities and reduced reasoning effort at high complexity. Lawsen (2025) argues that these findings largely reflect experimental design limitations (output token limits, evaluation that does not distinguish reasoning failure from practical constraints, and unsolvable River Crossing instances), and reports preliminary experiments indicating high accuracy when models are asked for generating functions instead of exhaustive move lists. Neither paper settles the matter, and the second reports preliminary experiments only.
  5. Verifier dependence. Gains are largest where outcomes can be checked automatically; without verifiers, sample-selection methods plateau (Brown et al., 2024).
  6. Cost. Long traces raise latency and serving cost per query.

#Unresolved questions

  • How much reasoning-benchmark improvement reflects genuine generalisation versus training on similar verifiable tasks or contamination (see [TECH-DATA-001]).
  • Whether training on outcome rewards alone yields reliable, monitorable reasoning, or whether it incentivises unverbalised shortcuts.
  • Which task types will benefit from test-time compute, given the narrow gains in Sprague et al. (2025).

#Current State of Knowledge

As of 2026-10-15, long-chain-of-thought reasoning models trained with reinforcement learning on verifiable rewards are an established product category, and open-weight training recipes are documented (Guo et al., 2025; Lambert et al. in [TECH-ALIGN-001]). Test-time scaling of accuracy on verifiable tasks is Well Supported by multiple independent groups (Snell et al., 2024; Brown et al., 2024; Muennighoff et al., 2025). The training recipes, data, reward models and reasoning-trace handling of closed reasoning models are undisclosed except for developer statements such as that in the o1 system card. Whether the traces faithfully describe the computation, and what RL changes relative to the base model, are Contested. Current model comparisons are tracked in MODEL-001, and capability measurements in [CAP-BENCH-001] and [CAP-REASON-001].

#Future Trajectory & Strategic Outlook

Observed trends: the combination of RL on checkable tasks, process-level supervision, and adaptive test-time allocation; attempts to extend verifiable rewards to less checkable domains; and growing research on monitoring and faithfulness of traces (Chen et al., 2025). Expected research questions for the next three years include whether faithfulness can be improved by training and whether gains transfer outside verifiable domains. No quantitative forecast record is registered in this article.

Sources, evidence and revision historyReferences · Evidential Classification Matrix · Revision History

#References & Foundational Literature

  1. Chen, M., Tworek, J., Jun, H., et al. (2021). Evaluating Large Language Models Trained on Code. arXiv:2107.03374. [Introduces the pass@kk metric and reports repeated-sampling gains (28.8% single sample; 70.2% with 100 samples)].
  2. Cobbe, K., Kosaraju, V., Bavarian, M., et al. (2021). Training Verifiers to Solve Math Word Problems. arXiv:2110.14168. [GSM8K and verifier-based reranking of sampled solutions].
  3. Nye, M., Andreassen, A. J., Gur-Ari, G., et al. (2021). Show Your Work: Scratchpads for Intermediate Computation with Language Models. arXiv:2112.00114. [Intermediate computation emitted as scratchpads].
  4. Wei, J., Wang, X., Schuurmans, D., Bosma, M., Ichter, B., Xia, F., Chi, E., Le, Q., & Zhou, D. (2022). Chain-of-Thought Prompting Elicits Reasoning in Large Language Models. NeurIPS 2022. arXiv:2201.11903. [Few-shot chain-of-thought prompting].
  5. Kojima, T., Gu, S. S., Reid, M., Matsuo, Y., & Iwasawa, Y. (2022). Large Language Models are Zero-Shot Reasoners. NeurIPS 2022. arXiv:2205.11916. [Zero-shot CoT trigger].
  6. Wang, X., Wei, J., Schuurmans, D., Le, Q., Chi, E., Narang, S., Chowdhery, A., & Zhou, D. (2023). Self-Consistency Improves Chain of Thought Reasoning in Language Models. ICLR 2023. arXiv:2203.11171. [Majority vote over sampled reasoning paths].
  7. Zelikman, E., Wu, Y., Mu, J., & Goodman, N. D. (2022). STaR: Bootstrapping Reasoning With Reasoning. NeurIPS 2022. arXiv:2203.14465. [Iterative fine-tuning on rationales that reach correct answers].
  8. Yao, S., Yu, D., Zhao, J., Shafran, I., Griffiths, T. L., Cao, Y., & Narasimhan, K. (2023). Tree of Thoughts: Deliberate Problem Solving with Large Language Models. NeurIPS 2023. arXiv:2305.10601. [Search over reasoning states].
  9. Uesato, J., Kushman, N., Kumar, R., Song, F., Siegel, N., Wang, L., Creswell, A., Irving, G., & Higgins, I. (2022). Solving math word problems with process- and outcome-based feedback. arXiv:2211.14275. [Comparison of process and outcome supervision on GSM8K].
  10. Lightman, H., Kosaraju, V., Burda, Y., Edwards, H., Baker, B., Lee, T., Leike, J., Schulman, J., Sutskever, I., & Cobbe, K. (2023). Let's Verify Step by Step. arXiv:2305.20050 (ICLR 2024). [Process supervision outperforming outcome supervision on MATH; PRM800K].
  11. Snell, C., Lee, J., Xu, K., & Kumar, A. (2024). Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters. arXiv:2408.03314. [Compute-optimal test-time allocation; >4x efficiency over best-of-N; outperforming a 14x larger model in some cases].
  12. Brown, B., Juravsky, J., Ehrlich, R., Clark, R., Le, Q. V., Ré, C., & Mirhoseini, A. (2024). Large Language Monkeys: Scaling Inference Compute with Repeated Sampling. arXiv:2407.21787. [Coverage scaling with sample count; plateau of voting/reward models without verifiers].
  13. OpenAI. (2024). OpenAI o1 System Card. arXiv:2412.16720. [Developer statement that o1 is trained with large-scale RL to reason with chain of thought; methodology otherwise undisclosed].
  14. Guo, D., Yang, D., Zhang, H., et al. (2025). DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning. Nature, 645(8081), 633–638. https://doi.org/10.1038/s41586-025-09422-z (preprint arXiv:2501.12948). [RL with correctness rewards on DeepSeek-V3-Base using GRPO; MIT-licensed release].
  15. Shao, Z., Wang, P., Zhu, Q., Xu, R., Song, J., Bi, X., Zhang, H., Zhang, M., Li, Y. K., Wu, Y., & Guo, D. (2024). DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models. arXiv:2402.03300. [Introduces GRPO].
  16. Muennighoff, N., Yang, Z., Shi, W., Li, X. L., Fei-Fei, L., Hajishirzi, H., Zettlemoyer, L., Liang, P., Candès, E., & Hashimoto, T. (2025). s1: Simple test-time scaling. arXiv:2501.19393. [1,000-example SFT with budget forcing; AIME24 50% to 57% with extended thinking].
  17. Sprague, Z., Yin, F., Rodriguez, J. D., Jiang, D., Wadhwa, M., Singhal, P., Zhao, X., Ye, X., Mahowald, K., & Durrett, G. (2025). To CoT or not to CoT? Chain-of-thought helps mainly on math and symbolic reasoning. ICLR 2025. arXiv:2409.12183. [Meta-analysis of where CoT helps].
  18. Turpin, M., Michael, J., Perez, E., & Bowman, S. R. (2023). Language Models Don't Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Prompting. NeurIPS 2023. arXiv:2305.04388. [Biased inputs unmentioned in CoT explanations].
  19. Lanham, T., Chen, A., Radhakrishnan, A., et al. (2023). Measuring Faithfulness in Chain-of-Thought Reasoning. arXiv:2307.13702. [Intervention-based tests of CoT reliance; less faithful reasoning in larger models on most tasks studied].
  20. Chen, Y., Benton, J., Radhakrishnan, A., et al. (2025). Reasoning Models Don't Always Say What They Think. arXiv:2505.05410. [Hint-verbalisation rates of reasoning models; limits of CoT monitoring].
  21. Yue, Y., Chen, Z., Lu, R., Zhao, A., Wang, Z., Yue, Y., Song, S., & Huang, G. (2025). Does Reinforcement Learning Really Incentivize Reasoning Capacity in LLMs Beyond the Base Model? arXiv:2504.13837. [Large-kk pass@kk analysis of RLVR versus base models].
  22. Shojaee, P., Mirzadeh, I., Alizadeh, K., Horton, M., Bengio, S., & Farajtabar, M. (2025). The Illusion of Thinking: Understanding the Strengths and Limitations of Reasoning Models via the Lens of Problem Complexity. arXiv:2506.06941. [Puzzle-environment study reporting accuracy collapse].
  23. Lawsen, A. (2025). Comment on The Illusion of Thinking: Understanding the Strengths and Limitations of Reasoning Models via the Lens of Problem Complexity. arXiv:2506.09250. [Critique attributing reported failures to experimental design].
  24. Lambert, N., Morrison, J., Pyatkin, V., et al. (2024). Tulu 3: Pushing Frontiers in Open Language Model Post-Training. arXiv:2411.15124. [Open post-training recipe including RLVR].

#Evidential Classification Matrix

Section / Claim Evidence Category Supporting Source Confidence / Status
Majority voting and pass@kk definitions Established Wang et al. (2023); Chen et al. (2021) High
Intermediate reasoning steps improve performance on math/logic tasks Well Supported Wei et al. (2022); Cobbe et al. (2021); Sprague et al. (2025) High
Accuracy rises with test-time compute on verifiable tasks Well Supported Snell et al. (2024); Brown et al. (2024); Muennighoff et al. (2025) Moderate-High
Process supervision beats outcome supervision (MATH) Well Supported Lightman et al. (2023); Uesato et al. (2022) nuance Moderate (task dependent)
Pure-RL training elicits long-CoT reasoning Preliminary (open replication in progress) Guo et al. (2025) Moderate
RL expands reasoning beyond base model Contested Guo et al. (2025); Yue et al. (2025) Active debate
CoT traces faithfully reflect computation Contested Turpin et al. (2023); Lanham et al. (2023); Chen et al. (2025) Evidence of unfaithfulness in tested settings
Accuracy collapse of reasoning models at high complexity Contested Shojaee et al. (2025); Lawsen (2025) Active debate
Training method and data of closed reasoning models Undisclosed OpenAI (2024) Not inferred

#Revision History

  • v0.1.0 (2026-10-15): Initial draft. Citations checked against arXiv/Crossref/publisher pages where marked; not independently fact-checked.

#Scaling Laws

#Concise Definition

Scaling laws are empirical relationships, usually power laws, that describe how the performance of a trained machine learning model, typically its held-out cross-entropy loss, changes as the number of parameters NN, the amount of training data DD and the training compute CC are increased. Within the regimes where they have been fitted, they let practitioners predict the loss of a large run from smaller runs and choose how to divide a fixed compute budget between model size and data.

#Overview & Significance

Scaling laws turned model building from a search over architectures into a resource-allocation problem. If loss is a smooth, predictable function of (N,D,C)(N, D, C), a laboratory can estimate the benefit of a more expensive run before paying for it, and can decide whether additional parameters or additional tokens give more improvement for the same cost. They are the quantitative basis of the "scaling hypothesis" that features in discussions of future capability (see [AGI-PATH-001]) and of the compute economics of training (see [ECON-COMP-001]).

Two cautions apply throughout this article. First, the established laws describe pretraining loss on a given data distribution. They do not by themselves predict which downstream abilities appear, how they are measured, or whether systems are safe or useful; the relation between loss and benchmark performance is contested (Section 7). Second, scaling laws are fits to finite experiments. Extrapolation beyond the fitted range is a forecast, not a finding, and several published fits have been revised or disputed (Section 8).

#Historical Development

Power-law behaviour of error in training-set size was characterised across machine translation, language modelling, image classification and speech recognition by Hestness et al. (2017), who also observed that model improvements shifted the error curve without changing its exponent in their tests and that model size scaled sublinearly with data size.

Kaplan et al. (2020) fitted the cross-entropy loss of Transformer language models as power laws in non-embedding parameters, dataset size and compute across more than seven orders of magnitude in some trends, concluding that larger models are significantly more sample-efficient and that compute-efficient training should use very large models on relatively modest data and stop well before convergence. Henighan et al. (2020) found a "power-law plus constant" form for autoregressive Transformers in image, video, text-to-image and mathematical-problem domains, with the compute-optimal model size following a power law whose exponents were nearly universal across those domains.

Hoffmann et al. (2022) trained over 400 models from 70 million to over 16 billion parameters on 5 to 500 billion tokens and concluded that model size and training tokens should be scaled in equal proportion. They tested this by training Chinchilla (70B parameters, 4 times more data) with the compute budget of Gopher (280B parameters) and reported that it outperformed Gopher, GPT-3, Jurassic-1 and Megatron-Turing NLG on a wide range of downstream evaluations. Their finding contradicted the Kaplan allocation, under which a 10-fold compute increase would suggest a 5.5-fold larger model but only 1.8 times more tokens.

Later work revisited the discrepancy and extended the framework to inference cost, repeated data, sparse models, and test-time compute (Sections 4 and 5).

#Technical / Conceptual Explanation

#4.1 Single-variable power laws

Kaplan et al. (2020) report, for language models trained to convergence on sufficiently large data, a loss L(N)=(Nc/N)αNL(N) = (N_c/N)^{\alpha_N} with αN∼0.076\alpha_N \sim 0.076, and for large models trained with early stopping on limited data L(D)=(Dc/D)αDL(D) = (D_c/D)^{\alpha_D} with αD∼0.095\alpha_D \sim 0.095. For compute-limited training with an optimally sized model, L(Cmin⁡)=(Ccmin⁡/Cmin⁡)αCmin⁡L(C_{\min}) = (C_c^{\min}/C_{\min})^{\alpha_C^{\min}} with αCmin⁡∼0.050\alpha_C^{\min} \sim 0.050. These values are the exponents fitted in that paper for its tokenizer, architecture and data. They are not universal constants (see Section 8, and [TECH-TOK-001] for why loss values depend on the tokenizer).

#4.2 Compute accounting

The standard estimate of training cost of a dense decoder-only Transformer is

C≈6 N DC \approx 6\,N\,D

floating-point operations, where the factor 6 covers the forward pass (about 2 operations per parameter per token) and the backward pass (about twice the forward cost) (Kaplan et al., 2020; Hoffmann et al., 2022). The approximation excludes context-dependent attention terms, and Hoffmann et al. report that their more detailed FLOP counts for models between 73 million and 6.8 billion parameters were within a few percent to about 10 percent of 6ND6ND.

#4.3 The parametric form and the compute-optimal frontier

Hoffmann et al. fit a parametric loss

L^(N,D)=E+ANα+BDβ\hat{L}(N, D) = E + \frac{A}{N^{\alpha}} + \frac{B}{D^{\beta}}

where EE is an irreducible term attributed to the entropy of the data distribution and the two other terms capture the finite-model and finite-data penalties. Minimising L^\hat{L} subject to 6ND=C6ND = C yields power laws Nopt∝CaN_{\mathrm{opt}} \propto C^{a} and Dopt∝CbD_{\mathrm{opt}} \propto C^{b}. Across their three estimation approaches they report (a,b)(a, b) of (0.50,0.50)(0.50, 0.50), (0.49,0.51)(0.49, 0.51) and (0.46,0.54)(0.46, 0.54), that is, parameters and tokens both grow roughly as the square root of compute. A frequently quoted rule of thumb of about 20 training tokens per parameter is a rounded reading of those results rather than a statement in the paper's abstract, and should not be treated as a precise constant.

#4.4 Why the two laws disagreed

Besiroglu et al. (2024) attempted to replicate Hoffmann et al.'s third estimation procedure from data reconstructed from the paper's plots and report that the published estimates were inconsistent with the paper's first two methods and had implausibly narrow confidence intervals; their own refit agreed with the first two methods. Porian et al. (2024) attribute the discrepancy between the Kaplan and Hoffmann laws to three factors, namely last-layer computational cost, warmup duration and scale-dependent optimiser tuning; with these corrected they obtain agreement with the Hoffmann law, and they derive scaling laws for optimal learning rate and batch size. These replication studies are from groups independent of the original authors, but each rests on specific reproduction choices.

#4.5 Beyond a single training run

  • Inference-aware scaling. Sardana et al. (2024) modify the Chinchilla analysis to account for the lifetime inference demand of a deployed model and find that when demand is large (on the order of 1 billion requests) it is optimal to train smaller models for longer than Chinchilla-optimal; they report continued improvement up to about 10,000 tokens per parameter in their experiments.
  • Repeated data. Muennighoff et al. (2023) find, for up to 900 billion training tokens and 9 billion parameters, that training for up to 4 epochs on repeated data gives negligible change in loss relative to unique data, after which the value of additional compute decays towards zero, and propose a scaling law accounting for the decreasing value of repeated tokens.
  • Sparse and routed models. Clark et al. (2022) derive laws in which parameter count and per-token compute are independent axes for routing networks, and Krajewski et al. (2024) add expert granularity as a variable (see [TECH-MOE-001]).
  • Test-time compute. Brown et al. (2024) show that the fraction of problems solved by any of repeatedly sampled outputs ("coverage") grows with the number of samples over four orders of magnitude, and Snell et al. (2024) study how to allocate inference compute per prompt; this adds a third axis to the training-time laws (see [TECH-REASON-001]).
  • Other domains. Henighan et al. (2020) for multimodal and math settings; Gao et al. (2023) study how the gold-standard reward of a policy optimised against a proxy reward model changes with proxy size and optimisation, in a synthetic setup (see [TECH-ALIGN-001]).

#Types, Components & Classifications

Family Quantity predicted Key variables Representative source
Loss-vs-scale (dense) Held-out cross-entropy NN, DD, CC Kaplan et al. (2020)
Compute-optimal allocation Best NN, DD for given CC NoptN_{opt}, DoptD_{opt} Hoffmann et al. (2022)
Inference-adjusted Best NN, DD given lifetime serving Expected requests Sardana et al. (2024)
Data-constrained Loss with repeated data Epochs, unique tokens Muennighoff et al. (2023)
Sparse / routed Loss with expert count Active vs. total parameters, granularity Clark et al. (2022); Krajewski et al. (2024)
Inference-time Coverage or accuracy vs. samples or search Samples, search budget Brown et al. (2024); Snell et al. (2024)
Downstream / emergent Task metrics vs. scale Metric choice Wei et al. (2022); Schaeffer et al. (2023)

#Applications & Concrete Examples

  • Planning large runs. Chinchilla is the best-documented example of a model sized from a fitted law and then tested against a larger model trained with the same compute (Hoffmann et al., 2022).
  • Deployment-cost-aware design. Training smaller models on more data than the Hoffmann optimum is the practice that Sardana et al. (2024) analyse; the Llama 3 report states that its scaling laws suggested the 405B-parameter flagship (trained on 15.6 trillion text tokens) was approximately compute-optimal for its training budget, while its smaller models were trained for much longer than compute-optimal and performed better than compute-optimal models at the same inference budget (Grattafiori et al., 2024). Details of closed developers' scaling studies are undisclosed unless published.
  • Hardware and investment decisions. Because compute is the shared currency of the laws, they are used in arguments about chip demand and training cost (see [TECH-HW-001], [ECON-COMP-001]). Those arguments rely on assumptions beyond the laws themselves.

#Advantages, Limitations & Unresolved Questions

#Advantages

Scaling laws are predictive within range, cheap to test at small scale, and have been reproduced in qualitative form across several modalities and by several groups (Hestness et al., 2017; Kaplan et al., 2020; Henighan et al., 2020).

#Limitations

  1. Loss is not capability. A smooth decline in cross-entropy does not specify what a user can do with the model.
  2. Sensitivity to recipe. The Kaplan/Hoffmann disagreement shows that exponents depend on implementation details such as warmup, optimiser tuning and the counting of embedding parameters (Porian et al., 2024).
  3. Data limits. The laws assume sufficient unique data. Muennighoff et al. (2023) quantify diminishing returns from repetition, and the supply of high-quality text is the subject of [TECH-DATA-001].
  4. Extrapolation risk. Fits cover specific ranges of NN, DD and CC; Sardana et al. (2024) note that laws fitted at ordinary token-to-parameter ratios mis-estimate the effect of tokens at extreme ratios.

#Unresolved questions

  • Emergent abilities (Contested). Wei et al. (2022) define emergent abilities as those not present in smaller models but present in larger ones, so they "cannot be predicted simply by extrapolating the performance of smaller models". Schaeffer et al. (2023) argue that apparent emergence depends on nonlinear or discontinuous metrics: with linear or continuous metrics performance changes smoothly and predictably, which they support by tests on the InstructGPT/GPT-3 family and BIG-Bench meta-analysis. The dispute concerns how to measure and forecast task performance, and is not resolved by either paper alone.
  • Whether any floor is reached. The irreducible term EE and the point at which pretraining loss stops translating into capability are not known for frontier-scale systems.
  • Interaction with post-training and test-time compute. How the pretraining laws combine with reinforcement learning and inference-time search is still being mapped (see [TECH-REASON-001]).

#Current State of Knowledge

As of 2026-10-15 the following are Well Supported: pretraining loss of Transformer language models follows smooth power-law-like trends in parameters, data and compute over many orders of magnitude; compute-optimal training requires scaling data with parameters rather than parameters alone; and the optimal ratio depends on whether inference cost is counted. The numerical exponents, the precise optimal ratio, and the extent to which different groups' fits agree are Contested or recipe-dependent (Besiroglu et al., 2024; Porian et al., 2024). Claims that scaling laws remain valid at the scale of the largest current closed models cannot be checked, because their training data, compute and loss curves are undisclosed unless published by the developer. Reports of current training compute for named models belong in MODEL-001, not here.

#Future Trajectory & Strategic Outlook

Observed trends: laws are being extended to cover data repetition, sparsity, inference demand, and test-time compute, shifting the question from "how large a model" to "how to divide compute among pretraining, post-training and inference". Near-term (0–3 years) work will likely refine fits and publish more replications; medium and long-term outcomes depend on data supply, hardware and algorithmic change, which this article does not forecast beyond the record below.

Forecast record

Field Content
Forecast ID FCST-SCALE-001
Forecast Statement Held-out pretraining loss of compute-optimally trained dense decoder-only Transformers will continue to follow a power law plus a constant in training compute, with fit quality comparable to that reported by Hoffmann et al. (2022), over at least two further orders of magnitude of training compute beyond the largest run in that paper.
Target Event Publication of loss measurements at those compute levels
Operational Definition A published study or developer report with at least three training runs spanning the new compute range, on a fixed data distribution and tokenizer, shows the fitted law, extrapolated from the smaller runs, predicting final loss to within 2 percent of the measured value.
Time Horizon Near-term (0–3 years), to 2029-10-15
Assumptions Sufficient unique high-quality data or well-behaved synthetic or repeated data; no change of architecture that alters exponents; stable optimisation recipes; the results are published.
Confidence Level Medium (editorial estimate, about 60%)
Alternative Scenarios Data exhaustion bends the curve; developers do not publish loss curves so the forecast cannot be resolved; new training regimes make pretraining-loss laws less informative.
Review Schedule Annual review each October; first review 2027-10-15
Status Active
Sources, evidence and revision historyReferences · Evidential Classification Matrix · Revision History

#References & Foundational Literature

  1. Hestness, J., Narang, S., Ardalani, N., Diamos, G., Jun, H., Kianinejad, H., Patwary, M. M. A., Yang, Y., & Zhou, Y. (2017). Deep Learning Scaling is Predictable, Empirically. arXiv:1712.00409. [Power-law generalisation error in training-set size across four domains].
  2. Kaplan, J., McCandlish, S., Henighan, T., Brown, T. B., Chess, B., Child, R., Gray, S., Radford, A., Wu, J., & Amodei, D. (2020). Scaling Laws for Neural Language Models. arXiv:2001.08361. [Power laws in NN, DD, CC with fitted exponents; C≈6NBSC \approx 6NBS].
  3. Henighan, T., Kaplan, J., Katz, M., et al. (2020). Scaling Laws for Autoregressive Generative Modeling. arXiv:2010.14701. [Power-law-plus-constant laws across image, video, multimodal and math domains].
  4. Hoffmann, J., Borgeaud, S., Mensch, A., et al. (2022). Training Compute-Optimal Large Language Models. NeurIPS 2022. arXiv:2203.15556. [Equal scaling of parameters and tokens; Chinchilla 70B versus Gopher 280B].
  5. Besiroglu, T., Erdil, E., Barnett, M., & You, J. (2024). Chinchilla Scaling: A replication attempt. arXiv:2404.10102. [Replication of the third estimation approach and critique of reported intervals].
  6. Porian, T., Wortsman, M., Jitsev, J., Schmidt, L., & Carmon, Y. (2024). Resolving Discrepancies in Compute-Optimal Scaling of Language Models. NeurIPS 2024. arXiv:2406.19146. [Three factors explaining the Kaplan-Hoffmann discrepancy].
  7. Sardana, N., Portes, J., Doubov, S., & Frankle, J. (2024). Beyond Chinchilla-Optimal: Accounting for Inference in Language Model Scaling Laws. arXiv:2401.00448. [Inference-adjusted optimum; experiments up to 10,000 tokens per parameter].
  8. Muennighoff, N., Rush, A. M., Barak, B., Le Scao, T., Piktus, A., Tazi, N., Pyysalo, S., Wolf, T., & Raffel, C. (2023). Scaling Data-Constrained Language Models. NeurIPS 2023. arXiv:2305.16264. [Up to 4 epochs of repetition with negligible loss change; law for repeated tokens].
  9. Clark, A., de las Casas, D., Guy, A., et al. (2022). Unified Scaling Laws for Routed Language Models. ICML 2022. arXiv:2202.01169. [Scaling laws for routing networks].
  10. Krajewski, J., Ludziejewski, J., Adamczewski, K., et al. (2024). Scaling Laws for Fine-Grained Mixture of Experts. arXiv:2402.07871. [Granularity as a scaling variable in MoE].
  11. Wei, J., Tay, Y., Bommasani, R., et al. (2022). Emergent Abilities of Large Language Models. Transactions on Machine Learning Research. arXiv:2206.07682. [Definition and examples of emergent abilities].
  12. Schaeffer, R., Miranda, B., & Koyejo, S. (2023). Are Emergent Abilities of Large Language Models a Mirage? NeurIPS 2023. arXiv:2304.15004. [Metric-choice explanation of apparent emergence].
  13. Brown, B., Juravsky, J., Ehrlich, R., Clark, R., Le, Q. V., Ré, C., & Mirhoseini, A. (2024). Large Language Monkeys: Scaling Inference Compute with Repeated Sampling. arXiv:2407.21787. [Coverage scaling with sample count over four orders of magnitude].
  14. Snell, C., Lee, J., Xu, K., & Kumar, A. (2024). Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters. arXiv:2408.03314. [Compute-optimal allocation of test-time compute per prompt].
  15. Grattafiori, A., Dubey, A., Jauhri, A., et al. (2024). The Llama 3 Herd of Models. arXiv:2407.21783. [Developer-reported use of scaling laws and of over-training smaller models relative to compute-optimal].
  16. Gao, L., Schulman, J., & Hilton, J. (2023). Scaling Laws for Reward Model Overoptimization. ICML 2023. arXiv:2210.10760. [Gold reward versus proxy optimisation in a synthetic setup].

#Evidential Classification Matrix

Section / Claim Evidence Category Supporting Source Confidence / Status
Pretraining loss follows smooth power-law trends in NN, DD, CC Well Supported Hestness et al. (2017); Kaplan et al. (2020); Henighan et al. (2020) High within fitted ranges
C≈6NDC \approx 6ND compute estimate Established Kaplan et al. (2020); Hoffmann et al. (2022) High
Equal scaling of parameters and tokens is compute-optimal Well Supported Hoffmann et al. (2022); Porian et al. (2024) Moderate-High
Specific exponents and constants (e.g. αN∼0.076\alpha_N \sim 0.076) Contested (recipe-dependent) Kaplan et al. (2020); Besiroglu et al. (2024); Porian et al. (2024) Moderate
Inference demand shifts optimum to smaller, longer-trained models Well Supported Sardana et al. (2024) Moderate
Up to 4 epochs of repetition is nearly as good as unique data Preliminary Muennighoff et al. (2023) Moderate; single study at the tested scale
Emergent abilities as unpredictable jumps Contested Wei et al. (2022); Schaeffer et al. (2023) Active debate
Developer-reported use of scaling laws and over-training of small models (Llama 3) Preliminary (developer report) Grattafiori et al. (2024) Moderate
Laws hold at scale of largest closed models Undisclosed / unverifiable n/a Not assessable
Loss law continues two more orders of magnitude Forecast FCST-SCALE-001 Medium (about 60%)

#Revision History

  • v0.1.0 (2026-10-15): Initial draft. Citations checked against arXiv/Crossref/publisher pages where marked; not independently fact-checked.
10 topics this chapter covers
  • 15.1Programming languages for AI
  • 15.2Data structures and algorithms
  • 15.3Software engineering
  • 15.4Parallel computing
  • 15.5Distributed systems
  • 15.6Numerical computation
  • 15.7GPU and accelerator programming
  • 15.8Model serving and inference
  • 15.9APIs and system integration
  • 15.10Reproducibility and version control