Abstract
Modern Large Language Models (LLMs) have shown rapid improvements in reasoning capabilities, driven largely by reinforcement learning (RL) with verifiable rewards. Here, we ask whether these LLMs can self-improve without the need for additional training. We identify two core challenges for such systems: (i) efficiently generating diverse, high-quality candidate solutions, and (ii) reliably selecting correct answers in the absence of ground-truth supervision. To address these challenges, we propose Test-time Recursive Thinking (TRT), an iterative self-improvement framework that conditions generation on rollout-specific strategies, accumulated knowledge, and self-generated verification signals. Using TRT, open-source models reach 100% accuracy on AIME-25/24, and on LiveCodeBench's most difficult problems, closed-source models improve by 10.4-14.8 percentage points without external feedback.
Introduction
While models like OpenAI’s o1 and DeepSeek-R1 have shown incredible reasoning leaps, they typically rely on Reinforcement Learning (RL) with verifiable rewards (like a compiler or a ground-truth answer key) during training. A critical gap remains: can a model improve its reasoning at "test-time" (during inference) when it lacks access to the correct answer?
Most current methods for multi-attempt reasoning, such as "Best-of-N" sampling, are "flat"—the model attempts the problem many times independently, often repeating the same logical fallacies. TRT addresses two main challenges:
- Exploration: Forcing the model to try diverse, high-quality strategies instead of repeating itself.
- Verification: Enabling the model to identify the correct answer among its own attempts without external ground truth.
Methodology: The TRT Framework
Test-time Recursive Thinking (TRT) is an iterative loop consisting of three distinct stages:
- Generate: The model produces multiple "rollouts" (solution attempts). These are conditioned on a Knowledge List (accumulated insights from previous rounds) and Rollout-specific Strategies (e.g., "try dynamic programming" vs. "try a greedy approach").
- Select: The model evaluates its own attempts. In math, it looks for consensus; in coding, it generates its own unit tests and executes the code against them to find the most robust solution.
- Reflect: This is the "recursive" component. The model compares failed attempts against the chosen "best" attempt to extract distilled insights, specifically recording "don'ts"—failure modes to avoid in the next round.
Unlike methods that append full previous attempts to the context window—leading to "context exhaustion"—TRT only stores high-level, abstracted insights. This keeps the prompt lean and focused even over many rounds.
Experimental Results
The framework was evaluated on high-difficulty benchmarks including the American Invitational Mathematics Examination (AIME 2024 & 2025) and LiveCodeBench (v6) "Hard" problems.
Performance Gains
TRT demonstrated significant performance boosts across both open-source and closed-source models:
- AIME Mastery: Open-source models equipped with TRT achieved a perfect 100% accuracy on AIME-24 and AIME-25 through iterative refinement.
- Coding Breakthroughs: On LiveCodeBench's hardest problems, o4-mini improved from 63.5% to 73.9% (+10.4 pp), and o3 jumped from 57.1% to 71.9% (+14.8 pp).
TRT consistently outperformed Recursive Self-Aggregation (RSA) and standard parallel sampling, even when controlled for the same total "compute budget" (tokens generated).
Key Insights
- Learning from Mistakes: Recording failure modes ("don'ts") proved more powerful than simply reinforcing successful paths. Learning from mistakes is more informative for search than celebrating a lucky guess.
- Strategic Diversity: Using explicit "Strategy Design" (e.g., "work backwards" or "case analysis") is more effective for exploration than relying on random sampling temperature.
- Extreme Compression: The "Knowledge List" is remarkably efficient, occupying less than 1.5% of the context window even after 64 rounds of reasoning. By distilling insights rather than saving full reasoning traces, the model avoids getting "distracted" by its own verbose history.
- Depth over Breadth: Iterating deeply (many rounds with few attempts) is more effective than a massive parallel "shotgun" approach.
Conclusion
TRT provides a pathway for LLMs to self-improve at test-time without external feedback. While it increases computational cost per problem, the gains in accuracy on elite-level reasoning tasks are substantial. Future work will focus on improving self-verification mechanisms to further close the "selection gap" and extending the framework to more subjective domains.
Summary updated