MatryoshkaThinking: Recursive Test-Time Scaling Enables Efficient Reasoning

Hongwei Chen, Yishu Lei, Dan Zhang, Bo Ke, Danxiang Zhu, Xuyi Chen, Yuxiang Lu, Zhengjie Huang, Shikun Feng, Jingzhou He, Yu Sun, Hua Wu, Haifeng WangarXiv 2025 · DOI

Introduction

Large Language Models (LLMs) demonstrate improved performance when allocated additional computational resources during inference, a concept known as test-time scaling. Existing strategies typically involve sequential refinement—where a model iteratively improves a single response—or parallel scaling, where multiple candidates are generated and selected via majority voting or reward models. However, these methods often encounter diminishing returns; brute-force parallel sampling is computationally expensive, and low-quality reasoning traces can impede the selection of correct answers.

MatryoshkaThinking introduces a recursive test-time scaling framework designed to bridge the gap between Pass@$k$ and Pass@1 efficiently. By synthesizing intelligence from multiple reasoning paths, it achieves state-of-the-art performance on complex benchmarks like AIME2025 while utilizing significantly less compute than traditional parallel scaling methods.

Methodology

The MatryoshkaThinking framework operates through a recursive loop that integrates three core components: parallel sampling, self-verification, and latent summarization.

The MatryoshkaThinking framework: a recursive loop of sampling, self-verification, and latent summarization.
  1. Parallel Sampling: The model generates multiple candidate solutions for a given query simultaneously.
  2. Self-Verification: The model evaluates its own generated candidates, filtering out those that are logically inconsistent or contain internal errors.
  3. Latent Summarization: Rather than simple voting, the model synthesizes the surviving candidates into a refined "latent summary." This summary captures the collective reasoning logic across different paths, serving as a high-quality starting point for the next iteration.

This "Matryoshka" loop is repeated recursively. In each successive loop, the model leverages the accumulated history of verified solutions to generate increasingly accurate candidates. This structure allows the model to progressively converge on the correct solution without requiring additional training or external reward models.

Experimental Setup

The framework was evaluated across diverse reasoning modalities including text, code, vision, and audio. Testing spanned several model families, including ERNIE-4.5, GPT-OSS-120B, Seed-OSS-36B, and Qwen3. Key benchmarks included AIME 2024/2025 for mathematics, LiveCodeBench for coding, and MathVista/MMMU for multimodal reasoning.

Key Results and Insights

MatryoshkaThinking demonstrates exceptional efficiency in translating sampling budget into accuracy. On the AIME2025 benchmark, the method achieved a 99.79 Pass@1 score using only 42M tokens. In comparison, the DeepConf baseline required 1048M tokens—nearly 25 times more compute—to reach a similar performance level (99.90).

Comparison of AIME2025 Pass@1 performance against maximum token cost per query. MatryoshkaThinking achieves high accuracy with significantly lower token consumption.

Summary as Error Correction

A critical insight is that the summarization phase acts as a mechanism for inductive reasoning. Strong models can synthesize "partial truths" from multiple incorrect answers to derive a correct final solution. This process effectively "squeezes" the potential of multiple samples into a single, high-quality output, allowing models to reach performance levels typically requiring 32 or more independent samples.

Performance Gains Across Modalities

The framework significantly boosts models not originally optimized for long-form reasoning. For instance, Qwen3-30B-Instruct's AIME2025 performance improved from 43.64% to 69.68%. Furthermore, the benefits extend to multimodal tasks, with a +7.57% improvement observed on the MMSU audio reasoning benchmark.

Discussion and Limitations

While highly effective, the success of MatryoshkaThinking is contingent on the base model's intrinsic capabilities. Weaker models struggle with the "summary as error correction" effect, showing limited ability to induce correct answers from flawed contexts. Additionally, the self-verification step remains a potential bottleneck; in highly complex scenarios, a model might fail to identify subtle logical errors, leading to the retention of incorrect reasoning.

Future research may explore the integration of external tools, such as Python interpreters or web search, to provide objective feedback during the verification stage, potentially further enhancing the framework's scalability and robustness.

Summary updated

BibTeX
@misc{chen2025matryoshkathinking,
  author = {Hongwei Chen and Yishu Lei and Dan Zhang and Bo Ke and Danxiang Zhu and Xuyi Chen and Yuxiang Lu and Zhengjie Huang and Shikun Feng and Jingzhou He and Yu Sun and Hua Wu and Haifeng Wang},
  title = {{MatryoshkaThinking: Recursive Test-Time Scaling Enables Efficient Reasoning}},
  year = {2025},
  eprint = {2510.10293},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.10293},
}
Figure