For nearly half a decade, scaling the capabilities of large language models (LLMs) relied almost exclusively on train-time compute scaling laws—expanding parameter counts $N$ and pre-training token budgets $D_{\text{pretrain}}$ across massive GPU clusters while restricting inference to a single greedy or temperature-sampled forward pass ($k = 1$). Yet human cognitive science—formalized in dual-process theories of reasoning ("System 1" fast associative intuition versus "System 2" slow deliberative search and verification)—demonstrates that difficult problems require allocating dynamically more thinking time at decision time. Between 2023 and 2026, language model engineering underwent a foundational paradigm shift toward Test-Time Compute Scaling (Inference-Time Scaling): dynamically trading extra inference FLOPs for substantially higher reasoning accuracy, either by searching in parallel across diverse candidate trajectories guided by verifiers or by sequentially refining and lengthening a model's internal chain of thought.
This architectural transition is anchored by six landmark empirical breakthroughs that define production reasoning systems in 2026:
- Sample-and-Marginalize Decoding (Self-Consistency, ICLR '23): Replacing greedy Chain-of-Thought (CoT) decoding with sampling $m = 40$ diverse reasoning paths and marginalizing over intermediate rationales via majority voting or length-normalized log-probability sums—boosting arithmetic and commonsense accuracy on PaLM-540B and GPT-3 (
code-davinci-002) by +17.9% on GSM8K (up to 78.0%), +11.0% on SVAMP (86.8%), +12.2% to +12.5% on AQuA, and +6.4% on StrategyQA. - Deliberate Heuristic Tree Search (Tree of Thoughts, NeurIPS '23): Framing language generation as combinatorial tree search (ToT-BFS and ToT-DFS) over coherent semantic thought units $s = [x, z_{1\dots i}]$ with LM self-evaluation (
sure/maybe/impossible) and backtracking—elevating GPT-4 solve rates on the Game of 24 from 4.0% (CoT) to 74% (ToT-BFS, $b=5$) and increasing 5×5 Mini Crosswords word-level accuracy from 15.6% (CoT) to 60% (ToT-DFS). - Iterative Feedback and Revision (Self-Refine, NeurIPS '23 & Compute-Optimal Revisions): Using a single LLM in an iterative $\text{Generate} \rightarrow \text{Feedback} \rightarrow \text{Refine}$ loop (
arXiv:2303.17651) to achieve an average ~20% absolute improvement across 7 generation tasks (including +49.2% preference gain on GPT-4 Dialogue Response and +8.7% on Code Optimization), while revealing why unverified self-correction stalls on math (0% to +0.2% gain because off-the-shelf models declare"everything looks good"on 94% of erroneous math chains) unless paired with supervised revision finetuning (arXiv:2408.03314). - Repeated Sampling Power Laws and the Verification Gap (Large Language Monkeys,
arXiv:2407.21787): Demonstrating that problem coverage ($\text{pass@}k$) scales over four orders of magnitude ($k \le 10,000$) according to an exponentiated power law $c \approx \exp(a k^{-b})$—lifting DeepSeek-V2-Coder-Instruct on SWE-bench Lite from 15.9% (pass@1) to 56% (pass@250) (surpassing the 43% single-attempt frontier SOTA) and solving 29.62% of issues at 5 attempts for 3.25x to 4.25x lower dollar cost than a single call to GPT-4o (24.00%) or Claude 3.5 Sonnet (26.70%). - Prompt-Adaptive Compute-Optimal Scaling (Snell et al.,
arXiv:2408.03314): Unifying test-time compute into Proposer Distribution Modification (sequential revisions) and Process-Based Verifier (PRM) Search (Best-of-N weighted, Beam Search, and Lookahead Search), proving that dynamically allocating sequential vs. parallel compute by prompt difficulty achieves more than 4x higher compute efficiency than Best-of-N and enables a smaller base model to outperform a 14x larger pretrained model in FLOPs-matched regimes. - Sample-Efficient Reasoning SFT and Decoding-Time Budget Forcing (
s1-32B,arXiv:2501.19393): Demonstrating that supervised finetuning of Qwen2.5-32B-Instruct on just 1,000 quality-, difficulty-, and diversity-filtered reasoning traces (s1K) for 26 minutes on 16 H100 GPUs (7 H100 GPU hours)—combined with test-time Budget Forcing (suppressing the end-of-thinking delimiter and appending"Wait")—achieves 100% compute controllability, scales AIME 2024 accuracy from 50.0% to 56.7% (93.0% on MATH500, 59.6% on GPQA Diamond), and outperforms OpenAI'so1-previewby up to 27%.
- ✓Compute-Optimal Test-Time Scaling vs. 14x Parameter Scaling (Snell et al., arXiv:2408.03314): Adaptively selecting PRM search or sequential/parallel revision ratios based on model-predicted prompt difficulty improves test-time compute efficiency by more than 4x over Best-of-N (e.g., matching 64-sample Best-of-N with 16 PRM search generations, or 256 samples with 64 revision samples) and allows PaLM 2-S* to outperform a ~14x larger pretrained model under FLOPs-matched evaluation when $R = D_{\text{inference}}/D_{\text{pretrain}} \ll 1$ or on easy-to-medium prompts.
- ✓Repeated Sampling Power Laws & Cost Arbitrage (Large Language Monkeys, arXiv:2407.21787): Coverage scales log-linearly via $c \approx \exp(a k^{-b})$ across four orders of magnitude: on SWE-bench Lite, 250 samples of DeepSeek-V2-Coder-Instruct lift solve rates from 15.9% to 56% (beating the 43% single-attempt frontier SOTA), while 5 samples solve 29.62% of issues at $12 total cost—outperforming single attempts from GPT-4o (24.00%, $39, 3.25x cost) and Claude 3.5 Sonnet (26.70%, $51, 4.25x cost).
- ✓Tree of Thoughts & Self-Consistency Gains (arXiv:2305.10601 & arXiv:2203.11171): Tree-of-Thoughts BFS ($b=5$) boosts GPT-4 accuracy on Game of 24 from 4.0% (CoT) to 74% (whereas ~60% of CoT samples fail at the very first equation step), and ToT-DFS boosts 5×5 Mini Crosswords word accuracy from 15.6% to 60%. Self-Consistency ($m=40$ paths) increases GSM8K accuracy by +17.9% (reaching 74.4% on PaLM-540B and 78.0% on GPT-3).
- ✓Budget Forcing & 1,000-Sample Reasoning SFT (s1-32B, arXiv:2501.19393): Finetuning Qwen2.5-32B-Instruct on 1,000 curated traces (s1K) in 26 minutes on 16 H100 GPUs (7 GPU hours) and enforcing thinking budgets at decode time via
"Wait"token injection achieves 100% compute control, extrapolates AIME 2024 accuracy from 50.0% to 56.7% (and 93.0% on MATH500), and surpasses OpenAIo1-preview(44.6% AIME24, 85.5% MATH500).
>4x test-time compute efficiency gain over Best-of-N and FLOPs-matched parity/superiority over a 14x larger model (arXiv:2408.03314).
DeepSeek-V2-Coder-Instruct issue solve rate scaling from 1 to 250 samples, beating the 43% single-attempt SOTA (arXiv:2407.21787).
GPT-4 Game of 24 success rate leap from standard Chain-of-Thought (4.0%) to ToT-BFS with breadth b=5 (arXiv:2305.10601).
AIME 2024 extrapolation via "Wait" budget forcing after 26-minute SFT on 1,000 s1K traces, beating o1-preview's 44.6% (arXiv:2501.19393).
The Unified Proposer–Verifier Taxonomy and the Pre-Training vs. Test-Time Compute Exchange Rate
Why does allocating extra FLOPs during inference unlock reasoning capabilities that remain dormant under standard greedy decoding? In Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters (Snell et al., UC Berkeley & Google DeepMind, arXiv:2408.03314v1), test-time computation is formalized as an adaptive modification of the language model's predicted distribution over output responses $y$ conditioned on an input prompt $q$, analogous to Markov chain Monte Carlo (MCMC) sampling from a complex target distribution using a proposal distribution and a scoring function.
1. The Two Orthogonal Knobs of Test-Time Computation: Proposer Modification vs. Verifier Search
Given a pre-trained or instruction-tuned base LLM $p_\theta(y \mid q)$ and a test-time compute budget $N$ (measured in generated tokens, forward passes, or candidate trajectories), any test-time scaling algorithm operates along two orthogonal axes (arXiv:2408.03314v1, Section 2):
- Input-Level Modification of the Proposal Distribution (Sequential Refinement & Budget Forcing): Altering the input context tokens on which the LLM conditions so that the model directly samples from an improved proposal distribution $p_\theta(y^{(t+1)} \mid q, y^{(0)}, \dots, y^{(t)})$. This can be achieved without parameter updates via iterative self-critique (Self-Refine,
arXiv:2303.17651) or decoding-time token interventions (Budget Forcing ins1-32B,arXiv:2501.19393), or by specifically finetuning revision models on multi-turn error-correction trajectories (arXiv:2408.03314v1, Section 6). - Output-Level Verification, Aggregation, and Tree Search (Parallel Sampling & Process Reward Models): Sampling multiple candidate steps or complete trajectories from the proposal distribution and applying a post-hoc verifier, reward model, or consensus operator to select or prune paths. This spectrum spans unsupervised majority voting (Self-Consistency,
arXiv:2203.11171), domain-specific execution verifiers (Lean4 proof checkers and unit test suites in Large Language Monkeys,arXiv:2407.21787), LM self-evaluation heuristics (Tree of Thoughts,arXiv:2305.10601), Outcome Reward Models (ORMs) scoring complete solutions, and Process Reward Models (PRMs) guiding step-by-step Beam Search or Lookahead Search / MCTS (arXiv:2408.03314v1, Section 5).
2. Formalizing the Compute-Optimal Test-Time Scaling Strategy ($\theta^{}_{q, y^{}(q)}(N)$)
A central discovery of Snell et al. (arXiv:2408.03314v1, Section 3.1) is that no single test-time compute strategy is uniformly optimal across all prompts. Let $\operatorname{Target}(\theta, N, q)$ denote the output distribution over responses induced by applying test-time hyperparameter configuration $\theta$ (e.g., choosing between parallel Best-of-N, PRM Beam Search with width $M$, Lookahead Search with rollout depth $k$, or allocating a ratio of budget $N$ between sequential revisions and parallel branches) on prompt $q$ under compute budget $N$. The Test-Time Compute-Optimal Scaling Strategy $\theta^{}_{q, y^{}(q)}(N)$ selects the hyperparameters $\theta$ that maximize expected accuracy against the ground-truth answer $y^{*}(q)$:
$$\theta^{}{q, y^{}(q)}(N) = \operatorname{argmax}{\theta} \left( \mathbb{E}{y \sim \operatorname{Target}(\theta, N, q)} \left[ \mathbb{I}{y = y^{*}(q)} \right] \right)$$
Because the ground-truth answer $y^{}(q)$ is unknown at deployment time, Snell et al. (arXiv:2408.03314v1, Section 3.2 & Appendix C) approximate $\theta^{}_{q, y^{*}(q)}(N)$ using question difficulty from the perspective of the base LLM as a sufficient statistic:
- Oracle vs. Model-Predicted Difficulty Quintiles: Prompts in the MATH test set (500 competition problems from Lightman et al.'s split) are partitioned into 5 difficulty quintiles (Bins 1 to 5) based either on the base model's ground-truth
pass@1rate estimated over 2,048 samples (Oracle Difficulty) or on the averaged final-answer score predicted by the learned PRM verifier across those samples without ground-truth labels (Model-Predicted Difficulty), validated via two-fold cross-validation. - Over-Optimization on Easy Prompts vs. Under-Exploration on Hard Prompts: On easy problems (Bins 1 and 2) where the base LLM already places nontrivial probability mass on nearly correct trajectories, sequential revisions and simple Best-of-N excel, whereas aggressive multi-step optimizers like PRM Beam Search actively degrade accuracy at higher budgets ($N = 64$ to $256$) by exploiting spurious reward hacks in the PRM! Conversely, on medium-to-hard problems (Bins 3 and 4) where single-pass
pass@1is low, PRM Beam Search and hybrid parallel-plus-sequential revision trees substantially outperform naive Best-of-N. By routing each prompt to its difficulty-matched strategy, compute-optimal scaling matches or exceeds Best-of-N using up to 4x less test-time compute (arXiv:2408.03314v1, Figures 1, 4, and 8).
3. The Mathematical Exchange Rate Between Pre-Training FLOPs ($X$) and Test-Time Inference FLOPs ($Y$)
When should an engineering team spend extra FLOPs pre-training a larger model versus spending extra FLOPs at test time with a smaller model? Snell et al. (arXiv:2408.03314v1, Section 7) derive the formal FLOPs exchange rate using the standard transformer compute approximations (Hoffmann et al., 2022; Sardana & Frankle, 2023):
$$X = 6 N D_{\text{pretrain}}, \qquad Y = 2 N D_{\text{inference}}$$
where $N$ is the model parameter count, $D_{\text{pretrain}}$ is the pre-training token count, and $D_{\text{inference}}$ is the total number of tokens generated across the deployment lifetime. If we scale model parameters up by a factor of $M$ (e.g., $M \approx 14\times$ when comparing PaLM 2-S* against a $\sim 14\times$ larger pretrained model at fixed $D_{\text{pretrain}}$), total pre-training plus greedy inference compute scales to $M(X + Y)$. To match that exact same total FLOP budget $M(X + Y)$ without increasing model parameters $N$, the smaller model can multiply its test-time inference compute $Y$ by the FLOPs-equivalence multiplier:
$$\text{Inference Compute Multiplier} = M + 3 \left(\frac{D_{\text{pretrain}}}{D_{\text{inference}}}\right)(M - 1) = M + \frac{3(M - 1)}{R}, \quad \text{where } R = \frac{D_{\text{inference}}}{D_{\text{pretrain}}}$$
Evaluating three operational regimes of the inference-to-pretraining token ratio $R \in \{0.16\ (R \ll 1),\; 0.79\ (R \sim 1),\; 22\ (R \gg 1)\}$ (arXiv:2408.03314v1, Figure 9) reveals a fundamental boundary:
- Low-to-Moderate Inference Load ($R = 0.16$ or $R = 0.79$, such as self-improvement data generation pipelines or specialized enterprise deployments) and Easy/Intermediate Difficulty Bins (Bins 1–3, and often Bin 4): Compute-optimal test-time scaling with the smaller PaLM 2-S* model consistently outperforms greedy decoding from the ~14x larger pretrained model at equal total FLOPs.
- Massive Public Inference Load ($R = 22 \gg 1$) or Extreme Out-of-Reach Problems (Bin 5): When lifetime inference tokens dwarf pre-training tokens by orders of magnitude, or when the base model has near-zero initial capability on level-5 competition math, pre-training a larger base model remains more FLOP-efficient—proving that pre-training compute and test-time compute are complementary rather than 1-to-1 exchangeable.
| Test-Time Scaling Paradigm | Primary Scaling Axis & Granularity | Verification / Selection Mechanism | Compute Controllability & Scaling Law | Headline Empirical Benchmark Gain | Primary Reference |
|---|---|---|---|---|---|
| Self-Consistency (CoT-SC) | Parallel ($m = 40$ i.i.d. Chain-of-Thought trajectories) | Unweighted Majority Vote or Length-Normalized Log-Prob Sum | Monotonic saturation around $m = 40\text{--}100$ paths | +17.9% GSM8K (56.5% → 74.4% PaLM-540B; 60.1% → 78.0% GPT-3); +23.9% MultiArith (LaMDA-137B) | Wang et al. (ICLR 2023, arXiv:2203.11171) |
| Tree of Thoughts (ToT) | Hybrid Tree Search (ToT-BFS breadth $b \le 5$; ToT-DFS pruning + backtracking) | Zero-shot LM state valuation (sure/maybe/impossible) or vote prompt | Configurable tree depth $T$ and node expansion budget | Game of 24: 4.0% (CoT) → 74% (ToT-BFS $b=5$); Mini Crosswords: 15.6% → 60% words | Yao et al. (NeurIPS 2023, arXiv:2305.10601v2) |
| Self-Refine | Sequential ($t \le 4$ iterations of $\text{Generate} \rightarrow \text{Feedback} \rightarrow \text{Refine}$) | Single-LLM actionable/specific natural language self-feedback | High gains in iterations $y_0 \rightarrow y_3$; requires verifier on math (94% false-OK) | ~20% avg absolute gain across 7 tasks; +49.2% GPT-4 Dialogue (25.4% → 74.6%); +30.0% Constrained Gen | Madaan et al. (NeurIPS 2023, arXiv:2303.17651v2) |
| Large Language Monkeys | Massively Parallel Repeated Sampling ($k = 1$ to $10,000$ independent samples) | Execution verifiers (Lean4, unit tests) vs. Majority Vote / ArmoRM-8B | Exponentiated Power Law: $c \approx \exp(a k^{-b})$ over 4 orders of magnitude | SWE-bench Lite: 15.9% → 56% (@250, beating 43% SOTA); 5 samples @ $12 beats GPT-4o ($39) & Claude ($51) | Brown et al. (arXiv:2407.21787v1) |
| Compute-Optimal Scaling | Difficulty-Adaptive (Sequential/Parallel Revisions + PRM Beam/Lookahead Search) | Monte-Carlo rollout Process Reward Model (PRM last-step + Best-of-N weighted) | Prompt-difficulty quintile routing ($\theta^{}_{q, y^{}(q)}(N)$) | >4x compute efficiency vs. Best-of-N (16 vs. 64 / 64 vs. 256); outperforms 14x larger model at matched FLOPs | Snell et al. (arXiv:2408.03314v1) |
| s1-32B & Budget Forcing | Sequential Long-CoT (s1K 1,000-trace SFT + "Wait" / early-exit decoding intervention) | Internal self-verification triggered by suppressing end-of-thinking token | 100% Control, +15 Scaling slope (vs. -24 TCC and -35 Rejection Sampling) | AIME 2024: 26.7% (base) → 50.0% (s1 w/o BF) → 56.7% (with BF, beating o1-preview 44.6%); 93.0% MATH500 | Muennighoff et al. (arXiv:2501.19393v1) |
Parallel Sample-and-Marginalize Decoding: Self-Consistency Over Diverse Reasoning Paths
The earliest and most widely deployed test-time compute scaling algorithm is Self-Consistency (CoT-SC), introduced by Xuezhi Wang et al. at Google Research Brain Team in Self-Consistency Improves Chain of Thought Reasoning in Language Models (ICLR 2023, arXiv:2203.11171). While standard Chain-of-Thought prompting (Wei et al., 2022) prompts the model to generate intermediate reasoning steps $r_i$ before emitting a final answer $a_i$, using greedy decoding commits the model to a single locally optimal token trajectory. If the greedy trajectory makes a single arithmetic slip or misinterprets a clause in sentence one, the entire downstream derivation collapses.
1. Mathematical Formulation of Marginalizing Over Latent Reasoning Paths
Self-Consistency builds on the cognitive insight that complex reasoning problems typically admit multiple distinct valid ways of thinking that converge on the same unique correct answer, whereas erroneous reasoning paths scatter across diverse incorrect answers (arXiv:2203.11171, Section 2). Given a prompt and question, Self-Consistency samples $m$ independent candidate output sequences $(\mathbf{r}_i, \mathbf{a}_i)$ ($i = 1, \dots, m$) from the language model's decoder using temperature and top-$k$/top-$p$ sampling (e.g., $m = 40$ outputs with $T = 0.7, k = 40$ on PaLM-540B; $T = 0.5, k = 40$ on UL2-20B and LaMDA-137B; and $T = 0.7$ on GPT-3 code-davinci-002). It then marginalizes out the latent reasoning paths $\mathbf{r}_i$ to select the final answer $a^*$ with maximum total weight:
$$a^{*} = \operatorname{argmax}{a} \sum{i=1}^{m} \mathbb{I}(\mathbf{a}_i = a) \cdot w(\mathbf{r}_i, \mathbf{a}_i)$$
Wang et al. (arXiv:2203.11171, Section 2 & Table 1) systematically ablated five formulations of the path weight $w(\mathbf{r}_i, \mathbf{a}_i)$ on PaLM-540B, comparing unweighted majority voting ($w = 1$) against weighting each trajectory by its length-normalized conditional generation probability:
$$P_{\text{norm}}(\mathbf{r}i, \mathbf{a}_i \mid \text{prompt}, \text{question}) = \exp\left( \frac{1}{K} \sum{k=1}^{K} \log P(t_k \mid \text{prompt}, \text{question}, t_1, \dots, t_{k-1}) \right)$$
where $K$ is the total token count of $(\mathbf{r}_i, \mathbf{a}_i)$. Look at the empirical results in Table 1 of arXiv:2203.11171:
- Unweighted Sum (Majority Vote) Matches Length-Normalized Weighted Sum: Across all six benchmarks on PaLM-540B, simple unweighted majority voting (
74.4%GSM8K,99.3%MultiArith,48.3%AQuA,86.6%SVAMP,80.7%CSQA,88.7%ARC-c) achieves virtually identical accuracy to the length-normalized probability weighted sum (74.1%GSM8K,99.3%MultiArith,48.0%AQuA,86.8%SVAMP,80.7%CSQA,88.7%ARC-c). Why? Because the LLM is poorly calibrated across its own sampled trajectories, assigning very similar per-token log-probabilities to both valid and invalid chains of thought. - Unnormalized Sums and Weighted Averages Collapse: Omitting the $\frac{1}{K}$ length normalization causes the weighted sum to drop from 74.1% to 59.9% on GSM8K (barely above greedy decoding's 56.5%) because longer multi-step derivations accumulate lower raw product probabilities. Even worse, dividing an answer's probability sum by its vote count $\sum_{i=1}^m \mathbb{I}(\mathbf{a}_i = a)$ (Weighted Average) destroys consensus and crashes GSM8K accuracy to 22.1% (normalized) and 56.3% (unnormalized)!
2. Cross-Model Benchmark Gains and Repairing Greedy Chain-of-Thought Failures
Evaluating $m = 40$ sampled paths across four foundation model families spanning 20B to 540B parameters (arXiv:2203.11171, Tables 2, 3, and 5) establishes three operational principles for parallel sampling:
- Super-Linear Gains with Model Scale on Arithmetic and Symbolic Reasoning: On GSM8K, Self-Consistency improves UL2-20B from
4.1%to7.3%(+3.2%), LaMDA-137B from17.1%to27.7%(+10.6%), PaLM-540B from56.5%to74.4%(+17.9%), and GPT-3code-davinci-002from60.1%to78.0%(+17.9%). On MultiArith, LaMDA-137B leaps by +23.9% (51.8%→75.7%) and GPT-3code-davinci-001leaps by +23.2% (59.5%→82.7%), while GPT-3code-davinci-002reaches 100.0% (96.2%→100.0%). - Commonsense and Symbolic Out-of-Distribution Generalization: On PaLM-540B, Self-Consistency boosts StrategyQA from
75.3%to81.6%(+6.3%; and +6.4% on GPT-3code-davinci-002from73.4%to79.8%), ARC-challenge from85.2%to88.7%(+3.5%; and +3.9% on GPT-3 from83.6%to87.5%), and 4-letter OOD Last Letter Concatenation from65.8%to70.8%(+5.0%). - Rescuing Tasks Where Standard Greedy CoT Hurts Accuracy: On natural language inference benchmarks (ANLI-R1, e-SNLI, and RTE,
arXiv:2203.11171, Table 5), standard greedy CoT prompting actually degrades PaLM-540B accuracy compared to zero-rationale standard prompting (dropping e-SNLI from85.8%to81.0%, RTE from84.8%to79.1%, and ANLI-R1 from69.1%to68.8%) due to noisy single-path rationales. Applying Self-Consistency completely reverses the regression and outperforms standard prompting across the board: reaching 88.4% on e-SNLI, 86.3% on RTE, 78.5% on ANLI-R1, and 33.8 EM / 44.6 F1 on HotpotQA (vs.28.9 / 39.8for greedy CoT).
Deliberate System-2 Tree Search Over Semantic Units: Tree of Thoughts (ToT)
While Self-Consistency (CoT-SC) samples $k$ independent chains of thought globally and votes at the leaf level, there is zero local exploration, lookahead, or backtracking within any individual reasoning chain. In Tree of Thoughts: Deliberate Problem Solving with Large Language Models (Yao et al., Princeton University & Google DeepMind, NeurIPS 2023, arXiv:2305.10601v2), the authors demonstrate why continuous left-to-right token generation fails on combinatorial planning tasks: in the Game of 24, approximately 60% of GPT-4 Chain-of-Thought samples already fail the task after generating the very first equation step (the first three tokens, e.g., "4 + 9"), leaving an unsolvable remaining number state with no mechanism to backtrack!
Breadth-First Tree Search Traversal Order Across Hierarchical Reasoning States (CC BY 3.0, Alexander Drichel)
1. The Four Modular Pillars of a Tree-of-Thoughts Instantiation
Drawing on Newell, Shaw, and Simon's 1959 combinatorial problem-space search and Kahneman's dual-process cognitive architecture, Tree of Thoughts (ToT) frames inference as searching a tree where each node is a partial-solution state $s = [x, z_{1\dots i}]$ comprising the input $x$ and the sequence of intermediate semantic thoughts $z_{1\dots i}$ so far (arXiv:2305.10601v2, Section 3):
- Thought Decomposition: Choosing the semantic granularity of each node $z_i$ so that it is small enough for the LLM to generate diverse continuations yet large enough for the LLM to evaluate its future promise toward solving the problem—such as one intermediate two-number equation line in Game of 24 ($T = 3$ steps), a 4-paragraph writing plan in Creative Writing ($T = 1$ intermediate step), or a single candidate 5-letter word fill in 5×5 Mini Crosswords ($T = 5\text{--}10$ steps).
- Thought Generator $G(p_\theta, s, k)$: Expanding state $s = [x, z_{1\dots i}]$ into $k$ candidate child thoughts via one of two prompting strategies: - i.i.d. CoT Sampling ($z^{(j)} \sim p_\theta^{\text{CoT}}(z_{i+1} \mid s)$ for $j = 1\dots k$): Best when the thought space is rich and open-ended (e.g., paragraph-level plans in Creative Writing) so independent temperature samples naturally diverge. - Sequential Propose Prompt ($[z^{(1)}, \dots, z^{(k)}] \sim p_\theta^{\text{propose}}(z_{i+1}^{(1\dots k)} \mid s)$): Best when the thought space is tightly constrained (e.g., single equations in Game of 24 or single words in Crosswords), generating all candidate next steps inside a single context window to avoid duplicate proposals.
- Deliberate LM State Evaluator $V(p_\theta, S)$: Instead of relying on hardcoded rules or separately trained value networks, ToT uses the LLM itself to deliberately reason about the frontier states $S$ as a zero-shot/few-shot search heuristic: - Independent State Valuation ($V(p_\theta, S)(s) \sim p_\theta^{\text{value}}(v \mid s)$): Prompting the LM to evaluate a single state $s$ via brief lookahead trials and commonsense elimination, emitting a scalar score (1–10) or discrete verdict (
sure / maybe / impossible). For example, in Game of 24, given remaining numbers(4, 4, 10), the value prompt performs a quick mental lookahead to see if 24 is reachable, or immediately labels(1, 2, 3)asimpossiblebecause the numbers are too small. - Cross-State Comparative Voting ($V(p_\theta, S)(s) = \mathbb{I}[s = s^]$ where $s^ \sim p_\theta^{\text{vote}}(s^* \mid S)$): When absolute progress is subjective (such as passage coherency in Creative Writing), casting frontier selection as a multi-choice comparison prompt and sampling multiple LM votes to pick the most promising branch. - Pluggable Tree Search Algorithms (
ToT-BFSandToT-DFS): - ToT-BFS (Algorithm 1): At each step $t = 1, \dots, T$, expands all retained states in $S_{t-1}$ via $G(p_\theta, s, k)$, scores the expanded frontier $S't$ via $V(p\theta, S't)$, and prunes the frontier down to the top $b$ highest-valued states ($|S_t| = b$). Ideal for shallow trees ($T \le 3$, $b \le 5$). - ToT-DFS (Algorithm 2): Explores the highest-confidence child state $s'$ depth-first up to depth $T$, but immediately prunes the subtree and backtracks to the parent state whenever the state evaluator judges $V(p\theta, \{s'\})(s) \le v_{\text{th}}$ (e.g., when filling a crossword word makes any intersecting perpendicular clueimpossibleto satisfy).
Depth-First Tree Search Traversal Order with Subtree Exploration and Backtracking (CC BY-SA 3.0, Alexander Drichel)
2. Quantitative Ablations Across Game of 24, Creative Writing, and 5×5 Mini Crosswords
Look at the empirical gaps between standard left-to-right prompting and deliberate tree search measured by Yao et al. on GPT-4 ($T = 0.7$, arXiv:2305.10601v2, Tables 2 & 3, Section 4):
- Game of 24 (100 hard games indexed 901–1,000 from
4nums.com): - Standard IO prompting (100 samples average): 7.3% success.
- Standard CoT prompting (100 samples average): 4.0% success.
- CoT Self-Consistency (
CoT-SC, $k = 100$ majority vote): 9.0% success. - IO + Iterative Refine ($k \le 10$ with ground-truth equation correctness signal): 27% success.
- Oracle Best-of-100 (
IO best of 100/CoT best of 100): 33% and 49% success. - ToT-BFS ($b = 1$, greedy breadth-1 tree search): 45% success.
- ToT-BFS ($b = 5$, keeping top 5 equation states per step, 3 value samples/thought): 74% success—an 18.5x improvement over standard CoT (4.0%) and 25 percentage points higher than even an oracle Best-of-100 CoT baseline (49%) at comparable node-visit budgets!
- Creative Writing (100 four-sentence constraint tasks): ToT ($k = 5$ plans + 5 votes, then $k = 5$ passages + 5 votes, $b = 1$) elevates GPT-4 coherency scores (1–10 scale) from 6.19 (IO) and 6.93 (CoT) to 7.56 (ToT), and reaches 7.91 when combined with iterative refinement (ToT + Refine). In blind human A/B evaluations across 100 pairs, humans preferred ToT over CoT in 41 pairs versus only 21 pairs for CoT (with 38 tied).
- 5×5 Mini Crosswords (20 games from GooBix, max 100 DFS steps): Standard IO and CoT achieve just 38.7% / 40.6% letter accuracy, 14% / 15.6% word accuracy, and 0% / 1% full-game solve rate. ToT-DFS jumps to 78% letter accuracy, 60% word accuracy, and 20% (4/20) full-game solve rate (and 82.4% letter / 67.5% word / 35% [7/20] game accuracy under the
+best stateoracle selector). Ablating backtracking (-backtrack) collapses word accuracy from 60% down to 20% (5%games), and ablating subtree pruning (-prune) drops word accuracy to 41.5% (5%games)—proving that both lookahead constraint pruning and explicit state backtracking are indispensable for multi-step constraint satisfaction.
Massively Parallel Repeated Sampling and Inference Power Laws: Large Language Monkeys
What happens when we scale parallel sampling not just to $k = 40$ or $100$ paths, but across four orders of magnitude ($k = 1$ to $10,000$ samples per problem)? In Large Language Monkeys: Scaling Inference Compute with Repeated Sampling (Brown et al., Stanford University, University of Oxford & Google DeepMind, arXiv:2407.21787v1), the authors decouple repeated sampling performance into two distinct mathematical quantities:
- Coverage ($\text{pass@}k$): The fraction of problems in a benchmark solved by at least one generated sample out of $k$ attempts, estimated without bias from $N \ge k$ total generated samples ($C_i$ correct samples on problem $i$) via Chen et al.'s combinatorial estimator (
arXiv:2407.21787v1, Equation 1): $$\text{pass@}k = \frac{1}{\text{\# of problems}} \sum_{i=1}^{\text{\# of problems}} \left( 1 - \frac{\binom{N - C_i}{k}}{\binom{N}{k}} \right)$$ - Precision (Verification / Candidate Selection): Given the $k$ generated candidate solutions, the ability of a verifier—either an automatic execution verifier (unit test suite or formal proof checker) or a statistical/learned selector (majority vote or reward model)—to identify and return the correct sample.
1. The Exponentiated Power Law of Inference-Time Coverage ($c \approx \exp(a k^{-b})$)
Across five reasoning benchmarks (GSM8K, MATH, MiniF2F-MATH in Lean4, CodeContests in Python3, and SWE-bench Lite) and model families spanning 70M to 70B parameters (Llama-3-8B / 8B-Instruct / 70B-Instruct, Gemma-2B / 7B, and Pythia-70M through 12B), Brown et al. (arXiv:2407.21787v1, Section 3.1, Equations 2 & 3) discovered that the log of coverage $c$ follows a power law in the sample budget $k$:
$$\log(c) \approx a k^{-b} \implies c(k) \approx \exp\left( a k^{-b} \right)$$
where $a, b \in \mathbb{R}$ are fitted scaling parameters. Furthermore, when plotting coverage curves against $\log(k)$ for different model sizes within the same model family (arXiv:2407.21787v1, Section 3.2 & Figure 6), all models trace S-curves with nearly identical slopes that align when shifted horizontally by $\log(\text{pass@}k^{-1}(c))$—meaning the multiplicative increase in sample budget required to lift coverage from $c$ to $c'$ is approximately invariant across model sizes within a family! Look at the magnitude of coverage amplification across small and open-weight models (arXiv:2407.21787v1, Sections 2.1 & 2.2):
- Gemma-2B on CodeContests: Coverage increases by over 300x, climbing from a
pass@1of 0.02% to apass@10kof 7.1%. - Pythia-160M on MATH: Coverage scales from a
pass@1of 0.27% to apass@10kof 57%. - DeepSeek-V2-Coder-Instruct on SWE-bench Lite (with Moatless Tools): A single trajectory attempt (
pass@1) solves only 15.9% of real-world GitHub issues. Scaling to 250 independent attempts (pass@250) solves 56% of SWE-bench Lite issues—surpassing the 43% single-attempt frontier state-of-the-art achieved by CodeStory Aide (which combines GPT-4o and Claude 3.5 Sonnet) by 13 percentage points!
2. Inference FLOPs and API Dollar Cost Arbitrage: When 5 Cheap Samples Beat Frontier Models
Repeated sampling introduces a powerful economic degree of freedom: amplifying a smaller, cheaper model with $k$ parallel samples versus running 1 sample from a frontier model. Brown et al. (arXiv:2407.21787v1, Section 2.3) evaluate this trade-off both in raw dense Transformer inference FLOPs:
$$\text{FLOPs per token} \approx 2 \cdot \left( N_{\text{params}} + 2 \cdot N_{\text{layers}} \cdot d_{\text{model}} \cdot L_{\text{ctx}} \right)$$
$$\text{Total Inference FLOPs} \approx L_{\text{prompt}} \cdot \text{FLOPs}{\text{tok}} + k \cdot L{\text{decode}} \cdot \text{FLOPs}_{\text{tok}}$$
and in live commercial API dollar cost on SWE-bench Lite (300 issues, using the identical Moatless Tools agent harness, arXiv:2407.21787v1, Table 1):
| Model & Agent Harness (Moatless Tools) | API Cost per Attempt (USD) | Number of Attempts ($k$) | SWE-bench Lite Issues Solved (%) | Total Benchmark Cost (USD) | Relative Total Dollar Cost |
|---|---|---|---|---|---|
| DeepSeek-V2-Coder-Instruct | $0.008 | 1 | 15.9% | ~$2.40 | 0.2x |
| DeepSeek-V2-Coder-Instruct (5x Repeated Sampling) | $0.008 | 5 | 29.62% | $12 | 1.0x (Baseline) |
| GPT-4o (Single Attempt) | $0.13 | 1 | 24.00% | $39 | 3.25x more expensive |
| Claude 3.5 Sonnet (Single Attempt) | $0.17 | 1 | 26.70% | $51 | 4.25x more expensive |
| DeepSeek-V2-Coder-Instruct (250x Repeated Sampling) | $0.008 | 250 | 56.0% (vs. 43% SOTA) | ~$600 | 50x |
At fixed inference FLOPs (arXiv:2407.21787v1, Figure 4), Llama-3-8B-Instruct consistently achieves higher coverage than Llama-3-70B-Instruct across MiniF2F-MATH, GSM8K, and MATH, whereas the 70B model is more FLOP-effective on CodeContests (where smaller models lack rare algorithmic priors; indeed, Pythia 70M–12B achieves 0% coverage even at 10,000 samples on CodeContests). Even more importantly, as noted in Section 5 of arXiv:2407.21787v1, repeated sampling of $k$ completions for a single prompt shares the exact same prompt KV cache (exploitable via SGLang RadixAttention, vLLM PagedAttention, or Bifurcated Attention) and runs at large decode batch sizes, making its true hardware cost per token substantially lower than $k$ isolated single-turn API calls!
Why doesn't repeated sampling automatically solve every reasoning benchmark at $k = 10,000$? In domains without automatic proof checkers or test suites, selection precision saturates early. On MATH with Llama-3-8B-Instruct, oracle coverage climbs from 79.8% at 100 samples to 95.3% at 10,000 samples, yet Majority Voting, Best-of-N with ArmoRM-Llama3-8B-v0.1 (the top open-weight reasoning reward model on RewardBench), and RM-weighted majority voting all plateau around 100 samples—inching up from just 38.7% at $k=100$ to 39.8% at $k=10,000$! Even though manual human grading of 105 GSM8K chains of thought (Table 2) confirmed that over 90% of correct CoTs follow faithful logical steps even when $\text{pass@1} \le 10\%$ (and uncovered 1 GSM8K test question with an incorrect ground-truth label where all 10,000 Llama-3-70B samples disagreed with the dataset key), standard outcome verifiers fail on these "needle-in-a-haystack" problems ($\le 1\%$ sampling probability). Even software unit tests have pitfalls: Brown et al. discovered that 11.3% of SWE-bench Lite issues have flaky test suites (e.g., unordered Python set assertions), while 35 out of 122 Python3 problems in CodeContests exhibit false negatives where valid reference solutions fail overly rigid or malformed mutated test cases.
Dense Process-Verifier Tree Search vs. Sequential Proposal Revisions: Inside Compute-Optimal Scaling
To overcome the ~100-sample saturation wall of outcome reward models and naive majority voting, Charlie Snell, Jaehoon Lee, Kelvin Xu, and Aviral Kumar (arXiv:2408.03314v1, Sections 5 & 6) systematically engineered and benchmarked two deeper test-time scaling mechanisms on PaLM 2-S* (Codey) across the 500-problem MATH test split (12,000 train / 500 test from Lightman et al., 2023).
Four Phases of Monte Carlo Tree Search and Lookahead Rollout Verification: Selection, Expansion, Simulation, and Backpropagation (CC BY-SA 4.0, Robert Moss)
1. Searching Against Dense Process-Based Verifiers (PRMs): Best-of-N Weighted, Beam Search, and Lookahead Search
Why did Snell et al. train a Process Reward Model (PRM) without human crowd-worker annotations? In Section 5.1 of arXiv:2408.03314v1, the authors found that a PRM trained on OpenAI's human-labeled PRM800K dataset was easily exploited by Best-of-N sampling due to distribution shift between GPT-4 samples in PRM800K and PaLM 2-S* generations. Applying the Math-Shepherd methodology (Wang et al., 2023), they supervised a binary cross-entropy PRM on PaLM 2-S* using soft step-level reward-to-go value estimates obtained by running 16 Monte Carlo rollouts from each newline-delimited reasoning step across 16 sampled solutions per training problem (AdamW, $\text{lr} = 3 \times 10^{-5}$, batch size 128, dropout 0.05).
When scoring complete candidate solutions at test time (arXiv:2408.03314v1, Section 5.1 & Appendices E–F), Snell et al. established two crucial aggregation rules:
- Step-Wise Aggregation (
lastBeatsminandprodfor MC-Rollout PRMs): Unlike human-labeled binary PRMs where taking the minimum step score (min) or product (prod) works best, for a PRM trained on soft Monte Carlo reward-to-go values, using the PRM's prediction at the final step (last) outperforms bothminandprod, and still substantially outperforms a standalone Outcome Reward Model (ORM) because per-step supervision acts as a superior representation learning signal (Appendix F, Figure 14). - Inter-Answer Aggregation (
Best-of-N Weighted): Rather than picking the single highest-scoring trajectory, Best-of-N Weighted (Li et al., 2023) sums the PRM's correctness scores across all candidate trajectories that converge on the same final answer $a$, selecting the answer with the greatest total marginalized score.
Snell et al. then compared three test-time search algorithms against this PRM under a maximum budget of $N = 256$ generations (arXiv:2408.03314v1, Section 5.2 & Figure 2):
- Best-of-N Weighted: Sample $N$ complete solutions independently in parallel and apply Best-of-N weighted selection. Cost = $N$ generations.
- PRM Beam Search ($N$ beams, beam width $M \in \{4, \sqrt{N}\}$, max 40 steps): Sample $N$ initial step-1 candidates, score each step with the PRM's reward-to-go estimate, retain the top $N/M$ highest-scoring prefixes, and sample $M$ step-2 continuations from each retained prefix (yielding $N$ active beams again), repeating up to 40 rounds before applying Best-of-N weighted selection across the $N$ completed beams. Cost $\approx N$ generations.
- PRM Lookahead Search (Deterministic MCTS Rollout with Depth $k \in \{1, 3\}$): At each step of Beam Search, instead of scoring the current step prefix directly, perform a temperature-0 simulation rollout of $k$ additional steps forward and use the PRM's score at step $t + k$ to value step $t$ (Viewing Beam Search as Lookahead Search with $k = 0$). Because each step simulates $k$ lookahead steps, its fair generation budget cost is $N \times (k + 1)$ samples.
Look at the empirical search findings in Section 5.3 and Figures 3–4 of arXiv:2408.03314v1:
- Why Lookahead Search ($k=1, 3$) Underperforms Beam Search ($k=0$) at Fixed Budget: Because a $k$-step lookahead consumes $(k+1)\times$ more compute per beam step and aggressively optimizes the frozen PRM, it amplifies PRM reward exploitation—generating degenerate 1–2 step answers or repetitive low-information trailing lines (Appendix M, Figure 29).
- The Difficulty-Bin Crossover Between Beam Search and Best-of-N: At small generation budgets ($N = 4$ to $16$), Beam Search ($M = 4$) beats Best-of-N overall. As budget scales to $N = 64$ and $256$, Beam Search degrades on Easy Problems (Difficulty Bins 1 and 2) due to verifier over-optimization, whereas on Harder Problems (Difficulty Bins 3 and 4), Beam Search consistently outperforms Best-of-N across all budgets! Selecting the optimal search algorithm per difficulty bin allows Compute-Optimal PRM Search to match or nearly outperform Best-of-N using up to 4x less compute (e.g., 16 generations vs. 64 generations).
2. Refining the Proposal Distribution: Self-Refine vs. Finetuned Sequential Revision Models
Can an LLM improve its own proposal distribution sequentially without a step-level tree search? Let us compare the training-free Self-Refine paradigm (Madaan et al., NeurIPS 2023, arXiv:2303.17651v2) with Snell et al.'s Supervised Sequential Revision Models (arXiv:2408.03314v1, Section 6):
- Training-Free Iterative Self-Refine (
arXiv:2303.17651v2): Using a single frozen LLM $\mathcal{M}$ (GPT-3.5, ChatGPT, Codex, or GPT-4) with three few-shot prompts $\{p_{\text{gen}}, p_{\text{fb}}, p_{\text{refine}}\}$, Self-Refine generates an initial draft $y_0 = \mathcal{M}(p_{\text{gen}} \| x)$, generates specific and actionable feedback $fb_t = \mathcal{M}(p_{\text{fb}} \| x \| y_t)$, and refines the draft conditioned on the full trajectory history: $$y_{t+1} = \mathcal{M}\left( p_{\text{refine}} \| x \| y_0 \| fb_0 \| \dots \| y_t \| fb_t \right)$$ for up to $t = 4$ iterations. Across 7 benchmarks (arXiv:2303.17651v2, Table 1), Self-Refine delivers a ~20% average absolute improvement (ranging from +5% to +40%+ across tasks), including lifting GPT-4 on Dialogue Response Generation from25.4%to74.6%(+49.2%), Sentiment Reversal from3.8%to36.2%(+32.4%), Constrained Generation (20–30 keywords) from15.0%to45.0%(+30.0%), Code Readability from27.4%to56.2%(+28.8%), Acronym Generation from30.4%to56.0%(+25.6%), and PIE Code Optimization from27.3%to36.0%(+8.7%, e.g., refactoring a 6-nested-loop brute-force coin solver into an $\mathcal{O}(\text{amount} \times \text{coins})$ dynamic programming algorithm in Figure 5). - Crucial Qualitative & Ablation Diagnostics (
arXiv:2303.17651v2, Section 4 & Table 2): Replacing specific, actionable feedback with generic feedback drops ChatGPT Sentiment Reversal from 43.2 to 31.2 (and 0 without feedback) and Code Optimization from 27.5 to 26.0 (24.8 without feedback). Across iterations $y_0 \rightarrow y_1 \rightarrow y_2 \rightarrow y_3$ (averaged across models, Figure 4), Code Optimization climbs22.0→27.0→27.9→28.8and Constrained Generation climbs29.0→40.3→46.7→49.7. In a manual audit of 70 Code Optimization and Math samples (35 successes, 35 failures), only 6% of failures were due to faulty refinement of good feedback, while 61% stemmed from feedback suggesting an inappropriate fix and 33% from feedback mislocating the error (and in 33% of successful cases, the refiner fixed the bug even when feedback was partially wrong!). - Why Off-the-Shelf Self-Refine Stalls on Math (
+0% to +0.2%on GSM8K): On GSM8K Math Reasoning (arXiv:2303.17651v2, Table 1 & Section 3.3), GPT-3.5 stayed flat at 64.1% (+0) and GPT-4 moved from 92.9% to 93.1% (+0.2%) because a plausible-looking derivation deceives the off-the-shelf model: on 94% of GSM8K instances, ChatGPT's self-feedback simply states"everything looks good"unless an external oracle signals that the answer is wrong (which immediately unlocks 5%+ math gains in Appendix H.1). - Finetuned Multi-Turn Revision Models and the Optimal Parallel-to-Sequential Ratio (
arXiv:2408.03314v1, Section 6): To overcome off-the-shelf self-correction blindness on MATH, Snell et al. sampled 64 parallel responses per training question at high temperature and constructed synthetic multi-turn SFT trajectories containing $k \sim \text{Uniform}(0, 4)$ incorrect answers followed by 1 correct answer, selecting the final incorrect context answer via minimum character-level edit distance to the target correct answer (AdamW, $\text{lr} = 10^{-5}$, batch size 128) so the model learns to make targeted edits rather than restarting from scratch: - The 38% Correct-to-Incorrect Flip Risk & Sequential Selection: While the revision model's
pass@1improves monotonically across revision steps (even extrapolating out to 64 revision steps when sliding a 4-attempt context window, Figure 6 left), an inference-time distribution shift occurs once the model emits a correct answer into its own context: naively continuing to revise converts approximately 38% of correct answers back into incorrect ones (arXiv:2408.03314v1, Section 6.1)! Consequently, production sequential revision pipelines must apply a revision-context-aware ORM verifier (Best-of-N weighted) or sequential majority voting across all steps in the revision chain. - Balancing Global Exploration ($\sqrt{N}$ Parallel Chains) with Local Refinement ($\sqrt{N}$ Sequential Steps): Pure parallel sampling acts as a global search across diverse high-level strategies, whereas sequential revision acts as a local refinement operator (
arXiv:2408.03314v1, Section 6.2 & Figure 7). On Easy Questions (Bins 1 and 2), allocating 100% of the budget to sequential revisions performs best; on Harder Questions (Bins 3, 4, and 5) at budget $N = 128$, splitting the budget into an intermediate ratio (such as $\sqrt{N}$ parallel chains each refined for $\sqrt{N}$ sequential steps) achieves maximum accuracy—allowing Compute-Optimal Revisions to outperform parallel Best-of-N using up to 4x less test-time compute (e.g., 64 samples vs. 256 samples, Figure 8)!
Sample-Efficient Long-CoT Distillation and Decoding-Time Budget Forcing: The s1-32B Architecture
While OpenAI's o1 and DeepSeek's R1 demonstrated that large-scale reinforcement learning over ratusan of thousands to millions of samples can train models to generate extended internal reasoning chains, a critical engineering question remained: what is the minimal data, training compute, and decoding mechanism required to unlock controllable test-time scaling in an open-weight LLM? In s1: Simple test-time scaling (Muennighoff et al., Stanford University, University of Washington & Allen Institute for AI, arXiv:2501.19393v1), the authors proved that supervised fine-tuning (SFT) on just 1,000 carefully curated reasoning examples (s1K) for 26 minutes on 16 NVIDIA H100 GPUs (7 H100 GPU hours), paired with a decoding intervention called Budget Forcing, reproduces monotonic test-time scaling and outperforms o1-preview on competition math by up to 27%.
1. The Three-Stage Curation Pipeline of s1K: Quality, Difficulty, and MSC Diversity
Starting from an initial pool of 59,029 questions across 16 reasoning sources—including NuminaMATH (30,660 problems), OlympicArena (4,250 Olympiad problems across Astronomy, Biology, Chemistry, CS, Geography, Math, and Physics), OmniMath (4,238 problems), AGIEval (2,385 SAT/LSAT questions), historical AIME (1983–2021), plus two novel quantitative datasets created by the authors: s1-prob (182 PhD Qualifying Exam probability proof questions from Stanford University's Statistics Department) and s1-teasers (23 "Hard" quantitative trading interview brain-teasers from PuzzledQuant)—Muennighoff et al. distilled reasoning traces and solutions via the Google Gemini Flash Thinking Experimental API (arXiv:2501.19393v1, Section 2.1), decontaminated via 8-gram overlap against MATH500, GPQA Diamond, and AIME24, and executed a three-stage funnel down to 1,000 samples (s1K):
- Stage 1 — Quality Filtering (
59,029→54,116→51,581samples): Removing all API errors reduces the pool to 54,116 samples; stripping formatting defects (ASCII art diagrams, broken image references, inconsistent numbering) reduces it to 51,581 clean samples (from which 384 high-priority samples froms1-prob,s1-teasers, and AIME/Olympiad subsets are locked in). - Stage 2 — Model-Graduated Difficulty Filtering (
51,581→24,496samples): Every question is evaluated with both Qwen2.5-7B-Instruct and Qwen2.5-32B-Instruct (graded against reference solutions by Claude 3.5 Sonnet) alongside Qwen2.5-tokenized reasoning trace length. Any problem solved correctly by either the 7B or 32B base model is discarded as too easy, leaving 24,496 challenging questions. - Stage 3 — AMS Mathematics Subject Classification (MSC) Diversity + Length-Weighted Sampling (
24,496→1,000samples): Each remaining question is classified into 50 scientific and mathematical domains (based on the American Mathematical Society MSC 2020 taxonomy plus physics, biology, and economics). To sample the final 1,000 examples, the algorithm picks a domain uniformly at random and samples a problem within that domain using a probability distribution weighted toward longer reasoning traces.
Look at the data curation ablation results in Section 5.1 and Table 2 of arXiv:2501.19393v1 (evaluated with a 32,000-token maximum budget force):
1K-random(Quality only, random 1,000 from 51,581): Drops AIME 2024 accuracy from 50.0% (s1K) down to 36.7% (90.6%MATH500,52.0%GPQA Diamond).1K-diverse(Diversity only, ignoring difficulty): Collapses AIME 2024 accuracy to 26.7% (91.2%MATH500,54.6%GPQA Diamond)—no better than the raw base model (26.7%)!1K-longest(Difficulty trace-length only, ignoring domain diversity): Scores 33.3% on AIME 2024 (90.4%MATH500,59.6%GPQA Diamond).59K-full(Training on all 59,029 samples vs. 1,000s1Ksamples): Training on the entire 59K superset consumes 394 H100 GPU hours (vs. just 7 H100 GPU hours / 26 minutes on 16 H100s with PyTorch FSDP fors1K) yet achieves 53.3% on AIME24, 92.8% on MATH500, and 58.1% on GPQA Diamond—virtually indistinguishable froms1K(50.0% AIME24, 93.0% MATH500, 57.6% GPQA Diamond before"Wait"extrapolation)! This confirms the Superficial Alignment Hypothesis for Reasoning: pre-training over trillions of tokens already embeds latent reasoning circuits in the 32B weights, and 1,000 tri-axial (Quality + Difficulty + Diversity) traces are sufficient to activate long-horizon deliberation.
2. Budget Forcing Mechanics and the Three Desiderata of Test-Time Scaling (Control, Scaling, Performance)
To rigorously benchmark sequential test-time scaling methods across a set of compute budgets $a \in \mathcal{A}$ (measured in thinking tokens, where $f(a)$ is benchmark accuracy at compute $a$), Muennighoff et al. (arXiv:2501.19393v1, Section 3.2, Equations 1–3) define three formal metrics:
$$\text{Control} = \frac{1}{|\mathcal{A}|} \sum_{a \in \mathcal{A}} \mathbb{I}\left( a_{\min} \le a \le a_{\max} \right), \qquad \text{Scaling} = \frac{1}{\binom{|\mathcal{A}|}{2}} \sum_{\substack{a, b \in \mathcal{A} \\ b > a}} \frac{f(b) - f(a)}{b - a}, \qquad \text{Performance} = \max_{a \in \mathcal{A}} f(a)$$
where Control measures the percentage of evaluations obeying the target token budget window $[a_{\min}, a_{\max}]$, Scaling measures the average piecewise-linear slope of accuracy with respect to thinking tokens (which must be strictly positive), and Performance measures peak achievable accuracy.
Budget Forcing (BF) controls test-time thinking duration deterministically at the logit/token level during autoregressive decoding (arXiv:2501.19393v1, Section 3.1 & Figure 3):
- Enforcing a Maximum Thinking Budget ($a_{\max}$ Early Exit): When the number of generated thinking tokens reaches $a_{\max}$, the decoder forcefully terminates the thinking phase by appending the end-of-thinking token delimiter followed by
"Final Answer:", compelling the model to immediately emit its best answer from the current prefix. - Enforcing a Minimum Thinking Budget ($a_{\min}$ Extrapolation via
"Wait"): When the model attempts to emit the end-of-thinking token delimiter before reaching the desired compute budget (or for $2\times, 4\times, 6\times$ extrapolation rounds), the decoder suppresses the end-of-thinking token delimiter and appends the string"Wait"to the active reasoning trace. Appending"Wait"promptss1-32Bto double-check its derivation, catch subtle algebraic or logical errors (e.g., self-correcting an initial answer of2in Figure 3), and extrapolate AIME 2024 accuracy from 50.0% (no extrapolation) to 53.3% (2x "Wait") and 56.7% (up to6x "Wait", $f(7320) = 57\%$)!
| Test-Time Scaling Control Method & Model Variant | Compute Controllability (Control) | Average Scaling Slope (Scaling) | Peak AIME 2024 Accuracy (Performance) | MATH500 Accuracy (%) | GPQA Diamond Accuracy (%) | Empirical Failure Mode / Architectural Mechanism (arXiv:2501.19393v1) | ||
|---|---|---|---|---|---|---|---|---|
Budget Forcing (BF, s1-32B with "Wait") | 100% | +15 | 56.7% | 93.0% | 59.6% | Suppresses end-of-thinking token & appends "Wait" (2x/4x/6x); flattens beyond 6x into loops | ||
s1-32B without Extrapolation (1K SFT) | 100% (max cap) | — | 50.0% | 92.6% (93.0% @32k cap) | 56.6% (57.6% @32k cap) | Outperforms o1-preview (44.6% AIME24, 85.5% MATH500) using just 1,000 SFT traces | ||
Budget Forcing (2x without string / "Hmm" / "Alternatively") | 100% | Positive | 50.0% | 90.2% / 93.0% / 92.2% | 55.1% / 59.6% / 59.6% | Suppressing delimiter without "Wait" drops MATH500 to 90.2%; "Wait" yields highest AIME24 (53.3% @2x) | ||
Token-Conditional Control (TCC prompt only) | 40% | -24 | 40.0% | — | — | LLMs cannot reliably count tokens in-context; adding +BF restores 100% control & +13 slope | ||
Step-Conditional Control (SCC ~100-tok steps) | 60% | +3 (+6 w/ BF) | 36.7% | — | — | Model "hacks" step limits by packing more tokens into fewer steps or fewer tokens into many steps | ||
Class-Conditional Control (CCC short vs. long prompt) | 50% | +25 | 36.7% | — | — | Generic length instructions scale positively across 2 points (` | \mathcal{A} | =2`) but lack fine control |
Rejection Sampling (RS by trace length $\le L$) | 100% | -35 (Inverse!) | 40.0% | — | — | Shorter natural traces ($\le 3500\text{--}4000$ tokens, up to 655 tries) reflect immediate confidence; long natural traces reflect confusion & backtracking |
One of the most counterintuitive findings in arXiv:2501.19393v1 (Section 5.2, Table 3 & Figure 6) is that Rejection Sampling by generation length—repeatedly sampling at temperature $T=1$ until a generation naturally falls below a target token threshold ($3500, 4000, 5000, 8000, 16000$ tokens, requiring an average of $655, 97, 8, 3, 2, 1$ tries per problem)—exhibits a strong inverse scaling slope of $-35$! Why do naturally shorter traces outperform naturally longer traces from the same model, whereas forcing a trace to be longer via Budget Forcing ("Wait") improves accuracy (+15 slope)? Because a model's uninterrupted natural generation length is endogenous to whether it found the right path early: when the model immediately spots the correct algebraic identity, it finishes concisely within 3,500–4,000 tokens; when it starts down a flawed path, it flounders, questions itself, and rambles past 8,000 tokens. By contrast, Budget Forcing intervenes causally on a completed trace, forcing an otherwise finished derivation to execute an explicit verification pass!
Reference Implementation: Compute-Optimal Test-Time Scaling Router and Budget-Forcing Decoder
Below is a clean, production-grade Python reference module implementing the three core algorithmic primitives covered in this guide:
- Unbiased Combinatorial Coverage (
pass@k) and Exponentiated Power-Law Fitter (Large Language Monkeys,arXiv:2407.21787v1, Equations 1–3). - Difficulty-Adaptive Compute-Optimal Strategy Router and FLOPs-Matched Pretraining-vs-Inference Exchange Calculator (Snell et al.,
arXiv:2408.03314v1, Sections 3, 5, 6, and 7). - Sequential Budget-Forcing Controller (
s1-32B,arXiv:2501.19393v1, Section 3.1 & Section 3.2 Metrics) supporting both $a_{\max}$ early-exit token termination and $a_{\min}$"Wait"end-of-thinking suppression, alongside exactControl,Scaling, andPerformanceevaluators.
"""Reference architecture for LLM Test-Time Compute Scaling (2026).
Implements:
1. Unbiased pass@k coverage estimator (Chen et al. / Brown et al., arXiv:2407.21787)
2. Difficulty-binned Compute-Optimal Strategy Router & FLOPs Exchange Rate (Snell et al., arXiv:2408.03314)
3. Decoding-time Budget Forcing ("Wait" injection & early exit) + Control/Scaling metrics (Muennighoff et al., arXiv:2501.19393)
"""
from __future__ import annotations
from dataclasses import dataclass
from enum import IntEnum
import math
from typing import Callable, Dict, List, Mapping, Sequence, Tuple
import numpy as np
class DifficultyQuintile(IntEnum):
"""Five model-specific prompt difficulty quintiles (Snell et al., arXiv:2408.03314, Section 3.2)."""
BIN_1_EASIEST = 1
BIN_2_EASY = 2
BIN_3_MEDIUM = 3
BIN_4_HARD = 4
BIN_5_HARDEST = 5
@dataclass(frozen=True)
class ComputeOptimalAllocation:
"""Test-time compute allocation prescribed for a prompt difficulty bin and generation budget N."""
difficulty_bin: DifficultyQuintile
total_budget_n: int
verifier_search_method: str
beam_width_m: int
lookahead_steps_k: int
parallel_chains: int
sequential_revisions_per_chain: int
def unbiased_pass_at_k(num_samples_n: int, num_correct_c: int, k: int) -> float:
"""Compute unbiased pass@k coverage for a single problem (arXiv:2407.21787, Equation 1).
Args:
num_samples_n: Total candidate samples generated for the problem (N >= k).
num_correct_c: Number of correct samples C_i out of N.
k: Evaluated sample budget k.
Returns:
Unbiased estimate of 1 - C(N - C_i, k) / C(N, k).
"""
if k > num_samples_n:
raise ValueError(f"k ({k}) cannot exceed total samples N ({num_samples_n}).")
if num_samples_n - num_correct_c < k:
return 1.0
# Numerically stable product expansion: 1 - prod_{j=0}^{k-1} (N - C_i - j) / (N - j)
prob_all_wrong = 1.0
for j in range(k):
prob_all_wrong *= (num_samples_n - num_correct_c - j) / (num_samples_n - j)
return 1.0 - prob_all_wrong
def classify_difficulty_quintile(
prm_mean_last_step_score: float,
quintile_thresholds: Tuple[float, float, float, float] = (0.20, 0.40, 0.65, 0.85),
) -> DifficultyQuintile:
"""Assign a prompt to a model-predicted difficulty quintile from PRM value scores (arXiv:2408.03314).
Higher PRM expected reward-to-go corresponds to easier problems (Bin 1 = easiest, Bin 5 = hardest).
"""
t1, t2, t3, t4 = quintile_thresholds
if prm_mean_last_step_score >= t4:
return DifficultyQuintile.BIN_1_EASIEST
if prm_mean_last_step_score >= t3:
return DifficultyQuintile.BIN_2_EASY
if prm_mean_last_step_score >= t2:
return DifficultyQuintile.BIN_3_MEDIUM
if prm_mean_last_step_score >= t1:
return DifficultyQuintile.BIN_4_HARD
return DifficultyQuintile.BIN_5_HARDEST
def route_compute_optimal_strategy(
difficulty_bin: DifficultyQuintile,
budget_n: int,
) -> ComputeOptimalAllocation:
"""Select compute-optimal PRM search and sequential/parallel revision ratio (arXiv:2408.03314).
Reflects findings in Sections 5.3 & 6.2:
- Easy problems (Bins 1-2): Avoid high-budget PRM beam search over-optimization; favor Best-of-N
and 100% sequential revisions.
- Medium/Hard problems (Bins 3-4): Use PRM Beam Search (M=4) and balanced sqrt(N) parallel x
sqrt(N) sequential revision chains.
- Hardest problems (Bin 5): Maximize parallel exploration diversity with PRM beam search.
"""
if budget_n <= 0:
raise ValueError("Generation budget N must be positive.")
if difficulty_bin in (DifficultyQuintile.BIN_1_EASIEST, DifficultyQuintile.BIN_2_EASY):
search_method = "prm_beam_search" if budget_n <= 8 else "best_of_n_weighted"
beam_m = 4 if search_method == "prm_beam_search" else 1
parallel_chains = 1
seq_revisions = budget_n
elif difficulty_bin in (DifficultyQuintile.BIN_3_MEDIUM, DifficultyQuintile.BIN_4_HARD):
search_method = "prm_beam_search"
beam_m = 4
root_n = max(1, int(math.isqrt(budget_n)))
parallel_chains = root_n
seq_revisions = max(1, budget_n // root_n)
else:
search_method = "prm_beam_search"
beam_m = max(4, int(math.isqrt(budget_n)))
parallel_chains = max(1, budget_n // 2)
seq_revisions = max(1, budget_n // parallel_chains)
return ComputeOptimalAllocation(
difficulty_bin=difficulty_bin,
total_budget_n=budget_n,
verifier_search_method=search_method,
beam_width_m=beam_m,
lookahead_steps_k=0, # k=0 avoids lookahead compute penalty N*(k+1) and PRM exploitation
parallel_chains=parallel_chains,
sequential_revisions_per_chain=seq_revisions,
)
def pretraining_to_inference_flops_multiplier(
param_scale_factor_m: float,
inference_to_pretrain_token_ratio_r: float,
) -> float:
"""Compute the FLOPs-equivalent inference multiplier for a smaller model (arXiv:2408.03314, Section 7).
Given X = 6 * N * D_pretrain and Y = 2 * N * D_inference, matching a model with M times more
parameters allows multiplying the smaller model's inference compute by:
M + 3 * (D_pretrain / D_inference) * (M - 1) = M + 3 * (M - 1) / R
"""
if param_scale_factor_m < 1.0 or inference_to_pretrain_token_ratio_r <= 0.0:
raise ValueError("M must be >= 1.0 and R = D_inference / D_pretrain must be > 0.")
return param_scale_factor_m + (3.0 / inference_to_pretrain_token_ratio_r) * (param_scale_factor_m - 1.0)
def best_of_n_weighted_selection(
candidates: Sequence[Tuple[str, Sequence[float]]],
) -> Tuple[str, float]:
"""Select final answer by marginalizing PRM last-step scores across identical answers (arXiv:2408.03314).
Args:
candidates: Sequence of (extracted_final_answer, step_prm_scores) for each trajectory.
Returns:
Tuple of (winning_final_answer, total_marginalized_prm_score).
"""
answer_weights: Dict[str, float] = {}
for final_ans, step_scores in candidates:
if not step_scores:
continue
# Step-wise aggregation: use PRM prediction at the last step (Appendix E)
trajectory_score = float(step_scores[-1])
answer_weights[final_ans] = answer_weights.get(final_ans, 0.0) + trajectory_score
if not answer_weights:
raise ValueError("No valid scored candidates provided.")
best_answer = max(answer_weights.items(), key=lambda item: item[1])
return best_answer
@dataclass(frozen=True)
class BudgetForcingConfig:
"""Configuration for s1 decoding-time Budget Forcing (arXiv:2501.19393, Section 3.1)."""
min_thinking_tokens: int
max_thinking_tokens: int
max_wait_injections: int = 6
extrapolation_token: str = "Wait"
end_of_thinking_delimiter: str = "<|end_of_thought|>"
early_exit_suffix: str = "\nFinal Answer: "
def apply_budget_forcing_step(
current_thinking_trace: str,
current_token_count: int,
proposed_next_token: str,
wait_injections_used: int,
config: BudgetForcingConfig,
) -> Tuple[str, int, bool]:
"""Apply one decoding step of s1 Budget Forcing (arXiv:2501.19393, Section 3.1).
Returns:
Tuple of (updated_thinking_trace, updated_wait_injections_used, thinking_phase_terminated).
"""
# Rule I: Force maximum thinking token ceiling via early-exit delimiter + "Final Answer: "
if current_token_count >= config.max_thinking_tokens:
terminated_trace = (
current_thinking_trace
+ config.end_of_thinking_delimiter
+ config.early_exit_suffix
)
return terminated_trace, wait_injections_used, True
# Rule II: If model tries to emit end-of-thinking before min_thinking_tokens (or remaining wait quota),
# suppress the delimiter and append "Wait" to trigger self-verification and extrapolation.
if proposed_next_token == config.end_of_thinking_delimiter:
if (
current_token_count < config.min_thinking_tokens
and wait_injections_used < config.max_wait_injections
):
extended_trace = f"{current_thinking_trace}\n{config.extrapolation_token} "
return extended_trace, wait_injections_used + 1, False
return current_thinking_trace + config.end_of_thinking_delimiter, wait_injections_used, True
return current_thinking_trace + proposed_next_token, wait_injections_used, False
def evaluate_test_time_scaling_desiderata(
runs: Sequence[Tuple[int, float, int, int]],
) -> Dict[str, float]:
"""Compute Control, Scaling slope, and Performance metrics (arXiv:2501.19393, Section 3.2, Eqs 1-3).
Args:
runs: Sequence of (actual_thinking_tokens_a, accuracy_f_a, target_a_min, target_a_max).
Returns:
Dictionary with 'control_pct', 'scaling_slope_per_1k_tokens', and 'peak_performance'.
"""
if len(runs) < 2:
raise ValueError("At least two compute evaluation points are required.")
in_bounds = sum(1 for a, _, a_min, a_max in runs if a_min <= a <= a_max)
control_pct = 100.0 * (in_bounds / len(runs))
pairwise_slopes: List[float] = []
sorted_runs = sorted(runs, key=lambda item: item[0])
for i in range(len(sorted_runs)):
for j in range(i + 1, len(sorted_runs)):
a_i, f_i, _, _ = sorted_runs[i]
a_j, f_j, _, _ = sorted_runs[j]
if a_j > a_i:
pairwise_slopes.append((f_j - f_i) / (a_j - a_i))
avg_slope = float(np.mean(pairwise_slopes)) if pairwise_slopes else 0.0
peak_perf = max(f_a for _, f_a, _, _ in runs)
return {
"control_pct": control_pct,
"scaling_slope": avg_slope,
"peak_performance": peak_perf,
}Production Engineering Blueprint: Selecting an Inference-Time Scaling Topology in 2026
When architecting a production reasoning service or autonomous agent pipeline in 2026, engineering teams must match their test-time compute topology to verifier availability, prompt difficulty variance, and context-window limits:
- Verifiable Code Generation, Automated Bug Repair, and Formal Theorem Proving (
SWE-bench,Lean4, SQL/Compiler Loops): - Recommended Topology: Deploy Massively Parallel Repeated Sampling (Large Language Monkeys,arXiv:2407.21787) over a cost-efficient open-weight coder model (e.g.,DeepSeek-V2-Coder-InstructorQwen2.5-Coder-32B) paired with shared-prefix KV caching (SGLang RadixAttention) and an isolated sandboxed test runner. - Why: Because unit tests and proof checkers act as high-precision verifiers, exponential power-law coverage gains ($c \approx \exp(a k^{-b})$) translate directly into solve rate gains. Sampling $k = 5$ attempts from a 10x cheaper model beats single calls to frontier closed APIs at under one-third the dollar cost ($12 vs. $39–$51), and scaling to $k = 250$ lifts SWE-bench Lite from 15.9% to 56%. Always audit test harnesses for flaky tests (11.3% on SWE-bench Lite) by running deterministic ordering assertions. - Competition Mathematics, PhD-Level Science, and Long-Horizon Logic Without External Checkers (
AIME,MATH500,GPQA Diamond): - Recommended Topology: Combine 1,000-Sample Tri-Axial Reasoning SFT (s1K: Quality + Difficulty + MSC Diversity) with Decoding-Time Budget Forcing ("Wait"injection) (arXiv:2501.19393), and layer PRM-Guided Tree Search (REBASEor PRM Beam Search, $M=4$) on top when scaling beyond a single context window (arXiv:2501.19393, Figure 7;arXiv:2408.03314). - Why: Sequential Budget Forcing provides 100% token budget controllability and a positive scaling slope (+15), extrapolatings1-32Bon AIME 2024 from 50.0% to 56.7%. Because sequential"Wait"forcing eventually flattens after ~6 injections or hits the context-window ceiling (e.g., 12 of 30 AIME24 questions exceed context limits at 512 steps in Figure 7 ofarXiv:2501.19393), combining sequential long-CoT with 16 parallel REBASE process-reward-model tree trajectories scales accuracy past the single-context-window ceiling. - Heterogeneous Traffic Workloads with Mixed Easy and Hard User Queries: - Recommended Topology: Implement Snell et al.'s Prompt-Difficulty Compute-Optimal Router (
arXiv:2408.03314). - Why: Estimate prompt difficulty from the base LLM's fast initial verifier score and route Bins 1–2 (Easy) to low-budget sequential revisions or Best-of-N (preventing PRM beam-search reward hacking), while routing Bins 3–4 (Medium/Hard) to PRM Beam Search ($M = 4, k = 0$) or balanced $\sqrt{N} \times \sqrt{N}$ parallel-sequential revision trees—saving up to 4x test-time compute and matching a 14x larger model on low-to-medium inference loads ($R \le 0.79$). - Multi-Constraint Text Generation, Code Refactoring, and Open-Ended Planning: - Recommended Topology: Use Self-Refine (
arXiv:2303.17651) with explicit actionable + specific feedback prompts ($t = 3\text{--}4$ iterations) for multi-aspect refinement (yielding +20% to +49.2% preference gains), or Tree of Thoughts (ToT-BFS/ToT-DFS,arXiv:2305.10601) when early token choices create irreversible dead ends requiring lookahead valuation and backtracking.
Frequently Asked Questions (FAQ) on Test-Time Compute Scaling
1. When can test-time compute on a smaller LLM outperform pre-training a 14x larger LLM at equal total FLOPs? As proved by Snell et al. (arXiv:2408.03314v1, Section 7 & Figure 9), using the pre-training approximation $X = 6 N D_{\text{pretrain}}$ and inference approximation $Y = 2 N D_{\text{inference}}$, scaling model parameters by $M \approx 14\times$ is FLOPs-equivalent to multiplying the smaller model's test-time compute by $M + 3(D_{\text{pretrain}}/D_{\text{inference}})(M - 1)$. When the inference-to-pretraining token ratio $R = D_{\text{inference}}/D_{\text{pretrain}}$ is small or moderate ($R = 0.16$ or $R = 0.79$, such as in synthetic data self-improvement pipelines or bounded-traffic deployments) and the prompt lies in Difficulty Bins 1 through 3 (and often Bin 4) where the base model has non-trivial baseline competence, compute-optimal test-time scaling on PaLM 2-S* outperforms greedy decoding from a ~14x larger pretrained model. Only when $R \gg 1$ ($R = 22$) or on out-of-reach Bin 5 problems does pre-training more parameters dominate.
2. Why does PRM Beam Search or Lookahead Search degrade accuracy on easy questions at large test-time compute budgets? In Section 5.3 and Figure 3 (right) of arXiv:2408.03314v1, Snell et al. show that on Easy Questions (Difficulty Bins 1 and 2), the base LLM already generates correct solutions with high probability. Applying an aggressive step-level optimizer like Beam Search or Lookahead Search at high generation budgets ($N = 64$ or $256$) over-optimizes against spurious correlations in the frozen Process Reward Model (PRM)—causing the search to exploit reward hacks such as truncated 1–2 step answers or repetitive boilerplate lines at the end of a proof (Appendix M, Figure 29). Furthermore, Lookahead Search with rollout depth $k$ costs $N \times (k + 1)$ samples per step, burning compute on deterministic rollouts that amplify PRM exploitation.
3. Why do Majority Voting and Outcome Reward Models plateau around 100 samples in Large Language Monkeys (arXiv:2407.21787)? In Section 4.1 and Figure 7 of Large Language Monkeys (arXiv:2407.21787v1), oracle coverage on MATH with Llama-3-8B-Instruct continues rising log-linearly from 79.8% at 100 samples to 95.3% at 10,000 samples, yet Majority Voting, Best-of-N with ArmoRM-Llama3-8B-v0.1, and RM-weighted majority voting all saturate around 100 samples (moving only from 38.7% to 39.8%). For Majority Voting, once $k \approx 100$, the empirical vote proportions converge to the model's stationary output distribution; on hard problems where the correct solution is sampled with $\le 1\%$ probability (Figure 8), the correct answer remains a small minority no matter how many thousands of samples are drawn. Meanwhile, off-the-shelf outcome reward models struggle to separate rare, logically valid "needle-in-a-haystack" derivations from high-probability distractor errors.
4. Why does off-the-shelf Self-Refine improve dialogue and code optimization by up to 49.2% but gain only 0% to 0.2% on GSM8K math? As documented by Madaan et al. (arXiv:2303.17651v2, Table 1 & Section 3.3), tasks with multi-faceted objectives or explicit constraint checklists—such as Dialogue Response (+49.2% on GPT-4), Sentiment Reversal (+32.4%), Constrained Generation with 20–30 keywords (+30.0%), Code Readability (+28.8%), and Code Optimization (+8.7%) —allow the same LLM to easily spot missing keywords or $\mathcal{O}(n^6)$ nested loops in its feedback step. By contrast, in mathematical reasoning (GSM8K), a single subtle arithmetic slip inside an otherwise coherent derivation fools the off-the-shelf critic: on 94% of GSM8K instances, ChatGPT's self-feedback declares "everything looks good", terminating refinement prematurely. Moreover, when finetuned revision models (arXiv:2408.03314v1, Section 6.1) are forced to revise without a verifier, they convert ~38% of already-correct answers back into incorrect ones.
5. How did s1-32B outperform OpenAI o1-preview on competition math with only 1,000 SFT samples and 26 minutes of training? In arXiv:2501.19393v1 (Sections 2–5), Muennighoff et al. filtered 59,029 distilled reasoning traces down to 1,000 examples (s1K) by strictly enforcing Quality (removing formatting/API errors), Difficulty (eliminating any question solvable by Qwen2.5-7B-Instruct or Qwen2.5-32B-Instruct and weighting toward longer reasoning traces), and Diversity (uniform domain sampling across 50 AMS Mathematics Subject Classification domains). Because the base Qwen2.5-32B-Instruct model was already pretrained on trillions of tokens containing raw mathematical derivations, 26 minutes of SFT on 16 H100 GPUs (7 H100 GPU hours) activates long-CoT formatting and self-reflection (50.0% AIME24, 92.6% MATH500). Adding decoding-time Budget Forcing (suppressing the end-of-thinking token delimiter and appending "Wait" up to 6 times) forces the model to double-check and self-correct its steps, scaling AIME 2024 accuracy to 56.7% (93.0% MATH500, 59.6% GPQA Diamond) versus o1-preview's 44.6% AIME24 and 85.5% MATH500.
6. Why does filtering for longer natural generations via Rejection Sampling cause inverse test-time scaling (-35 slope)? In Section 5.2 and Figure 6 of arXiv:2501.19393v1, rejection-sampling temperature-1 generations from s1-32B to match increasing token length ceilings ($\le 3500, 4000, 5000, 8000, 16000$ thinking tokens) produces an inverse scaling slope of -35. Qualitative inspection (Appendix D.2) reveals that when s1-32B naturally finishes within $\le 4,000$ tokens, it recognized the correct mathematical approach immediately at the start of the trace. Conversely, naturally long traces ($\ge 8,000$ tokens) occur when the model takes a wrong turn early and spends thousands of tokens backtracking in confusion. Budget Forcing avoids this selection bias by taking a trace that naturally concluded and causally injecting "Wait" to run an explicit post-derivation audit.
Primary Sources & Technical References
- Snell, C., Lee, J., Xu, K., & Kumar, A. (2024). Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters. UC Berkeley & Google DeepMind, arXiv:2408.03314v1. https://arxiv.org/abs/2408.03314 and https://arxiv.org/html/2408.03314v1
- 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. Stanford University, University of Oxford & Google DeepMind, arXiv:2407.21787v1. https://arxiv.org/abs/2407.21787 and https://arxiv.org/html/2407.21787v1
- 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. Stanford University, University of Washington & Allen Institute for AI, arXiv:2501.19393v1. https://arxiv.org/abs/2501.19393 and https://arxiv.org/html/2501.19393v1
- 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. Advances in Neural Information Processing Systems (NeurIPS 2023), arXiv:2305.10601v2. https://arxiv.org/abs/2305.10601 and https://arxiv.org/html/2305.10601v2
- 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. International Conference on Learning Representations (ICLR 2023), arXiv:2203.11171v4. https://arxiv.org/abs/2203.11171 and https://ar5iv.labs.arxiv.org/html/2203.11171
- Madaan, A., Tandon, N., Gupta, P., Hallinan, S., Gao, L., Wiegreffe, S., Alon, U., Dziri, N., Prabhumoye, S., Yang, Y., Gupta, S., Majumder, B. P., Hermann, K., Welleck, S., Yazdanbakhsh, A., & Clark, P. (2023). Self-Refine: Iterative Refinement with Self-Feedback. Advances in Neural Information Processing Systems (NeurIPS 2023), arXiv:2303.17651v2. https://arxiv.org/abs/2303.17651 and https://arxiv.org/html/2303.17651v2