Beyond Self-Consistency: Recursive Self-Improvement at Test Time

LLMs that build on their own previous attempts instead of voting over independent ones — in context at inference, and in their weights during test-time training.

Jianyu Wu1,2 Yizhou Wang2,3 Encheng Su2,4 Jinouwen Zhang2 Pengze Li2,5 Lintao Wang2,6 Chen Tang2,3 Aoran Wang2 Wanli Ouyang3 Shixiang Tang2,3,*
1Shanghai Jiao Tong University 2Shanghai Artificial Intelligence Laboratory 3The Chinese University of Hong Kong 4University of Science and Technology of China 5Fudan University 6The University of Sydney *Corresponding author
+13.89%
average accuracy over the base model
+4.79%
over TTPO + SC, the strongest self-consistency method, at the same test-time budget
−68.6%
fewer tokens: In-Context RSI beats 10-sample self-consistency by its 5th attempt
Motivation

Voting is not improving

At test time a model must judge its own answers on unlabeled questions. Most current methods resolve this with self-consistency: sample independent solutions and take the majority. That wastes earlier reasoning at inference, and when the majority is wrong, training on it reinforces the error — so improvement stalls instead of accumulating.

Self-Consistency versus TT-RSI: parallel attempts and majority vote versus successive refinement and self-improvement signal
Self-Consistency vs. TT-RSI. (a) Self-consistency takes the most frequent answer as both the output and the training target. (b) TT-RSI reuses reasoning across attempts for efficient inference, and trains on self-improvement to strengthen both answering and refinement. Humans do the same: keep the useful reasoning, revise the mistakes, improve the strategy (Pólya, 1945).
Method

One improvement step, used twice

The core is an improvement step: re-solve the question with the previous solution in context. Only the latest solution is carried forward, so attempts form a Markov chain \(a_1 \to a_2 \to \cdots \to a_\ell\). Because later solutions improve on earlier ones, they can also supervise them — and that is what training uses.

Overview of TT-RSI: In-Context RSI produces a chain of refinements; In-Weight RSI distills them via Recursive and Accelerated Distillation
Overview. In-Context RSI generates \(a_1\) then repeatedly re-solves the question given the full previous solution. In-Weight RSI distills each refinement into the weights through a frozen initial-model teacher: Recursive Distillation trains answering and refinement, Accelerated Distillation emphasizes the tokens where refinement changed the teacher's guidance.
Inference · training-free

In-Context RSI

Each attempt receives the full previous solution — derivation and answer — presented neutrally as “a previous attempt”, with no hint whether it is correct. The model decides what to reuse, rework, or solve anew, so even a wrong solution contributes reusable steps.

{question}

A previous attempt at solving this problem was:

{previous solution}

Please solve the problem independently.
Reason step by step, and put your final answer within \boxed{}.
Training · label-free

In-Weight RSI

The first two solutions of the chain \(a_1, a_2\) become privileged references for on-policy self-distillation. The teacher sees one step ahead:

\[\mathcal{L}_{\text{ans}} = D\big(\mathrm{sg}[\pi_{\theta_0}(\cdot\mid q, a_1)] \,\big\|\, \pi_\theta(\cdot\mid q)\big)\]
\[\mathcal{L}_{\text{ref}} = D\big(\mathrm{sg}[\pi_{\theta_0}(\cdot\mid q, a_2)] \,\big\|\, \pi_\theta(\cdot\mid q, a_1)\big)\]

Accelerated Distillation adds the \(a_2\)-conditioned teacher on the first attempt, up-weighting tokens where refinement shifted its guidance:

\[\omega_t = 1-\alpha+2\alpha\,\frac{d_t}{d_t+\tau},\qquad \mathcal{L} = \mathcal{L}_{\text{Rec}} + w_{\text{Acc}}\,\mathcal{L}_{\text{Acc}}\]

The updated model answers better and refines better, producing stronger references for the next round.

Why it works

Each refinement fixes a wrong answer with probability \(f\) and breaks a correct one with probability \(b\); distillation is a one-step bootstrap. Drag the sliders to see what each implies.

Refinement: fix vs. break Proposition 1
Distillation: where attempts land Theorem 1 & Proposition 2
trained 1st attempt 2nd 3rd 1st attempt w/ acceleration
Results

Better at every scale

Qwen3-1.7B, 4B and 8B on five competition-math benchmarks (AIME 2025/2026, HMMT Feb 2025/2026, BRUMO 2025), against five label-free test-time training methods. Labels are used only for evaluation.

Accuracy (%). Bold best, underline second best in each group.

TT-RSI applies In-Context RSI (one initial solution + ten refinements) to the In-Weight RSI model; TTPO + SC uses self-consistency on the TTPO model with the same token budget.

Refining beats resampling

Qwen3-4B, mean over AIME26 & HMMT26, against cumulative generated tokens
Analysis

Two things voting cannot do

It moves past a wrong majority

On the six AIME26 questions whose Base majority is wrong, several self-consistency methods fall below Base. In-Weight RSI more than doubles accuracy on them, and its majority vote becomes correct on 2 of the 6 (others: at most 1).

avg@64 on those 6 questions

Its gains accumulate in the weights

Tracking first-attempt accuracy over 100 updates, In-Weight RSI climbs throughout to 59.61% (+5.77% over Base), while the baselines stay near — or dip below — where they started.

Mean over AIME26 & HMMT26; hairline = Base

Also in the paper: design ablations (§4.3), cross-benchmark transfer (§4.4), training cost (8.53 min/update, 2.29–5.36× faster than baselines), and the balance-point theory (§3.2, App. A).

Example

Training accelerates refinement

An HMMT26 problem. Self-consistency picks a wrong most-frequent answer; the base model's refinement chain gets there after ten steps; after In-Weight RSI, the chain gets there at \(a_2\). Blue marks reasoning revisions.

ProblemA unit stick has one red endpoint. Repeatedly choose a piece uniformly and halve it. Find the expected red-end length after five splits.
Self-Consistency11 samples

“average of the lengths of all sticks divided by 2”

\(E(n+1) = \dfrac{1}{2(n+1)} \;\Longrightarrow\; \dfrac{1}{10}\)

\(1/10\)3
\(1/32\)2
\(63/256\)2
4 others1
✗ Selected 1/10 — the correct 63/256 is outvoted
Base + In-Context RSI\(a_{10}\to a_{11}\)
a10\(E(n) = \dfrac{1}{2n} \;\Longrightarrow\; \dfrac{1}{10}\) ✗
↓ RefineUse the sum of squared piece lengths.
a11\(S(n) = S(n-1)\Big(1-\dfrac{1}{2n}\Big)\)
✓ Answer: 63/256

Correct — after ten refinements.

Trained + In-Context RSI\(a_1\to a_2\)
a1\(E(n+1) = E(n)\,\dfrac{2-E(n)}{2}\) ✗
↓ RefineCount the \(n+1\) pieces after \(n\) splits.
a2\(E(n+1) = E(n)\,\dfrac{2n+1}{2(n+1)}\)
✓ Answer: 63/256

Correct at \(a_2\) instead of \(a_{11}\).

Citation

BibTeX

@article{wu2026ttrsi,
  title   = {Beyond Self-Consistency: Recursive Self-Improvement at Test Time},
  author  = {Wu, Jianyu and Wang, Yizhou and Su, Encheng and Zhang, Jinouwen and
             Li, Pengze and Wang, Lintao and Tang, Chen and Wang, Aoran and
             Ouyang, Wanli and Tang, Shixiang},
  journal = {arXiv preprint arXiv:2611.30965},
  year    = {2026}
}