Organizations: School of Computer Science and Technology, Soochow University · Department of Foundation Model, 2012 Labs, Huawei · College of Intelligence and Computing, Tianjin University
Reinforcement learning with verifiable rewards (RLVR) has shown promise in enhancing the reasoning performance of large language models (LLMs) by increasing test-time compute. However, even after extensive RLVR training, such models still tend to generate unnecessary and low-quality steps in their chain-of-thought (CoT), leading to inefficient overthinking and lower answer quality. We show that when the initial direction or quality of the CoT is suboptimal, the model often fails to reach the correct answer, even after generating several times more tokens than when the initial CoT is well-initialized. To this end, we introduce Reinforcement Learning with Re-solving (Re2), in which LLMs learn to flexibly abandon unproductive reasoning paths and restart the solution process when necessary, rather than always committing to a final answer. Re2 applies pure reinforcement learning without any preliminary supervised fine-tuning, successfully amplifying the rare redo behavior in vanilla models from only 0.5% to over 30%. This leads to substantial performance gains over standard RLVR under the same training compute budget, and also demonstrates notable improvements in test-time performance as the number of samples increases.
Figures & tables
Figure 1: (a) Accuracy improvements of DAPO and Re 2 on Qwen2.5-7B-Instruct at each training step, with comparable numbers of generated and trained tokens per step. (b) Test-time scaling of DAPO and Re 2 under the same training budget, as the number of samples increases.
Figure 2: Illustration of reasoning with re-solving. (a) In standard reasoning, when the initial steps are suboptimal, the LLM struggles to reach the correct answer even after generating more reasoning steps and tokens. (b) Reasoning with re-solving, allowing the model to abandon an unpromising path and restart at any point, leads to a higher overall accuracy. (c) Example trace of DAPO and Re 2 : Both models initially attempt an incorrect approach using the AM–GM inequality; however, Re 2 detects the failure, restarts, and arrives at the correct answer.
Figure 3: Correlation between CoT length and reasoning performance. The bars represent the proportion of cases within different CoT length intervals, while the line indicates the average accuracy for responses in each interval. The large plots in the top row show the correlation across the entire dataset. The small plots in the second row illustrate the correlation at the level of individual problems.
Figure 4: Number of cases where the relative drop exceeds the threshold when continuing from different proportions of incorrect response prefixes, compared to reasoning from scratch. “All Drops” counts all such cases at each prefix proportion, while “First Drops” records the earliest prefix for each response where the drop exceeds the threshold.
Figure 5: The framework of Re 2 . For each query, Re 2 samples multiple prefixes, then generates multiple continuations for each prefix. The advantage is calculated within each group, while the out-of-group accuracy is used as the reward for the redo action.
Algorithm 1 Re 2 : Reinforcement Learning with Resolving
Input initial policy model πθ ; task prompts D ; maximum training steps s ; number of prefixes n ; number of continuations m ; max resolve rounds R ; clipping thresholds εlow,εhigh ; update steps per batch μ
for step = 1,…, s do
1: Sample a mini-batch Db from D
2: For each question q∈Db , sample n responses from πθold(⋅∣q) and truncate them at random ratios to form prefixes {Prei}i=1n
3: For each prefix Prei , sample m continuations {Oi,j}j=1m∼πθold(⋅∣q,Prefixi)
4: Compute rewards {ri,j} according to Eq. 1
Table 1:
Models
Methods
AIME24
AIME25
AMC23
GSM8K
GPQA
Avg
Base Model
Qwen2.5-7B Base
+ DAPO
11.9
10.3
64.7
91.8
29.7
41.7
+ Re 2
17.1
19.0
70.8
93.6
36.8
47.5 (+5.8)
Qwen2.5-14B Base
+ DAPO
18.2
15.7
64.0
94.3
44.8
47.4
+ Re 2
28.5
23.4
68.5
94.6
49.6
52.9 (+5.5)
Instruct Model
Table 1: Experimental results on five reasoning benchmarks. Re 2 consistently improves the overall reasoning performance of each model over DAPO ( p -value <0.05 ). Red numbers in parentheses indicate performance gains relative to DAPO.
Figure 6: Test-time scaling of DAPO and Re 2 under the same training budget as the number of samples increases.
Figure 7: The training progress of Re 2 on Qwen2.5-14B-Base.
Figure 8: Analysis of accuracy and behavior across problem difficulty levels. (a) Accuracy improvements of DAPO and Re 2 , along with the resolving rate of Re 2 , when questions are grouped by the difficulty estimated by the base model. (b) Accuracy improvements and resolving rate of Re 2 when questions are grouped by the difficulty estimated by DAPO.
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 9: The template of Re 2 .
Models
Methods
AIME24
AIME25
AMC23
GSM8K
GPQA
Base Model
Qwen2.5-7B Base
+ DAPO
11.9 (±1.0)
10.3 (±1.0)
64.7 (±1.3)
91.8 (±0.1)
29.7 (±0.5)
+ Re 2
17.1 (±1.4)
19.0 (±1.2)
70.8 (±0.3)
93.6 (±0.0)
36.8 (±0.3)
Qwen2.5-14B Base
+ DAPO
18.2 (±1.2)
15.7 (±1.2)
64.0 (±1.3)
94.3 (±0.1)
44.8 (±0.6)
+ Re 2
28.5 (±1.1)
23.4 (±1.3)
68.5 (±0.3)
94.6 (±0.0)
49.6 (±0.3)
Instruct Model
Appendix
Table 2: Accuracy with 95% confidence intervals on five reasoning benchmarks, confidence intervals are given in parentheses.
Figure 10: Test-time scaling of Re 2 compared with additional baselines.
Figure 11: Bias and variance of the estimated resolving accuracy under different values of n and m .
Figure 12: Degeneration group rate during training for DAPO and Re 2 .
Figure 13: Reasoning lengths during training for DAPO and Re 2 .
Figure 14: Accuracy improvements of DAPO and Re 2 under the same training time.
Figure 15: Case Analysis of CoTs with Different Lengths in AIME25
Figure 16: Case Analysis of CoTs with Different Lengths in AIME25
Figure 17: Case Analysis of CoTs with Different Lengths in AIME25
Figure 18: Case Analysis of CoTs with Different Lengths in AMC
Figure 19: Re 2 Examples 1
Figure 20: Re 2 Examples 2
Figure 21: Re 2 Examples 3
Figure 22: Re 2 Examples 4
Methods
AIME25
AMC23
MATH500
GSM8K
OpenPangu-Embedded-1B
4.7
22.2
49.3
64.4
+ Re 2
8.6
35.3
65.8
81.0
Appendix
Table 3: The accuracy of OpenPangu-Embedded-1B and Re 2 on four benchmarks.
School of Computer Science and Technology, East China Normal University, Shanghai 200241, China · State Key Laboratory of Estuarine and Coastal Research, School of Computer Science and Technology, East China Normal University, Shanghai 200241, China
Dept. of Comp. Sci. & Tech., Institute for AI, Tsinghua University, Beijing, China · Institute for AI Industry Research (AIR), Tsinghua University, Beijing, China · WeChat AI, Tencent Inc., China