We show that reinforcement learning (RL) in reasoning tasks can succeed even when the supervised fine-tuning (SFT) data is severely corrupted. In a mathematical reasoning dataset (GSM8K), we systematically corrupt training trajectories across 361 configurations by injecting realistic error types, varying error locations, trace-answer consistency, and corruption ratios up to 100%. While aggregated SFT-only performance steadily deteriorates under corruption (dropping from 43.61% to 13.80%), Group Relative Policy Optimization (GRPO) post-training consistently restores model accuracy back to gold-baseline levels (approximately 60%). Crucially, initializing RL with as few as N = 8 minimal, incorrect, three-line "form-only" traces boosts post-RL performance to 69.30%, outperforming standard gold SFT initialization (60.71%) and GRPO without SFT (35.00%). Further, we show that SFT accuracy is largely uncorrelated with post-RL accuracy (r approximately 0), demonstrating a fundamental asymmetry in post-training: SFT primarily establishes structural layout (form), while RL independently discovers functional reasoning (function).
Figures & tables
Figure 1: Pipeline overview. Two human judges sort incorrect GRPO rollouts from OLMo-2-1B into six error types (symbols). Regex injects one type into a step of a gold GSM8K trace (squares) and propagates it to the final answer (circle).
Figure 2: GSM8K samples consist of diverse, multi-step mathematical reasoning. Form-only traces consist of solely the basic trace structure, with a correct and incorrect variant.
Figure 3: Example of our six corruption types injected into a GSM8K reasoning trace. For each corruption type, we use regex to modify a value and deterministically propagate the error through, resulting in an incorrect final answer.
Figure 4: Aggregated across all corruption configurations, as the fraction of corrupted training data increases, SFT model accuracy deteriorates, but GRPO post-training corrects this behavior and restores accuracy to near-gold baselines, even up to 100% corruption.
Figure 5: GRPO displays robustness to corrupted SFT initialization. The absolute accuracy differences between the lowest-performing corrupted configuration and its gold-initialized counterpart are larger in SFT-only (orange) than in SFT+GRPO (purple).
Figure 6: Gold GSM8K SFT + GRPO outperforms the GRPO-only baseline, while minimal form-only initializations achieve the highest overall accuracy.
Pass@k
1
2
4
8
16
32
Pearson r
-0.0631
-0.0569
-0.0461
-0.0309
-0.0055
0.0002
Table 1: Pearson correlations between SFT-only and SFT+GRPO accuracies across all training configurations remain low for each pass@ k value.
Figure 7: When analyzing data points from all training configurations across each pass@ k value, we do not observe a clear visual association between higher SFT-only accuracy and higher post-GRPO accuracy.
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 8: All corruption types exhibit a downwards trend in accuracy as corruption ratio increases. Results are averaged across all SFT configurations at pass@ 2 .
Figure 9: Corrupting the first equation leads to more degradation than corrupting the last equation. Results are averaged across all SFT configurations at pass@ 2 .
Figure 10: The (1,0) trace-answer configuration leads to the most degradation as the corruption ratio increased, followed by the (0,0) and (0,1) tuples. Results are averaged across all SFT configurations at pass@ 2 .
Figure 11: SFT on few form-only samples, whether corrupted or regular, outperforms both gold GSM8K initialization and GRPO-only baselines across all pass@ k values.
Figure 12: As corruption ratio increases, aggregated SFT-only performance deteriorates, but aggregated GRPO post-training corrects this behavior across all pass@ k values.
Recent advances in large language models (LLMs) have demonstrated that reinforcement fine-tuning of pretrained base models can lead to significant gains in reasoning performance at inference time. In this work, we theoretically analyze why reinforcement fine-tuning induces better reasoning ability than purely supervised fine-tuning (SFT) methods. We model chain-of-thought (CoT) reasoning as a pathfinding problem on graphs and compare the popular method of reinforcement learning with verifiable rewards (RLVR) against traditional SFT. We prove that SFT, when trained on golden shortest paths without negative examples, fails to learn how to efficiently backtrack. In contrast, an RLVR-trained model can learn how to efficiently backtrack from dead ends using only outcome reward. This leads to an exponential separation in inference-time compute between the two methods, and demonstrates that RLVR leads the model to learn the location of difficult decisions in a reasoning chain, ultimately allowing for better allocation of inference-time compute. Finally, we show that the reasoning traces of an RLVR model can be distilled to train a base model to backtrack efficiently as well.
Stanley Wei, Juno Kim
1Princeton University · University of California, Berkeley.
Large language models trained with Reinforcement Learning (RL) with verifiable rewards exhibit strong reasoning ability and broad generalization, whereas models trained with Supervised Fine-Tuning (SFT) are often viewed as more prone to memorization and limited transfer. This paper rethinks this distinction through the lens of SFT training data on widely used Qwen2.5 and Qwen3 series models. First, we study the role of data source and show that it is critical: a carefully mixed SFT dataset substantially outperforms data generated solely by a larger model. Second, we study the role of data scale and show that matching the number of correct rollouts between SFT and RL greatly improves SFT generalization, while matching the total rollout budget enables SFT to generalize as well as RL. Combining these two factors further enables SFT to generalize even better than RL. Third, by using LLM annotations to characterize the solution methods in training rollouts, we show that larger datasets cover more tail methods and that these tail methods provide generalizable reasoning signals. Finally, we support these empirical findings theoretically by analyzing the training dynamics of shallow transformers under both RL and SFT.
Yunlong Hou, Fengzhuo Zhang, Yuan Cheng +3
National University of Singapore, Singapore · Yale University, USA · Cisco Foundation AI, USA
Large language models trained with reinforcement learning (RL) to reason step by step have been increasingly shown to outperform their supervised fine-tuned (SFT) counterparts on mathematical reasoning tasks. Yet the mechanistic basis for this improvement remains unclear. We therefore ask, what internal representational differences enable RL-trained reasoning language models to reason better? Our work presents two primary lines of evidence: First, layer-wise linear probes tend to predict answer correctness more accurately in RL-trained reasoning language models than in instruction-tuned models on synthetic math problems, although output length alone matches the DeepSeek-Math-RL probe on two templates. Second, mean ablation studies suggest that accuracy drop rises with layer depth in DeepSeek-Math-RL but not in DeepSeek-Math-Instruct. Finally, we analyse token-count variability across accuracy bins for RL-trained reasoning language models and instruction-tuned models to measure whether token counts vary more on harder problems. Token counts tend to vary more on lower-accuracy problems, although in DeepSeek-Math-Instruct only with truncated responses included. At high accuracy, we observe lower variability in DeepSeek-Math-RL than in DeepSeek-Math-Instruct, and we observe higher variability in Olmo-3-Think than in Olmo-3-Instruct.