How Much Backtracking is Enough? Exploring the Interplay of SFT and RL in Enhancing LLM Reasoning

Hongyi James Cai, Junlin Wang, Xiaoyin Chen, Bhuwan Dhingra · DOI

Introduction

The recent success of reasoning-focused Large Language Models (LLMs), such as DeepSeek-R1 and OpenAI’s o1, has highlighted the power of extended inference-time "thinking." These models utilize internal search and self-correction to achieve significant performance gains. However, the optimal training recipe—specifically the balance between Supervised Fine-Tuning (SFT) and Reinforcement Learning (RL)—remains a subject of intense research. This paper investigates whether SFT data must be perfect and how the inclusion of "backtracking" behaviors influences the final model's reasoning capabilities.

Methodology: Synthetic Backtracking

The researchers employed the Qwen2.5-3B-Instruct model, using a post-training pipeline of SFT followed by RL (PPO and GRPO). To systematically study reasoning structures, they generated synthetic data for tasks like Sudoku and Countdown using Depth-First Search (DFS) solvers.

Instead of providing only optimal solution paths, they intentionally injected "wrong turns" followed by a specific "Wait, let's backtrack!" token and a subsequent correction. This approach allowed for precise control over the "backtrack budget" in the SFT demonstrations, effectively seeding the model with search-like behaviors.

Illustration of synthetic backtracking reasoning traces for the Countdown task, showing how models are taught to recover from errors using a dedicated backtrack token.

Key Insights

1. Structure Over Content

A surprising finding is that the correctness of the SFT reasoning chains is less important than their structural format. As long as the model is exposed to the correct logical steps and search patterns, RL can eventually optimize for factual correctness. This suggests that SFT serves primarily to establish a behavioral "scaffold" for the RL phase.

2. The Backtrack Budget Scales with Difficulty

The optimal amount of backtracking in SFT data is task-dependent:

  • Simple tasks (e.g., Arc 1D) perform best with zero backtracks.
  • Moderate tasks (e.g., Countdown) peak with a single backtrack.
  • Complex tasks (e.g., Sudoku) require significant seeding—at least five backtracks—to enable effective RL learning.

3. RL as a Behavioral Amplifier

RL does not typically invent complex reasoning strategies from scratch; rather, it amplifies and refines patterns already seeded during SFT. Without these initial patterns (like backtracking), RL often fails to converge on difficult tasks.

Experimental Results

The study evaluated models across eight diverse tasks from the Reasoning Gym benchmark.

  • Sudoku: Both cold-start RL and zero-backtrack SFT models failed completely. However, a model pre-tuned with 5 backtracks achieved 28.9% accuracy, outperforming the much larger QwQ-32B baseline.
  • Countdown: The 1-backtrack model reached 69.7% accuracy, compared to 38.9% for the cold-start RL version.
Countdown task evaluation and reward trajectories. (a) Comparison of final accuracy across different SFT initializations. (b) Reward trajectories during RL training, illustrating how models initialized with different reasoning traces converge toward high performance.

Conclusion

This research demonstrates that teaching LLMs how to think—through structured search and backtracking—is more critical than providing perfect demonstrations. By strategically seeding these behaviors in SFT data, developers can significantly enhance the effectiveness of subsequent RL training. Future work will explore the scalability of these insights to larger models and more open-ended reasoning domains.

Summary updated

BibTeX
@inproceedings{cai2026how,
  author = {Hongyi James Cai and Junlin Wang and Xiaoyin Chen and Bhuwan Dhingra},
  title = {{How Much Backtracking is Enough? Exploring the Interplay of SFT and RL in Enhancing LLM Reasoning}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=bpVWLDwlu4},
}
Figure