betaFeedback

WorksComputer Science

Adaptive Replay Refinement: Allocating Test-Time Compute Between Revision and Resampling

Abstract

Test-time scaling allocates additional inference compute to refining existing solutions or generating new ones. This raises a fundamental question: Should I keep improving this solution, or stop working on it and try a completely new solution? Existing methods make this decision using fixed refinement schedules, self-verification judgments, or learned controllers, which can waste compute or rely on signals that may be incorrect or require additional training. We introduce Adaptive Replay Refinement (ARR), a training-free method that detects when a stationary revision reaches a fixed point and reallocates the released compute to a new independent sample; replay decoding treats the current solution as a draft and verifies unchanged tokens in parallel, enabling efficient fixed-point detection. Across seven models from five families and seven benchmarks, ARR matches majority voting on three of five mathematical reasoning benchmarks at equal compute, while reducing critical-path serial passes by up to 2.4 times. On MATH500, ARR achieves 84.6% accuracy with only 41% of the serial passes required by majority voting. These results demonstrate that detecting refinement exhaustion enables adaptive reallocation from revision to independent sampling, improving inference efficiency while highlighting the limits of self-revision. Code is available at https://github.com/AhsanBilal7/adaptive_refine.

Introduction

Large language models can improve reasoning performance by using more computation at inference time [3] (Snell et al. 2024; Wu et al. 2025). Existing approaches primarily spend this compute in two ways: Parallel methods generate multiple independent solutions and aggregate their answers, typically through majority voting

(Wang et al., 2023), while sequential methods repeatedly revise a single solution, often through separate feedback and refinement stages (Madaan et al., 2023; Shinn et al., 2023). Recent approaches combine these strategies by sampling several solutions, refining them, and aggregating the resulting answers [6] (Snell et al. 2024).

Combining sampling and refinement creates a fundamental allocation problem: When should additional compute try to improve an existing solution, and when should it generate a new one? Prior work typically relies on one of three mechanisms. Fixed refinement schedules apply a predetermined number of revision rounds, which can waste compute after further refinement stops changing a solution and often require validation data to choose the schedule (Madaan et al., 2023). Self-verification methods stop when the model judges its own solution to be correct [6] (Samanta et al. 2026), but such judgments can be unreliable without external feedback (Huang et al., 2024; Stechly et al., 2024; Kamoi et al., 2024). Learned or score-based controllers instead use trained verifiers, predicted difficulty, or confidence estimates [13] (Snell et al. 2024; Wang et al. 2026), introducing additional training, calibration, or threshold selection. These approaches also incur unnecessary sequential computation because revision commonly regenerates most of a solution even when only a small portion changes. Figure 1 shows that revision exhausts after few steps and that a fixed schedule wastes the rest of its compute.

Figure 1. Revision on MATH500 with Qwen2.5-Math-7B-Instruct. (a) Fraction of the four initial roots of ARRDepthARR_{\mathrm{Depth}} (B=800B=800) at a fixed point: 35% after one revision and 75% by budget exhaustion. (b) Fraction of Self-Refine compute wasted on already converged solutions.

We address this problem by detecting when a deterministic and stationary revision procedure can no longer change a solution. Once a revision exactly reproduces its input, further applications of the same procedure are redundant. We use this event as an exact signal that refinement of that solution has been exhausted. We introduce Adaptive Replay Refinement (ARR), a training-free method that uses replay decoding to efficiently detect when refinement reaches a fixed point and reallocates the released compute to a new independent sample (Figure 2). ARR therefore adapts refinement depth and sampling breadth directly during inference, without requiring a tuned refinement depth, correctness threshold, critic, or learned controller. While draft verification, fixed-point iteration, and training-free self-refinement have each been studied previously (Sun et al., 2021; Leviathan et al., 2023; Santilli et al., 2023; Madaan et al., 2023), ARR uses these components to detect exhausted refinement and redirect compute to new attempts; a fixed point signals only that further revision is redundant, not that the solution is correct. Table 8 in Appendix § 16 compares this stop signal with those of the closest methods, and also discusses sequential scaling, efficient reasoning, and fixed points in sequence models.

Figure 2. Overview of ARR. (a) Replay decoding accelerates revision. (b) Exact reproduction identifies a fixed point and retires the root. (c) Released compute is reallocated to new roots until the budget is exhausted.

MethodTraining-freeNo step structureReleased compute → new attemptsSignal that stops or redirects refinement
Self-Refine ((Madaan et al., 2023))✓✓✗stop word in self-feedback, or iteration limit
SETS ([6])✓✓✗self-verification verdict “correct”, or round limit
Thought-ICS ((Samanta et al., 2026))✓✗✗self-localization of the first incorrect thought
Adaptive-Consistency ([1])✓✓✗agreement of the vote distribution (stops sampling)
ConMA ((Wang et al., 2026))✓✓✓token-probability confidence and answer frequency
DeepConf ([13])✓✓✗token-confidence threshold on traces
Compute-optimal ((Snell et al., 2024))✗✓✓learned verifier and predicted difficulty
SCoRe ((Kumar et al., 2024))✗✓✗fixed number of trained correction turns
ARR (ours)✓✓✓exact fixed point Fx(y)=yF_x(y)=y, found during decoding

Table 8. Signals that end or redirect refinement in the closest methods. The signal of ARR is an exact property of a deterministic operator, not a verdict or a score. ARR gets the signal with parallel draft verification, which comes from prior work (Sun et al., 2021; Leviathan et al., 2023; Saxena, 2023).

Contributions. First, we formulate iterative refinement as an adaptive allocation problem between improving existing solutions and generating new ones, and introduce a training-free rule that reallocates compute once refinement is exhausted. Second, we establish that replay decoding preserves the output of ordinary greedy revision, making exact reproduction a valid fixed-point stopping signal. Third, we introduce a compute-matched evaluation protocol that accounts for all processed computation and includes controlled variants that isolate the effect of each component. Fourth, across seven models from five model families and seven benchmarks, ARR matches majority voting on three of five mathematical reasoning benchmarks at equal compute while shortening the serial critical path by up to 2.4 times; our analysis also identifies two settings in which the underlying revision procedure itself is ineffective.

Problem Setup

Let pθp_{\theta} be a frozen causal language model over vocabulary V\mathcal{V}, let xx be a question, and let Y⊂V∗\mathcal{Y} \subset\mathcal{V}^{*} denote the set of complete solutions yy that terminate with ε\varepsilon within the output token cap Tmax⁡T_{\max}. Two solutions are equal only if they are identical as token sequences. For a prompt uu, the greedy map Gθ\mathcal{G}_{\theta} returns z=Gθ(u)z = \mathcal{G}_{\theta}(u) with

zt=arg⁡max⁡v∈V pθ(v∣u,z<t),(1)z_t = \underset{v \in\mathcal{V}}{\arg\max}\ p_{\theta}(v \mid u, z_{<t}), \tag*{(1)}

which stops at ε\varepsilon or after Tmax⁡T_{\max} tokens. A sample is y∼pθτ(⋅∣σ(x))y \sim p_{\theta}^{\tau}(\cdot\mid\sigma(x)), where σ(x)\sigma(x) is the solve prompt and pθτp_{\theta}^{\tau} is temperature-τ\tau nucleus sampling. The extractor ϕ:Y→A\phi: \mathcal{Y} \to\mathcal{A} returns the final answer of a solution, and a∗(x)a^{*}(x) is the correct answer.

Allocating Test-Time Compute

A root rr is one sample yr(0)∼pθτ(⋅∣σ(x))y_{r}^{(0)} \sim p_{\theta}^{\tau}(\cdot\mid\sigma(x)) together with its revisions yr(1),yr(2),…y_{r}^{(1)}, y_{r}^{(2)}, \ldots, and yˉr\bar{y}_{r} is its last complete solution. A method receives a per-question budget BB in FLOPs. At each step, its allocation policy π\pi revises an active root or samples a new root. The policy π\pi allocates the budget BB between revising existing roots and sampling new ones, stopping when no further action fits. The final prediction is the majority vote over complete roots, a^π(x)=arg⁡max⁡a∈A∑r1[ϕ(yˉr)=a]\hat{a}_{\pi}(x) = \underset{a \in\mathcal{A}}{\arg\max} \sum_{r} \mathbb{1}[\phi(\bar{y}_{r}) = a]. Thus, the objective is

max⁡π Pr⁡[a^π(x)=a⋆(x)]s.t.Cπ(x)≤B.(2)\max_{\pi}\ \Pr\left[\hat{a}_{\pi}(x) = a^{\star}(x)\right] \quad\text{s.t.} \quad C_{\pi}(x) \le B. \tag*{(2)}

Since a⋆(x)a^{\star}(x) is unknown at inference time, π\pi must rely on observable signals; ARR uses the fixed-point condition Fx(y)=yF_x(y) = y, which holds when the deterministic revision operator exactly reproduces its input, implying that further applications of the same operator leave the solution unchanged.

Stationary Revision Operator

Let ρ(x,y)\rho(x, y) be a fixed revision prompt containing the question xx and solution yy, and define the stationary revision operator as Fx(y)=Gθ(ρ(x,y))F_x(y) = G_{\theta}(\rho(x, y)). The prompt asks the model to correct any errors and their downstream consequences while preserving correct content, and to reproduce yy verbatim when no correction is needed (Appendix § 12). ARR relies on three properties of FxF_x: it uses a single call that combines critique and correction into one revised solution ([6]); it is stationary because ρ\rho depends only on (x,y)(x, y) and contains no round index, revision history, or other roots, unlike prompts that change across rounds ((Madaan et al., 2023)); and it is deterministic under greedy decoding, making Fx(y)=yF_x(y) = y well defined and confining diversity to sampled roots, consistent with evidence that LLM representations encode future response attributes before generation ([11]).

Adaptive Replay Refinement

ARR is a training-free policy for Equation (2). It revises each root with FxF_x to a fixed point and then gives the slot of the root to a new sample as shown in Figure 2. Replay decoding computes Fx(y)F_x(y) with yy as the draft, so the fixed-point test costs few serial passes (§ 3.1 and § 3.2), and this test drives the allocation (§ 3.3). ARR has three settings: the width NN, i.e., the number of concurrently active roots, the budget BB, and the block size WW. Algorithms 1 and 2 in Appendix § 8 give the pseudocode.

Replay Decoding

A revision usually reproduces a long prefix of its input, but greedy decoding spends one serial forward pass on each reproduced token. Replay decoding uses the input yy as a draft and verifies up to WW draft positions in one pass.

Block verification. Let u=ρ(x,y)u = \rho(x, y), and assume that the committed output agrees with the draft, z1:t=y1:tz_{1:t} = y_{1:t}. Replay takes the next m=min⁡(W−1,∣y∣−t)m = \min(W - 1, \lvert y \rvert- t) draft tokens and runs one causal pass on (zt,yt+1,…,yt+m)(z_t, y_{t+1}, \ldots, y_{t+m}), which gives, for j=1,…,m+1j = 1, \ldots, m+1, the greedy predictions

z^t+j=arg⁡max⁡v∈V pθ(v∣u,y1:t+j−1).(3)\hat{z}_{t+j} = \underset{v \in\mathcal{V}}{\arg\max}\ p_{\theta}(v \mid u, y_{1:t+j-1}). \tag*{(3)}

Replay accepts the longest prefix of the block on which the predictions agree with the draft, of length λ=max⁡{i≤m:z^t+j=yt+j ∀j≤i}\lambda= \max\{i \le m : \hat{z}_{t+j} = y_{t+j}\ \forall j \le i\}. It appends yt+1:t+λy_{t+1:t+\lambda} and the model token z^t+λ+1\hat{z}_{t+\lambda+1} to zz, and it discards the cache of the rejected positions. If z^t+λ+1=yt+λ+1\hat{z}_{t+\lambda+1} = y_{t+\lambda+1}, the output is still on the draft, and replay verifies the next block. Otherwise, the revision left the draft, and replay decodes the rest with Equation (1).

Design choices. Replay verifies only a contiguous draft prefix, since tokens beyond the first mismatch are conditioned on an invalid prefix. Unlike aggressive and prompt lookup decoding, which may realign after mismatches ((Sun et al., 2021; Saxena, 2023)) (§ 4.1), replay switches immediately to standard greedy decoding, preserving exact equivalence to FxF_x while incurring at most one failed block per revision. Thus, replay verifies the existing solution against a new revision, and when the entire draft is accepted without changes, ARR detects a fixed point and reallocates compute to a new sample.

Exact Fixed-Point Detection

Let F~x,W(y)\tilde{F}_{x,W}(y) be the output of replay decoding. Replay changes only how the revision is computed, not its output: under deterministic argmax decoding with fixed tie-breaking, F~x,W(y)=Fx(y)\tilde{F}_{x,W}(y) = F_x(y) for every y∈Yy \in\mathcal{Y} and W≥1W \ge1, since each verified token matches the greedy continuation in Equation (1). Because ρ\rho depends only on (x,y)(x, y) and greedy decoding is deterministic, F~x,W(y)=y\tilde{F}_{x,W}(y) = y implies Fxk(y)=yF_x^k(y) = y for all k≥1k \ge1. Thus, accepting the entire draft, including ϵ\epsilon, exactly identifies an exhausted revision, while any disagreement implies Fx(y)≠yF_x(y) \ne y. Appendix § 14 provides the implementation details and backend validation across four architectures.

Serial cost. Let z=Fx(y)z = F_x(y), and let ℓ\ell be the length of the longest common prefix of zz and yy. Greedy decoding uses 1+∣z∣1 + |z| serial passes. Replay uses about 1+⌈ℓ/W⌉+(∣z∣−ℓ)1+\lceil\ell/W\rceil+(|z|-\ell), because it verifies the reproduced prefix in blocks and decodes only the changed suffix token by token. A fixed point with ∣z∣=512|z| = 512 and W=32W = 32 thus takes 17 passes instead of 513. The processed positions, and thus the FLOPs, stay almost the same, because a revision discards at most W−1W-1 positions. The saving is in serial depth, which sets the latency.

Fixed-Point Replacement

ARR starts with NN roots, one for each slot. Let z=F~x,W(yr(k))z = \widetilde{F}_{x,W}(y_r^{(k)}) be the revision of an active root rr at depth kk. ARR applies

yr(k+1)=z,z∈Y∖{yr(k)},yˉr=yr(k),R←R∪{r′},z=yr(k),yˉr=yr(k),z∉Y,(4)\begin{aligned} y_r^{(k+1)} &= z, && z \in\mathcal{Y} \setminus\{y_r^{(k)}\},\\ \bar{y}_r &= y_r^{(k)},\quad\mathcal{R} \leftarrow\mathcal{R} \cup\{r'\}, && z = y_r^{(k)},\\ \bar{y}_r &= y_r^{(k)}, && z \notin\mathcal{Y}, \tag*{(4)} \end{aligned}

where R\mathcal{R} is the set of roots and r′r' is a new root, sampled from σ(x)\sigma(x), that takes the slot of rr. In the first case, the solution still changes, and ARR revises it again. In the second case, yr(k)y_r^{(k)} is a fixed point (§ 3.2): its answer becomes the final vote of the root, and the slot samples a new root if a complete sample still fits in BB. In the third case, Tmax⁡T_{\max} or the budget truncated the revision: the root keeps its last complete solution, and ARR does not refill the slot.

Equation (4) is the full allocation policy, with no depth limit, threshold, score, or learned parameter. A new root does not observe the retained answers, making it an independent attempt; ARR returns the majority answer a^π(x)\hat{a}_{\pi}(x) of § 2.1, with Appendix § 13 illustrating replay and replacement through a worked example.

Compute Accounting

We use a single FLOP accounting for all methods. The total cost of a method on question xx is the sum of the FLOPs of every processed token position, Cπ(x)=∑i∈Pπ(x)κ(ci)C_{\pi}(x) = \sum_{i\in P_{\pi}(x)} \kappa(c_i), where κ(ci)\kappa(c_i) is the FLOP cost of processing position ii when it attends to cic_i cached keys (Appendix § 10). This accounting includes all computation: prompt prefills, verified draft tokens, discarded verification work, decoded tokens, and truncated calls. Thus, no replay or revision computation is treated as free. We separately measure latency by the number of serial forward passes SS on the critical path of each question.

Experiments

We describe the setup in § 4.1, present the main results in § 4.2, analyze when revision should receive compute in § 4.3, analyze individual components in § 4.4, evaluate generality across models in § 4.5, and examine failure modes in § 4.6.

Setup

Benchmarks. We evaluate on five mathematical reasoning benchmarks with exact-answer scoring: MATH500 (Hendrycks et al., 2021) (500 problems), AIME (30 problems per edition), AMC (40 problems), and the 674 English text-only competition mathematics problems from OlympiadBench ([16]). We include GSM8K ([9]) (1,319 problems) as a saturated control and evaluate generalization beyond mathematics on LiveBench reasoning tasks (White et al., 2025), comprising web of lies, zebra puzzles, and spatial reasoning (50 problems each). Appendix § 9 details answer extraction and scoring.

Models. The primary model is Qwen2.5-Math-7B-Instruct (Yang et al., 2024). For breadth, we evaluate Qwen3-8B (Yang et al., 2025a), Ministral-8B-Instruct-2410 (Mistral AI Team, 2024), Gemma-4-E4B-it ([14]), and Qwen3.5-9B and 2B ([14]). These models span multiple families, scales, and decoding-state architectures, including full, sliding-window, and hybrid linear attention, testing whether replay-based fixed-point detection generalizes across inference backends rather than a specific cache design. For the 7–8B models, we use budgets of B∈{200,400,800}B \in\{200, 400, 800\} TFLOPs; for models with longer generations, budgets are scaled to preserve comparable sampling capacity across budget levels (Appendix § 10 converts each budget to a number of samples), with FLOPs computed using the common FLOP accounting in Appendix § 10. We additionally evaluate Qwen2.5-7B-Instruct (Yang et al., 2025b) on LiveBench.

Compared methods. We select baselines spanning independent sampling, fixed-depth and stochastic revision, explicit self-verification, and confidence-based allocation, alongside controlled ARR variants that isolate decoding and root replacement. All methods use the same FLOP accounting, Tmax⁡T_{\max}, and answer extractor ϕ\phi; root-based methods additionally share N=4N=4 initial roots and majority aggregation, while ConMA retains its group-based selection procedure (Table 1, Appendix § 11). Majority Voting (Wang et al., 2023) spends the entire budget on independent samples from σ(x)\sigma(x), providing a pure-sampling baseline for evaluating the benefit of revision. ARRAR_{\mathrm{AR}} and ARRPLD_{\mathrm{PLD}} retain ARR’s allocation rule but compute FxF_x with autoregressive greedy decoding and prompt lookup decoding (Saxena, 2023), respectively, isolating the effect of replay from the underlying allocation policy; their single revisions are equivalent to ARR’s under § 3.2, while full runs can differ because of decoding cost and scheduling (Appendix § 11). ARRDepth_{\mathrm{Depth}} removes root replacement from Equation (4) to isolate the effect of reallocating exhausted depth to breadth, while Self-Refine (Madaan et al., 2023) applies FxF_x for a fixed D=4D=4 revisions, providing an iteration-limited baseline for assessing redundant refinement. SETS [6] replaces FxF_x with a two-stage critique-and-correction update, FxvcF_x^{\mathrm{vc}}, while keeping ARR’s replacement rule, isolating the effect of explicit self-verification on revision quality. Sequential Revision (Snell et al., 2024) repeatedly samples a non-stationary continuation from ρcont(x,yr(k),k)\rho_{\mathrm{cont}}(x,y_r^{(k)},k) until the budget is exhausted, contrasting stochastic, depth-dependent revision with ARR’s deterministic stationary operator. ConMA (Wang et al., 2026) is a confidence-based controller: it samples groups of trajectories, keeps the kernel of answers with the highest token-level confidence, and re-samples or asks a multiple-choice question until one answer remains, providing an adaptive alternative based on confidence rather than exact fixed-point detection (Appendix § 11). We fix N=4N=4 for root-based methods and W=32W=32 for ARR’s replay decoder across models without tuning; replay exactness (§ 3.2) ensures that WW affects decoding speed but not revision output.

MethodUpdate of a rootDecoding of the updateExplicit verifierA root stops whenSlot of a stopped root
ARRFx(y)F_x(y)replay (W=32W=32)noFx(y)=yF_x(y)=y or Fx(y)∉YF_x(y)\notin\mathcal{Y}new root
ARRAR_{\mathrm{AR}}Fx(y)F_x(y)autoregressive greedynosame as ARRnew root
ARRPLD_{\mathrm{PLD}}Fx(y)F_x(y)prompt lookupnosame as ARRnew root
ARRDepth_{\mathrm{Depth}}Fx(y)F_x(y)replaynosame as ARRnot reused
Self-RefineFx(y)F_x(y)autoregressive greedynoafter D=4D=4 revisionsnot reused
SETSFxVC(y)F_x^{\mathrm{VC}}(y)autoregressive greedyyesFxVC(y)=yF_x^{\mathrm{VC}}(y)=y or truncatednew root
Sequential Revisionsample from ρcont(x,y,k)\rho_{\mathrm{cont}}(x,y,k) (τ=0.7\tau=0.7)autoregressive samplingnobudget ends-
Majority Votingnone (new sample)autoregressive samplingnoat oncenew sample
ConMAnone (groups of samples)autoregressive samplingconfidence scoreone answer remains-

Table 1. Compared methods. The rows from ARRAR_{\mathrm{AR}} to SETS change one component of ARR each.

Metrics. We report accuracy, mean TFLOPs spent, and median serial passes SS per question, with 95% bootstrap confidence intervals computed over question-paired differences relative to ARR. All experiments are run with multiple random seeds (three to five per setting), and all reported results are averaged over seeds (Table 2: paired seeds only). Using matched initial roots, we define the net repair of FxF_x as the difference between incorrect-to-correct and correct-to-incorrect answer changes, normalized by the number of complete revisions. Appendix § 14 details the mechanism statistics, decoder, and hardware.

BenchmarkBBARRAnswerOnceMajority VotingΔ\DeltaRootsPasses
MATH50020081.681.681.883.2+0.0 [−1.1, +1.2]5.8 / 9.31.20
MATH50040083.883.083.483.2−0.8 [−2.4, +0.8]9.5 / 19.11.19
MATH50080084.084.684.484.0+0.6 [−0.8, +1.8]16.1 / 38.51.16
OlympiadBench20044.045.044.046.4+1.0 [−0.7, +2.7]5.2 / 7.01.14
OlympiadBench40045.746.947.648.1+1.2 [−1.2, +3.6]8.2 / 14.01.19
OlympiadBench80047.649.948.249.9+2.2 [+0.3, +4.2]13.3 / 27.81.18
AMC2320068.068.067.569.5+0.0 [−5.5, +5.5]5.0 / 7.01.15
AMC2340072.568.072.573.0−4.5 [−9.5, −0.5]7.7 / 14.21.18
AMC2380072.073.071.571.0+1.0 [−5.0, +7.5]12.8 / 28.31.23
AIME2420012.714.016.712.7+1.3 [−1.3, +4.7]5.5 / 6.61.06
AIME2440018.014.017.315.3−4.0 [−10.0, +0.7]8.1 / 12.91.06
AIME2480018.717.317.318.7−1.3 [−4.7, +2.0]13.1 / 24.91.09
AIME2520014.717.318.019.3+2.7 [−1.3, +6.7]5.4 / 6.01.08
AIME2540015.322.020.019.3+6.7 [+2.0, +11.3]7.7 / 11.51.13
AIME2580018.022.021.325.3+4.0 [−2.0, +10.7]12.5 / 22.61.14
GSM8K5094.294.394.394.3+0.1 [−0.5, +0.7]4.0 / 4.00.98
GSM8K10094.094.394.594.6+0.3 [−0.4, +1.0]4.2 / 6.31.37
GSM8K20094.595.395.595.2+0.8 [+0.1, +1.5]5.9 / 13.81.29

Table 2. Stopping rules with the replacement of ARR for Qwen2.5-Math-7B-Instruct. Answer: retire a root when its extracted answer does not change; Once: retire a root after one revision. Δ\Delta: Answer − ARR with a 95% paired CI. Roots: roots per question of ARR / Answer. Passes: serial passes of Answer / ARR. All columns use the seeds of the stopping-rule runs, so Δ\Delta is paired. On MATH500, OlympiadBench, and GSM8K, these are a subset of the main-run seeds, so ARR and Majority Voting differ from the all-seed means of Figure 6 (e.g., 84.0% vs. 84.6% on MATH500 at B=800B=800). In all tables, blue marks the best value and red the second-best value.

Main Results

ARR gives more accuracy for each serial pass. Figure 3 shows accuracy against the median number of serial passes on the critical path. This number sets the latency of a question. On MATH500, AMC23, and AIME24, the curve of ARR is above the curves of ARRAR_{\mathrm{AR}}, SETS, and Majority Voting for most of the range. For example, ARR gets the best accuracy of Majority Voting on MATH500 (84.6%) with only 41% of the serial passes of Majority Voting. On OlympiadBench, the curves of ARR and Majority Voting are almost the same, and on AIME25 and GSM8K, Majority Voting is better.

Figure 3. Accuracy against median critical-path serial passes (Qwen2.5-Math-7B-Instruct); each point is one budget.

At equal FLOPs, ARR matches majority voting on three of five math benchmarks. At the largest budget, ARR and Majority Voting have the same accuracy within noise on MATH500, AMC23, and AIME24 (Figure 6, Appendix § 15). On OlympiadBench and AIME25, Majority Voting is better by up to 7.3 points. The cause is the number of votes. Majority Voting spends all of the budget on independent samples, but ARR also spends compute on revisions and thus collects approximately six times fewer votes (Table 5). More votes help most when revision repairs few answers (§ 4.3). All other methods that revise get lower accuracy, and ARRDepth_{\mathrm{Depth}} and Self-Refine also spend fewer FLOPs (Figure 7).

Figure 6. Accuracy against the FLOP budget BB (Qwen2.5-Math-7B-Instruct). Error bars show the standard deviation over seeds.

Figure 7. Compute and accuracy over all settings: (a) TFLOPs used, (b) serial passes relative to ARR, and (c) accuracy difference from ARR.

MethodTFRootsFPW→CC→W
ARR78916.2.23663357
ARR_AR78815.9.22666374
ARR_PLD79713.3.30463230
ARR_Depth3814.0.08300234
Self-Refine2684.0.5317396
SETS79314.8.69244258
Sequential Revision7934.0-218278
Majority Voting78196.6-00
ConMA18510.0---

Table 5. Mechanism on MATH500 at B=800B=800 TFLOPs with Qwen2.5-Math-7B-Instruct. TF: TFLOPs per question; Roots: roots per question; FP: fixed-point rate; W→C, C→W: answer changes (Appendix § 14).

ARR and majority voting give different tradeoffs. Each slot of Majority Voting samples its votes in sequence, so its critical path is long. At equal FLOPs, ARR needs only 41–61% of the serial passes of Majority Voting. On one A100 GPU and a MATH500 subset, ARR answers a question in a median of 78.5 s, and Majority Voting answers it in 176.5 s with the same accuracy (Table 7, Appendix § 15). At equal latency, the result changes: with a limit of 8,000 serial passes on MATH500, the two methods get the same accuracy, but Majority Voting uses less than half of the FLOPs (Figure 17). Thus, ARR is more efficient in latency at a fixed FLOP budget, and Majority Voting is more efficient in FLOPs at a fixed latency.

Figure 17. Accuracy against a budget of serial passes per question. Sequential Revision is omitted for scale.

MethodLatency (s)PassesTFLOPsAcc.
ARR78.52,74839890.0
ARRAR_{\mathrm{AR}}83.33,92639890.0
ARRPLD_{\mathrm{PLD}}42.51,59339990.0
Majority Voting176.56,87838190.0
ConMA18.46449387.5

Table 7. Wall-clock latency on one A100 GPU (Qwen2.5-Math-7B-Instruct, a subset of MATH500 problems, B=400B=400, one question at a time). Latency and serial passes are medians for each question; accuracy is on this subset.

Replay makes revision faster without a change in output. Replay gives the same revisions as ARRAR_{\mathrm{AR}} and decreases the critical path by up to 30%. This decrease becomes larger with the budget, because deeper roots reproduce longer prefixes (Figure 8). Because replay verifies reused text in parallel, ARR also writes fewer tokens than Majority Voting: on MATH500, it writes approximately 40% of the output tokens of Majority Voting for the same accuracy.

Figure 8. Cost of revision for Qwen2.5-Math-7B-Instruct. (a) Ratio of the median serial passes of ARR to those of ARRAR_{\mathrm{AR}}. Replay gives a larger decrease at larger budgets. (b) Output tokens for each question at B=800B=800.

A confidence controller saves compute but loses accuracy. ConMA stops generating samples once only one answer remains under consideration, reducing inference cost through early stopping. Across completed settings, it uses approximately half of the compute budget and requires half as many serial passes as ARR (Figure 7). However, this efficiency comes at the cost of accuracy: at B=800B=800, ConMA performs 1.2–9.5 percentage points worse than ARR (Figure 6). This suggests that confidence-based stopping can save compute but may terminate sampling too early, potentially missing better answers.

When Revision Should Receive Compute

Revision provides early gains but quickly saturates. Revision improves root accuracy by 0.5–2.4 points, but 49% of the first revisions of ARR (over all roots, including new ones) reach a fixed point, and answer changes become rare after four revisions (Figure 4). By reallocating compute from converged roots to new samples, ARR reaches 84.6% accuracy, matching Majority Voting and outperforming ARRDepth_{\mathrm{Depth}} (81.5%; Figure 4).

Figure 4. Revision in ARR on MATH500 (B=800B=800). (a) Accuracy of roots by revision depth; bars: roots that reach depth kk. (b) Answer changes per revision; bars: fixed-point rate. (c) Accuracy of the running vote.

The fixed point is an exact signal, not necessarily the most accurate stop. ARR’s condition Fx(y)=yF_x(y)=y guarantees that further deterministic revisions leave the solution unchanged, without requiring answer extraction, thresholds, or correctness labels. We compare two simpler rules with the same root replacement: (i) answer stability, which stops when ϕ(Fx(y))=ϕ(y)\phi(F_x(y))=\phi(y), and (ii) one-revision stopping, which retires a root after a single revision. At B=800B=800, answer stability outperforms ARR by 4.0 points on AIME25 (95% CI [−2.0, +10.7]) and 2.2 on OlympiadBench (95% CI [−0.3, +4.2]), while both stopping rules remain within 1 point on MATH500 and GSM8K (Figure 5(b), Table 2). These rules retire roots before their solutions converge, generating 1.8–2.4 times more roots but requiring 1.09–1.29 times more serial passes (Figure 5(c)). Thus, fixed-point stopping gives the shortest critical path among the tested rules, although earlier stopping can sometimes improve accuracy.

Figure 5. (a) Net repair of FxF_x vs. ARR − Majority Voting; open = LiveBench, circled = repaired answer format. (b) Accuracy of the other stopping rules and Majority Voting relative to ARR, with 95% CIs. (c) Their roots and serial passes relative to ARR.

The net repair of FxF_x decides between revision and sampling. Over different model-benchmark settings, the net repair of FxF_x predicts the accuracy difference between ARR and Majority Voting (Pearson r=0.76r=0.76, Figure 5(a)). With a net repair above 0.25%, ARR is 1.3 points better than Majority Voting on average; with a negative net repair, Majority Voting is 8.7 points better, most of all on LiveBench and with Qwen3.5-2B (§ 4.6). Revision should thus receive compute only when it repairs more answers than it breaks, and this condition explains both the successes and the failures of ARR. In two Gemma-4 settings, ARR is 7.0–14.5 points better for a reason other than reasoning: 37–41% of the samples end with a boxed answer, against 98–100% after revision.

Component Analysis

The exchange of depth for breadth is the source of the gain. ARRDepth_{\mathrm{Depth}} keeps the fixed-point test but does not replace retired roots. Thus, it stops when its four roots get to fixed points, and it uses less than half of the budget on MATH500. ARR gives this released compute to new roots and is 3.1 points more accurate on MATH500 and 4.0 points more accurate on OlympiadBench. Figure 10 shows the two sources of gain separately. Revision of the initial roots adds at most 2.5 points. The new roots add 3.0–6.0 points, and this gain increases with the budget. The same order holds for all models.

A greedy and stationary revision operator works best. We compare two revision alternatives (Table 1) across FLOP budgets (Figure 6). SETS adds an explicit critique step, reducing MATH500 accuracy by 1.5 points while remaining within noise on other benchmarks. Despite reaching more fixed points (69% vs. 23%), it repairs fewer answers (Table 5). Sequential Revision replaces greedy revision with sampled continuation, causing MATH500 accuracy to drop from 79.3% to 59.0% as the budget increases, 25.6 points below ARR at B=800B=800 (Figure 6(a)). It also breaks more correct answers than it repairs (Table 5).

The allocation rule does not depend on replay. ARRPLD_{\mathrm{PLD}} uses the same rule with prompt lookup decoding. It gets similar accuracy with approximately 55% of the serial passes of ARR. The cause is the first change in a revision. On average, a revision reproduces only 26–35% of its input before this change. After this point, replay decodes one token at a time, but prompt lookup can align to the draft again. Thus, a decoder with realignment makes ARR faster, and the fixed-point signal stays the same. In wall-clock time, ARRPLD_{\mathrm{PLD}} needs 54% of the latency of ARR (Table 7, Appendix § 15).

ARR is robust to its settings. A larger width helps: with N=8N=8, ARR gains 1.9 points over N=4N=4 and needs fewer serial passes. The block size WW changes the serial passes by at most 5%, and two paraphrases of ρ\rho change the accuracy by at most 1.2 points. Appendix § 15 gives all ablations and the detailed values of this section.

Generality across Models

The results transfer to four more model families. Figure 9 shows the five other models at their largest budget, over different settings. Three trends of the primary model also hold for these models. First, the exchange of depth for breadth helps: ARR is better than ARRDepthARR_{\mathrm{Depth}} and Self-Refine in most of the settings, by approximately 6 points on average. Second, the decoder does not change accuracy: ARR, ARRARARR_{\mathrm{AR}}, and ARRPLDARR_{\mathrm{PLD}} are within 0.4 points. Third, ARR and Majority Voting are close, and Majority Voting is 1.5 points better on average. This difference decreases to 0.7 points when we remove Qwen3.5-2B, where revision breaks answers (§ 4.6), and two Gemma-4 settings, where revision only repairs the answer format.

Figure 9. Accuracy (%) of every method on the other models at their largest budget (B=800B=800 for Ministral-8B and Qwen3-8B, 520 for Qwen3.5-2B, 1,400 for Gemma-4-E4B, and 2,600 for Qwen3.5-9B).

Failure Modes

A fixed point shows that revision is exhausted, not that the solution is correct. Thus, ARR is weak when revision breaks more answers than it repairs. On LiveBench, Majority Voting is better for all five models, by up to 20.4 points (Figure 9(f) and Figure 5(a)). With Qwen3.5-2B, revisions are very short and often give only a final answer, and ARR is 15-24 points below Majority Voting on MATH500 and AMC23 (Figure 9(a,Figure 9c)). The accuracy of ARR is therefore limited by the quality of its revision operator.

Related Work

We review parallel test-time scaling and sample aggregation in § 5.1, self-refinement and self-correction in § 5.2, and draft-and-verify decoding in § 5.3.

Parallel Test-Time Scaling and Sample Aggregation

Trained verifiers can rank candidate solutions [9] (Lightman et al. 2023), whereas self-consistency samples multiple chain-of-thought solutions and returns the most frequent answer (Wang et al., 2023). Adaptive-Consistency [1] and ESC (Li et al., 2024) terminate sampling once answer agreement is sufficiently strong. Snell et al. (2024) allocate inference compute between sampling and revision using a learned verifier and predicted problem difficulty, and solution coverage generally increases as more samples are generated [3] (Wu et al. 2025). DeepConf [13] and ConMA (Wang et al., 2026) instead use token-level confidence signals to filter or expand candidate groups.

Self-Refinement and Self-Correction

Welleck et al. (2022) train a separate corrector that iteratively revises the outputs of a generator. Reflexion (Shinn et al., 2023) retains verbal feedback across trials, while Self-Refine (Madaan et al., 2023) alternates self-generated feedback with iterative revision. Self-Debug [8] and CRITIC [15] incorporate execution feedback or external tools. Without such feedback, intrinsic self-correction often fails to improve reasoning and planning performance (Huang et al., 2024; Stechly et al., 2024; Kamoi et al., 2024). Other approaches train multi-turn self-correction directly through supervised or reinforcement learning (Qu et al., 2024; Kumar et al., 2024). SETS [6] repeatedly verifies and corrects sampled solutions until receiving a “correct” verdict before aggregation, whereas Thought-ICS (Samanta et al., 2026) identifies the first erroneous reasoning step and resamples from the preceding prefix.

Draft-and-Verify Decoding

Aggressive decoding (Sun et al., 2021) verifies spans copied from the input in parallel. Speculative decoding accelerates autoregressive generation by drafting multiple tokens and verifying them with the target model in parallel [5] (Leviathan et al. 2023). LLMA (Yang et al., 2023) reuses spans from a reference sequence, while prompt lookup decoding (Saxena, 2023) and PLD+ (Somasundaram et al., 2025) retrieve candidate continuations directly from the prompt.

Conclusion

ARR reframes test-time scaling as an online allocation problem between improving an existing trajectory and exploring a new one. Our results suggest that allocation does not require predicting correctness directly; detecting when refinement stops being useful can be enough to redirect compute to new attempts. This perspective opens several directions, including stronger or task-adaptive revision operators, decoders that realign after edits, integration with verifiers and reasoning models, and richer signals for deciding when to revise, resample, or terminate. More generally, progress-aware allocation could enable inference systems to allocate compute based on the marginal utility of continued reasoning, prioritizing useful reasoning over fixed schedules.

Limitations

ARR requires access to model logits and the decoding loop, limiting its use with text-only APIs or hidden-reasoning systems. A fixed point indicates only that deterministic refinement is exhausted, not that the solution is correct, so ARR relies on independent replacement roots and aggregation. Finally, ARR prioritizes lower serial latency over matched-FLOP accuracy; its weaker regimes on LiveBench and Qwen3.5-2B motivate evaluating stronger revision operators and larger reasoning models.

AI Use Statement

ChatGPT by OpenAI and Claude by Anthropic were used for minor language editing, proofreading, and resolving LaTeX formatting issues. Codex by OpenAI assisted with routine code implementation, refactoring, plotting, and table generation for Adaptive Replay Refinement (ARR). All AI-assisted content and code were reviewed and verified by the authors, who take full responsibility for the methodology, experimental results, and manuscript.

Ethics Statement

This work investigates test-time compute allocation between iterative self-refinement and independent solution sampling using publicly available language models and established reasoning benchmarks. The study involves no human subjects, collection of personally identifiable information, or new dataset creation.

Algorithm 1 REPLAY($x, y, W$) (Section 3.1)
Require: question $x$, solution $y \in \mathcal{Y}$, block size $W$
1: $u \leftarrow \rho(x, y)$; prefill $u$; $z \leftarrow \arg\max_v p_\theta(v \mid u)$
2: $on \leftarrow [z_1 = y_1]$ ▷ $z$ is a prefix of $y$
3: while $z_{|z|} \ne \varepsilon$ and $|z| < T_{\max}$ do
4:   $t \leftarrow |z|$
5:   if $on$ then
6:     $m \leftarrow \min(W-1, |y|-t)$
7:     pass $(z_t, y_{t+1:t+m}) \to \hat{z}_{t+1:t+m+1}$ ▷ Eq. (3)
8:     $\lambda \leftarrow$ accepted length ▷ Section 3.1
9:     $z \leftarrow z \oplus y_{t+1:t+\lambda}$
10:    discard cache of $y_{t+\lambda+1:t+m}$
11:    if $z_{|z|} \ne \varepsilon$ then
12:      $z \leftarrow z \oplus \hat{z}_{t+\lambda+1}$
13:      $on \leftarrow [\hat{z}_{t+\lambda+1} = y_{t+\lambda+1}]$
14:    end if
15:  else
16:    $z \leftarrow z \oplus \arg\max_v p_\theta(v \mid u,z)$ ▷ Eq. (1)
17:  end if
18: end while
19: return $z$

Pseudocode

Algorithm 1 computes one revision with replay decoding, and Algorithm 2 runs the allocation rule of (4) under the budget BB. Jobs of all roots share one first-in-first-out queue. An initial sample that is not complete is charged but never votes, and its slot samples again (SPAWN).

Algorithm 2 ARR($x, N, B, W$) (Section 3.3)
Require: question $x$, width $N$, budget $B$, block size $W$
1: $\mathcal{R} \leftarrow \{1,\ldots,N\}$
2: FIFO queue $Q \leftarrow (\operatorname{SAMPLE}(r))_{r\in\mathcal{R}}$
3: while $Q \ne \varnothing$ and the next job fits in $B$ do
4:   $j \leftarrow Q.\operatorname{pop}()$
5:   if $j = \operatorname{SAMPLE}(r)$ then
6:     $y_r \sim p_\theta(\cdot \mid \sigma(x))$
7:     if $y_r \in \mathcal{Y}$ then
8:       push $\operatorname{REVISE}(r)$
9:     else
10:      $\operatorname{SPAWN}()$ ▷ invalid sample
11:    end if
12:  else ▷ $j = \operatorname{REVISE}(r)$
13:    $z \leftarrow \operatorname{REPLAY}(x,y_r,W)$ ▷ Algorithm 1
14:    if $z \notin \mathcal{Y}$ then
15:      $\bar{y}_r \leftarrow y_r$ ▷ truncated: freeze
16:    else if $z = y_r$ then
17:      $\bar{y}_r \leftarrow y_r$; $\operatorname{SPAWN}()$ ▷ fixed point
18:    else
19:      $y_r \leftarrow z$; push $\operatorname{REVISE}(r)$
20:    end if
21:  end if
22: end while
23: return majority answer $\hat{a}_{\pi}(x)$ ▷ Section 2.1
$\operatorname{SPAWN}()$: if a complete sample fits in $B$, add a root $r'$ to $\mathcal{R}$ and push $\operatorname{SAMPLE}(r')$.

Decoding, Formatting, and Answer Extraction

Termination. The token ε\varepsilon is the end-of-sequence token of the chat template of each model. Because ε\varepsilon is part of the sequence, the test z=yz = y also compares the termination decision: a revision that stops earlier or later than yy is not a fixed point.

Prompting and precision. All models run in bfloat16 with their own chat templates and with thinking modes disabled.

Sampling. Sampled calls use temperature τ=0.7\tau=0.7 and nucleus threshold 0.95. Each request draws its random numbers from its own seeded generator, so its samples do not depend on the other requests in a batch. Greedy calls use argmax with the tie-breaking of the backend.

Answer extraction and voting. For math, ϕ\phi returns the content of the last \texttt{\textbackslash boxed{}}. For LiveBench, the answer line follows the format of each task (Appendix E), and the official LiveBench scripts score the answers. Intermediate revisions do not vote. A tie in the majority vote goes to the root with the lowest index, and a question without a vote counts as incorrect.

Compute Accounting and Budgets

Cost of a position. The accounting gives a FLOP cost to each processed position. A position that attends to cc cached keys costs

κ(c)=2∣θ∣+4nlayerdattnc.(5)\kappa(c) = 2|\theta| + 4n_{\mathrm{layer}}d_{\mathrm{attn}}c. \tag*{(5)}

The first term is the cost of the matrix multiplications, and ∣θ∣|\theta| is the number of matrix-multiplication parameters. The second term is the cost of attention, where nlayern_{\mathrm{layer}} is the number of layers and dattnd_{\mathrm{attn}} is the attention width.

Charging rules. The accounting charges every position in Pπ(x)\mathcal{P}_{\pi}(x) (§ 3.4) before the pass that processes it, and it refunds nothing. If a draft block does not fit in the remaining budget, the block is shortened. A new root is created only if the remaining budget, minus the worst-case cost of the calls in progress, covers a complete sample. For hybrid linear-attention models, the positions that are fed again after a rejected block (Appendix § 14) are charged as recomputation.

Budgets. We convert a budget BB to a number of samples. A sample with a prompt of PP tokens and an output of TT tokens processes L=P+TL = P + T positions, and position ii attends to ii keys. The sum of (5) over these positions gives the cost. of one sample,

C(L)≈2∣θ∣L+2nlayerdattnL2.(6)C(L) \approx2|\theta|L + 2n_{\mathrm{layer}}d_{\mathrm{attn}}L^2. \tag*{(6)}

A budget BB thus buys approximately K=B/C(L)K = B/C(L) samples, and at least Kmin⁡=B/C(P+Tmax⁡)K_{\min} = B/C(P + T_{\max}) complete samples. For Qwen2.5-Math-7B-Instruct, ∣θ∣≈7.1B|\theta| \approx7.1\mathrm{B}, nlayer=28n_{\mathrm{layer}}=28, and dattn=3,584d_{\mathrm{attn}}=3{,}584. With P≈200P \approx200 and Tmax⁡=1,536T_{\max}=1{,}536, Equation (6) gives C≈25C \approx25 TFLOPs, and the attention term is less than 3%3\% of this cost. Thus, B∈{200,400,800}B \in\{200, 400, 800\} TFLOPs gives Kmin⁡≈8K_{\min} \approx8, 16, and 32. Most solutions are shorter than Tmax⁡T_{\max}: on MATH500 at B=800B=800, Majority Voting collects approximately 97 samples, i.e., approximately 8 TFLOPs for each sample (Table 5). GSM8K solutions are shorter again, so GSM8K uses one quarter of these budgets, B∈{50,100,200}B \in\{50, 100, 200\} TFLOPs.

For a model mm with Tmax⁡=4,096T_{\max}=4{,}096, we scale the budget so that Kmin⁡K_{\min} stays the same:

Bm≈B⋅∣θm∣∣θ7B∣⋅4,0961,536,(7)B_m \approx B \cdot\frac{|\theta_m|}{|\theta_{7\mathrm{B}}|}\cdot\frac{4{,}096}{1{,}536}, \tag*{(7)}

where θ7B\theta_{7\mathrm{B}} are the parameters of Qwen2.5-Math-7B-Instruct. This gives {130,260,520}\{130, 260, 520\} for Qwen3.5-2B, {350,700,1400}\{350, 700, 1400\} for Gemma-4, and {650,1300,2600}\{650, 1300, 2600\} for Qwen3.5-9B. A latency-matched variant limits the serial passes per question to {2,000,4,000,8,000}\{2{,}000, 4{,}000, 8{,}000\}.

Compared Methods

Table Table 1 summarizes the methods of Section § 4.1. This section gives only the details that the main text does not give.

Prompt lookup. At each step, ARRPLD_{\mathrm{PLD}} matches the last n≤3n \le3 tokens against the prompt and the output, drafts the next 10 tokens, verifies them in one pass, and repeats the lookup after every mismatch; because yy is part of ρ(x,y)\rho(x, y), it can realign to yy after a change.

Why exact variants differ in accuracy. The exactness of replay (§ 3.2) concerns a single revision, whereas a full run under a shared FLOP budget can diverge for three reasons. (i) Cost. The accounting charges every verified draft position, including rejected ones (§ 3.4), so the same revision costs a different number of FLOPs under each decoder, and the budget ends at a different point. (ii) Scheduling. The decoders finish revisions at different speeds, so the concurrent roots of a question consume the budget in a different order. This changes the reserve for calls in progress, which root receives the last affordable new sample, and which revision the budget truncates; the variants therefore create different numbers of roots (16.2, 15.9, and 13.3 per MATH500 question at B=800B=800, Table 5). (iii) Numerics. One near-tie broken differently by a batched and a serial pass flips a token and changes the rest of the trajectory of that root, including whether it reaches a fixed point. Accuracy differences among the three variants therefore reflect these run-level effects, which are largest on benchmarks with 30–40 questions, not different revision operators.

ConMA. We implement ConMA (Wang et al., 2026) with the hyperparameters of the paper (8 trajectories per round, weights 0.3 and 0.7 for the full-sequence and tail confidence, a tail of 128 tokens, a consensus weight of 0.5, a kernel threshold of 0.75, and an expansion trigger of 0.5) and its verbatim prompts. A trajectory gets a confidence score from the geometric mean of its token probabilities over the full sequence and over its tail; answer groups are ranked by consensus and mean score, and the kernel is the smallest set of top groups with a cumulative probability of at least the kernel threshold. If the kernel is large, ConMA samples new trajectories from a critical-review prompt; otherwise it asks a multiple-choice question over the kernel. It stops when one answer remains or when the budget cannot fund another round, and it shares the FLOP accounting and the answer extractor of the other methods.

Stopping of the other baselines. ARRDepth_{\mathrm{Depth}} stops when all NN roots are retired or truncated and leaves the rest of the budget unused. Self-Refine also revises roots that are already fixed points. Sequential Revision continues its roots round-robin and never retires or creates a root.

Prompt Templates

Italic text in braces marks an inserted field, such as the question or the current solution, and bold labels mark the system and user turns. For LiveBench, the answer line uses the format of each task instead of \boxed{}.

System prompt of all solve and revision calls

Please reason step by step, and put your final answer within \boxed{}.

Solve prompt σ(x)\sigma(x) (all methods)

{question}

Prompt templates for revision, critique, correction, and continuation

Figure 10.

Revision prompt ρ(x,y)\rho(x,y) (ARR, ARRAR_{\mathrm{AR}}, ARRPLD_{\mathrm{PLD}}, ARRDepth_{\mathrm{Depth}}, Self-Refine)

Check the proposed solution against the question. Return a complete corrected solution. Correct any reasoning or calculation errors, including their downstream consequences. Preserve wording that does not need correction. If no correction is needed, reproduce the proposed solution exactly. Output only the solution.

Question: {question}\{question\}

Proposed solution: {solution}\{solution\}

Critique prompt ρcrit(x,y)\rho_{\mathrm{crit}}(x,y) (SETS, step 1)

System: You are a careful mathematical critic. You will be given a PROBLEM and a SOLUTION TRACE. Your job: identify any errors in the trace - logical mistakes, wrong calculations, incorrect assumptions, or faulty reasoning. If the trace is correct, say so explicitly. Be concise and specific. Do NOT solve the problem yourself.

User: Review the following SOLUTION TRACE for the PROBLEM below. Identify any errors: wrong calculations, incorrect assumptions, logical mistakes, or missing steps. If no errors exist, state: ‘The solution appears correct.’ Be specific - point to the exact step where an error occurs. Do NOT re-solve the problem.

PROBLEM {question}\{question\}

SOLUTION TRACE {solution}\{solution\}

Extracted answer: {answer}\{answer\}

CRITIQUE (list errors specifically, or confirm correctness):

Correction prompt ρcor(x,y,⋅)\rho_{\mathrm{cor}}(x,y,\cdot) (SETS, step 2)

System: You are a careful mathematical editor. You will be given a PROBLEM, a SOLUTION TRACE, and a CRITIQUE. Your job: produce a corrected solution that fixes all errors identified in the critique while keeping the correct parts of the original trace. Use the same numbered-step format. End your response with exactly one line: Final answer: {answer}\boxed{\{answer\}}

User: You are given a PROBLEM, a SOLUTION TRACE, and a CRITIQUE of that trace. Produce a corrected solution: fix every error identified in the critique, keep the numbered-step format, preserve correct parts of the original trace, do NOT introduce new errors, end with exactly one line: Final answer: {answer}\boxed{\{answer\}}

PROBLEM {question}\{question\}

ORIGINAL SOLUTION TRACE {solution}\{solution\}

CRITIQUE {critique}\{critique\}

CORRECTED SOLUTION (numbered steps, ending with Final answer: {answer}\boxed{\{answer\}}):

Continuation prompt ρcont(x,y,k)\rho_{\mathrm{cont}}(x,y,k) (Sequential Revision)

System: You are a precise mathematical reasoner. Solve problems using clearly numbered steps. Show every calculation inside each step. End your response with exactly one line: Final answer: ⟨answer⟩\boxed{\langle\text{answer}\rangle}

Figure 10 (PDF p. 16). Accuracy gains from revision depth and replacement breadth across benchmarks, budgets, and models.

User: You are at refinement depth {k}\{k\} of {D}\{D\}. Below is the ORIGINAL PROBLEM and the CORRECTED REASONING from the previous depth. Your task: 1. Review the corrected reasoning carefully. 2. Continue from Step {n}\{n\}: - extend or refine the solution, verifying each claim. 3. If the prior reasoning already reaches a correct answer with no errors, confirm it concisely. Do NOT change the answer unless you can identify a specific concrete error. 4. End with exactly one line: Final answer: ⟨answer⟩\boxed{\langle\text{answer}\rangle}

PROBLEM {question}\{question\}

CORRECTED REASONING FROM DEPTH {k−1}\{k-1\} {solution}\{solution\}

A Worked Example of Replay and Replacement

We trace one question from the logs of Qwen2.5-Math-7B-Instruct on MATH500 (problem 358, B=800B=800 TFLOPs).

Problem (MATH500, no. 358)

Determine if the graph of the equation below is a parabola, circle, ellipse, hyperbola, point, line, two lines, or empty.

(x2−3)2+y2=10\left(\frac{x}{2}-3\right)^2+y^2=10

The correct answer is ellipse: the equation equals (x−6)2+4y2=40(x-6)^2+4y^2=40, in which the coefficients of (x−6)2(x-6)^2 and y2y^2 differ. Many samples answer circle, because they read the left side as a circle in the substituted variable x/2x/2.

Outcome. Table 3 compares the three methods on this question. Majority Voting and SETS return the frequent incorrect answer. ARR returns the correct answer with 40% fewer serial passes than Majority Voting.

MethodAnswerVotesSerial passes
Majority Votingcircle ✗34 vs. 27 (61 samples)13,049
SETScircle ✗--
ARRellipse ✓13 vs. 57,877

Table 3. Outcome on MATH500 problem 358 at B=800B=800 TFLOPs. Votes give the winning answer against the runner-up. Serial passes are counted on the critical path.

Trajectory of one root. Table 4 follows root 0 of ARR through one sample and four revisions. Revisions 1 and 2 rewrite most of the solution but keep the answer circle. Revision 3 changes the answer to ellipse, and revision 4 reproduces revision 3 exactly.

SampleRev. 1Rev. 2Rev. 3Rev. 4
Draft-42876667620
Accepted-00602620
Discarded-0060
Decoded42875666170
Passes428766673721
Answercirclecirclecircleellipseellipse (FP)

Table 4. Trajectory of root 0. Accepted and discarded denote replay-verified draft tokens; decoded denotes greedy single-token steps, and FP denotes a fixed point.

Revision 3: replay keeps the derivation and rewrites the end. The draft of revision 3 has 667 tokens. Its first 602 tokens derive (x−6)2+4y2=40(x-6)^2+4y^2=40 and state that this equation is an ellipse, but its last 65 tokens return to the circle form and box circle. Replay accepts the 602 tokens in 19 blocks, discards 6 positions of the failed block, and decodes a new 17-token end. The call takes 37 serial passes, whereas autoregressive decoding takes 621 passes for the same output. The three boxes below show the parts of this revision in order. The logs store the token counts and the answer of each call, but not the full text of intermediate drafts, so the second box describes the discarded end.

Accepted prefix of revision 3

Figure 12. Accepted prefix of revision 3 (602 tokens, 19 blocks, verified in parallel)

Accepted answer text

Figure 13.

… If we compare (x−6)2+4y2=40(x-6)^2+4y^2=40 to (x−h)2+(y−k)2=r2(x-h)^2+(y-k)^2=r^2, we see that the coefficients of (x−6)2(x-6)^2 and y2y^2 are not the same. Therefore, the equation (x−6)2+y2=(x-6)^2+y^2=

10 does not represent a circle.

Figure 12 (PDF p. 18). Accuracy up to B=1,600B=1{,}600.

Figure 13 (PDF p. 18). Change of accuracy from the default τ=0.7\tau=0.7 at (a) τ=0.5\tau=0.5 and (b) τ=1.0\tau=1.0, for each benchmark and budget BB.

The correct form of the equation is (x−6)2+4y2=40(x-6)^2+4y^2=40, which represents an ellipse.

Discarded end of the draft (65 tokens)

Returns to the circle form and ends with the boxed answer circle.

New end of revision 3 (17 tokens, greedy decoding)

Therefore, the correct answer is: ellipse.

Revision 4: a fixed point. Revision 4 reproduces all 620 tokens, including the terminating ϵ\epsilon, in 21 serial passes. Thus, root 0 is a fixed point: ARR keeps ellipse as its vote and gives the slot to a new root.

Key Observations

  • Majority Voting counts each sample once, and thus a frequent shared error wins the vote.

  • ARR revises each sample until the revision is stable, and thus a root with the correct result in its derivation can correct its conclusion.

  • Revisions 1 and 2 do not change the answer, so a fixed schedule of two revisions keeps the incorrect answer.

  • ARR continues because the text still changes, and it stops as soon as the text stops changing.

Implementation Details

Decoder. All methods run in one decoder on HuggingFace Transformers, with continuous batching, a static key-value cache for each slot, and access to the logits. Replay blocks, prompt-lookup blocks, and single-token steps run in separate batched passes. The shared job queue (Appendix § 8) is first-in-first-out, so a new root never overtakes an unfinished root. The key-value cache of an accepted prefix is reused only within its call, so each revision prefills ρ(x,y)\rho(x,y) again.

Architectures. The decoder detects the layer types of a model with one forward pass. For hybrid linear-attention models (Qwen3.5), it keeps a recurrent state for each slot. It verifies a draft block on a copy of this state and feeds the accepted prefix again after a rejection. Each run uses one A100 or

H100 GPU.

Output equivalence of replay and greedy decoding. Let g=Fx(y)g=F_x(y) be the output of autoregressive greedy decoding on u=ρ(x,y)u=\rho(x,y). Replay and greedy decoding share the prefill of uu, so their first output token is the same token g1g_1. While the committed output is on the draft, z=y1:t=g1:tz=y_{1:t}=g_{1:t}, replay runs one causal pass on (zt,yt+1,…,yt+m)(z_t,y_{t+1},\ldots,y_{t+m}). The causal mask restricts the logits at block position jj to uu and y1:t+j−1y_{1:t+j-1}, so z^t+1\hat{z}_{t+1} is the greedy token after g1:tg_{1:t}, which is gt+1g_{t+1}. If this token equals the draft token yt+1y_{t+1}, the conditioning prefix of the next block position is again a prefix of gg, and the same argument holds at every later position of the block. Thus, the accepted span yt+1:t+λy_{t+1:t+\lambda} and the appended token z^t+λ+1\hat{z}_{t+\lambda+1} are exactly the next λ+1\lambda+1 tokens of gg. The positions after the first disagreement condition on a draft token that gg does not contain, so the decoder discards their key-value entries before the next pass, and no rejected position affects a later prediction. After the output leaves the draft, replay continues with single-token greedy steps from a prefix of gg and thus produces the rest of gg. Both decoders stop at the same ε\varepsilon or at the same Tmax⁡T_{\max}, and an accepted ε\varepsilon inside a block ends the call at once. For W=1W=1, each block has m=0m=0 draft tokens, and replay reduces to greedy decoding. A fixed point is also stable under further revision: because ρ\rho contains no round index or history, FxF_x maps each yy to one output, so Fx(y)=yF_x(y)=y gives Fxk(y)=Fx(Fxk−1(y))=yF_x^k(y)=F_x(F_x^{k-1}(y))=y for every k≥1k\ge1. This equivalence holds only if a batched pass and a single-token pass select the same argmax; the verification tests below check this condition on our backend.

Mechanism statistics. Table 5 reports five statistics per method, computed over all questions and seeds of a cell. TFTF is the mean number of TFLOPs that the FLOP accounting of § 3.4 charges per question, including prefills, discarded draft positions, and truncated calls. RootsRoots is the mean number of roots ∣R∣|\mathcal{R}| created per question: the N=4N=4 initial roots plus every new root r′r'; for Majority Voting it is the number of samples, and methods without replacement stay at NN. FPFP is the fixed-point rate, the fraction of complete revisions (z∈Yz \in\mathcal{Y}) that reproduce their input exactly, z=yz=y; for SETS the test is Fxvc(y)=yF_x^{\mathrm{vc}}(y)=y, and it is undefined for Sequential Revision, whose update is sampled, and for Majority Voting, which never revises. W→CW\to C and C→WC\to W count complete updates whose extracted answer ϕ\phi changes from incorrect to correct and from correct to incorrect with respect to a∗(x)a^*(x), summed over all questions and seeds; these labels are used only for evaluation and never by a method. Updates that keep the correctness of the answer are not counted, so W→C−C→WW\to C-C\to W is the net number of answers that revision repairs. We also record the output tokens per question and the accepted-prefix fraction ℓ/∣y∣\ell/|y| of complete revisions.

Additional Results

Equal-FLOP view. Figure 6 gives accuracy against the FLOP budget, and Figure 7 gives the compute that each method uses. Six methods spend 93–100% of BB on Qwen2.5-Math-7B-Instruct, so their FLOPs are equal by design. ARR_D​​epth stops when its roots get to fixed points, and Self-Refine stops after D=4D=4 revisions; neither reuses the slots. They spend only 50–73% of BB and lose 1.9–4.4 points. ConMA stops when one answer remains and spends 57% of BB.

Adaptive allocation. ARR does not stop at a fixed point. It gives the remaining budget to a new root and thus spends 98% of BB. On Qwen2.5-Math-7B-Instruct, ARR is the most accurate method that revises, and Majority Voting is 1.3 points better on average over all budgets. On the five other models at the largest budget, SETS and Majority Voting are 1.7 and 1.5 points better on average (Figure 9, § 4.5). On the primary model and on the other models, Majority Voting needs 2.0 and 1.6 times the serial passes of ARR, and ARR_AR needs 1.2 and 1.1 times (Figure 7(b)). ARR stays within 0.3 points of ARR_AR. Thus, ARR gives more accuracy for each serial pass at the FLOP cost of majority voting.

Detailed values for § 4.2. On MATH500 at B=800B=800, ARR and Majority Voting both get 84.6% (paired 95% CI [−1.2, +1.3]). ARR writes 18.2k output tokens for each question and collects 15.0 votes. Majority Voting writes 46.7k tokens and collects 93.3 votes. ConMA uses 23% of BB (Table 5) and 0.12 of the serial passes of ARR; averaged over all settings, it uses 57% of BB and 0.47 of the serial passes.

Wall-clock latency. Table 7 gives the latency on a subset of MATH500 problems at B=400B=400, so its accuracies are not comparable to Figure 6. One A100 GPU runs one question at a time, and no other job uses the GPU. The median latency for each question is 78.5 s for ARR, 83.3 s for ARR_AR, 42.5 s for ARR_PLD, 176.5 s for Majority Voting, and 18.4 s for ConMA. All methods get 90.0%, except ConMA, which gets 87.5% and uses only 23% of BB. A replay pass processes up to WW positions. Thus, ARR is only 6% faster than ARR_AR in wall-clock time, although it needs 30% fewer serial passes. ARR_PLD needs the fewest serial passes and is the fastest method that revises.

Detailed values for § 4.4. The roots of ARR increase with the budget: 5.8, 9.5, and 16.2 for each MATH500 question. ARRDepth_{\mathrm{Depth}} uses 381 of 800 TFLOPs on MATH500, and Self-Refine uses 268 TFLOPs for 81.7% (Figure 11). ARR is better than ARRDepth_{\mathrm{Depth}} by 3.1 points [2.0, 4.3] on MATH500 and by 4.0 points [2.6, 5.2] on OlympiadBench. The depth gain stays at 1.0-2.0 points at all budgets (Figure 10). SETS is 1.5 points [0.3, 2.7] less accurate than ARR on MATH500, and 69% of its updates are fixed points. Sequential Revision decreases from 79.3% to 59.0% on MATH500 as the budget increases, and it is 25.6 points [22.5, 28.5] below ARR at B=800B=800. ARRPLD_{\mathrm{PLD}} uses 0.53-0.58 of the serial passes of ARR at B=800B=800.

Figure 11. Depth-to-breadth reallocation under fixed-point replacement across budgets and models.

Detailed values for § 4.5. Across mathematical reasoning settings for other models, ARR achieves mean gains of 6.4 and 6.3 points over ARRDepth_{\mathrm{Depth}} and Self-Refine, respectively. Majority Voting outperforms ARR in more settings than the reverse. Excluding Qwen3.5-2B and the two Gemma-4 settings with repaired formatting, SETS and ARR perform within 0.1 points of each other.

Ablations. We change one setting of ARR at a time with Qwen2.5-Math-7B-Instruct, and we compare each run with the matched main run. We fixed the default settings (N=4N=4, τ=0.7\tau=0.7, W=32W=32) before these runs, and all other experiments use them. Table 2 gives the stopping rules of Figure 5 at all budgets, and Table 6 gives the same rules for Qwen3-8B. Figures 13, Figure 14, 12, Figure 15, Figure 16, and Figure 17 give the sampling temperature, the block size WW, the budget B=1,600B=1{,}600, the width NN, the paraphrases of ρ\rho, and the latency-matched budgets. Each ablation shows a benchmark and budget only if all compared settings and methods finished there. A result in a figure does not occur again in a table.

Figure 14. (a) Accuracy and (b) serial passes relative to the default W=32W=32, for each benchmark and budget.

Change of accuracy from the default $N=4$ and accuracy relative to ARR

Figure 15. Change of accuracy from the default N=4N=4 at (a) N=2N=2 and (b) N=8N=8, for each benchmark and budget. (c) Accuracy relative to ARR (N=8N=8) on AMC23 and AIME24; dots denote individual settings, large markers denote means.

BenchmarkBBARRAnswerOnce
AMC2320062.562.562.5
40065.072.565.0
80075.072.577.5
AIME2420026.723.320.0
40026.723.323.3
80033.323.326.7
AIME2520016.716.716.7
40023.323.326.7
80026.720.020.0

Table 6. Accuracy (%) of the stopping rules of Table 2 for Qwen3-8B.

Figure 16. Accuracy of ARR with the revision prompt ρ\rho and two paraphrases; (g) uses Qwen2.5-7B-Instruct.

Detailed values of the ablations. Across settings with complete results for N∈{2,4,8}N \in\{2,4,8\}, ARR with N=8N=8 gains 1.9 points over N=4N=4 while using 0.64 times as many serial passes. At N=8N=8, ARR is within 0.5 points of Majority Voting while using 0.59 times as many serial passes. A block size W∈[8,64]W \in[8,64] changes the serial passes by at most 5%. At B=1,600B=1{,}600, ARR achieves 39.2%, Majority Voting 38.9%, and ARRDepth_{\mathrm{Depth}} 36.4% accuracy on average across AMC23, AIME24, and AIME25. The two paraphrases of ρ\rho change accuracy by at most 1.2 points on MATH500, OlympiadBench, and GSM8K.

One seed and several seeds. Figure 18 compares first-seed accuracy with the mean across all seeds. First-seed accuracy differs from the all-seed mean by at most 5.5 points. The sign of ARR−ARRDepth_{\mathrm{Depth}} agrees between the first seed and the all-seed mean in 94% of settings, compared with 71% for ARR−Majority Voting. Among the disagreements with Majority Voting, 80% involve an exact tie in one of the comparisons, and the all-seed mean differences remain within 2.2 points. Thus, single-seed comparisons with Majority Voting are less reliable, while ARR’s gains over ARRDepth_{\mathrm{Depth}} are more stable.

Figure 18. First seed against the mean over all seeds at the largest budget. (a) Accuracy of ARR and Majority Voting. (b) Accuracy differences between methods.

Extended Related Work

More draft-and-verify methods.

Medusa (Cai et al., [4]) drafts with extra heads, lookahead decoding (Fu et al., [12]) drafts with Jacobi iterations, and EAGLE (Li et al., 2025) drafts with an extra head on the hidden features.

Sequential scaling and efficient reasoning.

Long reasoning traces frequently spend tokens on redundant reflection (Chen et al., [7]), including those of reasoning models trained with reinforcement learning (DeepSeek-AI, [10]). Budget forcing extends or ends a reasoning trace to control its length (Muenninghoff et al., 2025), and Sui et al. (2025) survey such efficient reasoning methods. ARLCP (Yu et al., 2026) trains models to reflect less with length-sensitive rewards. ARR keeps the weights frozen and removes a different redundancy: the repeated generation of unchanged text across revision rounds.

Fixed points in sequence models.

Deep equilibrium models compute fixed points of layers (Bai et al., [2]), and Jacobi decoding iterates a parallel greedy update to its fixed point (Santilli et al., 2023; Kou et al., 2024). In these methods, the fixed point is the output. In ARR, the fixed point is a stop signal for one solution in a population of solutions.

Inference servers reuse cached prefixes across requests (Kwon et al., 2023; Zheng et al., 2024), which is complementary to replay.

References

  1. [1]Pranjal Aggarwal, Aman Madaan, Yiming Yang, and Mausam. 2023. Let’s sample step by step: Adaptive-consistency for efficient reasoning and coding with llms. Preprint, arXiv:2305.11860.arxiv.org/abs/2305.11860
  2. [2]Shaojie Bai, J. Zico Kolter, and Vladlen Koltun. 2019. Deep equilibrium models. Preprint, arXiv:1909.01377.arxiv.org/abs/1909.01377
  3. [3]Bradley Brown, Jordan Juravsky, Ryan Ehrlich, Ronald Clark, Quoc V. Le, Christopher Ré, and Azalia Mirhoseini. 2024. Large language monkeys: Scaling inference compute with repeated sampling. Preprint, arXiv:2407.21787.arxiv.org/abs/2407.21787
  4. [4]Tianle Cai, Yuhong Li, Zhengyang Geng, Hongwu Peng, Jason D. Lee, Deming Chen, and Tri Dao. 2024. Medusa: Simple llm inference acceleration framework with multiple decoding heads. Preprint, arXiv:2401.10774.arxiv.org/abs/2401.10774
  5. [5]Charlie Chen, Sebastian Borgeaud, Geoffrey Irving, Jean-Baptiste Lespiau, Laurent Sifre, and John Jumper. 2023a. Accelerating large language model decoding with speculative sampling. Preprint, arXiv:2302.01318.arxiv.org/abs/2302.01318
  6. [6]Jiefeng Chen, Jie Ren, Xinyun Chen, Chengrun Yang, Ruoxi Sun, Jinsung Yoon, and Sercan Ö. Arik. 2025a. Sets: Leveraging self-verification and self-correction for improved test-time scaling. Preprint, arXiv:2501.19306.arxiv.org/abs/2501.19306
  7. [7]Xingyu Chen, Jiahao Xu, Tian Liang, Zhiwei He, Jianhui Pang, Dian Yu, Linfeng Song, Qiuzhi Liu, Mengfei Zhou, Zhuosheng Zhang, Rui Wang, Zhaopeng Tu, Haitao Mi, and Dong Yu. 2025b. Do not think that much for 2+3=? on the overthinking of o1-like llms. Preprint, arXiv:2412.21187.arxiv.org/abs/2412.21187
  8. [8]Xinyun Chen, Maxwell Lin, Nathanael Schärli, and Denny Zhou. 2023b. Teaching large language models to self-debug. Preprint, arXiv:2304.05128.arxiv.org/abs/2304.05128
  9. [9]Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reichīro Nakano, Christopher Hesse, and John Schulman. 2021. Training verifiers to solve math word problems. Preprint, arXiv:2110.14168.arxiv.org/abs/2110.14168
  10. [10]DeepSeek-AI. 2025. DeepSeek-R1: Incentivizing reasoning capability in LLMs via reinforcement learning. arXiv preprint arXiv:2501.12948.DOI
  11. [11]Zhichen Dong, Zhanhui Zhou, Zhixuan Liu, Chao Yang, and Chaochao Lu. 2025. Emergent response planning in LLMs. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 14301–14320. PMLR.arxiv.org/abs/2502.06258
  12. [12]Yichao Fu, Peter Bailis, Ion Stoica, and Hao Zhang. 2024. Break the sequential dependency of llm inference using lookahead decoding. Preprint, arXiv:2402.02057.arxiv.org/abs/2402.02057
  13. [13]Yichao Fu, Xuewei Wang, Yuandong Tian, and Jiawei Zhao. 2025. Deep think with confidence. Preprint, arXiv:2508.15260.arxiv.org/abs/2508.15260
  14. [14]Gemma Team. 2026. Gemma 4 model card. https://huggingface.co/google/gemma-4-E4B-it.
  15. [15]Zhibin Gou, Zhihong Shao, Yeyun Gong, Yelong Shen, Yujiu Yang, Nan Duan, and Weizhu Chen. 2024. Critic: Large language models can self-correct with tool-interactive critiquing. Preprint, arXiv:2305.11738.arxiv.org/abs/2305.11738
  16. [16]Chaoqun He, Renjie Luo, Yuzhuo Bai, Shengding Hu, Zhen Leng Thai, Junhao Shen, Jinyi Hu, Xu Han, Yujie Huang, Yuxiang Zhang, Jie Liu, Lei Qi, Zhiyuan Liu, and Maosong Sun. 2024. Olympiadbench: A challenging benchmark for promoting agi with olympiad-level bilingual multimodal scientific problems. Preprint, arXiv:2402.14008.arxiv.org/abs/2402.14008

Paper details

vlnc:W_a92twhtp
Version
v1 · latest
Published
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

ChatGPT by OpenAI, Claude by Anthropic, Codex

View statement
Looking for related papers…
Contents