To Backtrack or Not to Backtrack: When Sequential Search Limits Model Reasoning
Tian Qin, David Alvarez-Melis, Samy Jelassi, Eran Malach
TL;DR
This paper investigates whether sequential backtracking vs parallel best-of-$n$ sampling optimally scales test-time compute for LLM reasoning. Using CountDown and Sudoku as controlled benchmarks, it compares backtracking models trained on explicit DFS traces with direct-solution models trained on correct solutions, evaluating under fixed compute budgets. It shows that backtracking is not universally superior: it underperforms in CountDown but outperforms in Sudoku, with backtracking performance highly sensitive to task structure, model size, and training paradigm. RL fine-tuning with GRPO generally enhances backtracking by enabling discovery of novel search strategies, while direct-solution models may gain in one-shot accuracy but lose diversity, reducing scalability under parallel search. The results highlight a nuanced landscape where the choice between sequential and parallel search should consider task depth, data biases, and potential RL benefits, with implications for designing reasoning systems that mix or adapt strategies by problem context.
Abstract
Recent advancements in large language models (LLMs) have significantly improved their reasoning abilities, particularly through techniques involving search and backtracking. Backtracking naturally scales test-time compute by enabling sequential, linearized exploration via long chain-of-thought (CoT) generation. However, this is not the only strategy for scaling test time-compute: parallel sampling with best-of-N selection provides an alternative that generates diverse solutions simultaneously. Despite the growing adoption of sequential search, its advantages over parallel sampling-especially under a fixed compute budget-remain poorly understood. In this paper, we systematically compare these two approaches on two challenging reasoning tasks: CountDown and Sudoku. Surprisingly, we find that sequential search underperforms parallel sampling on CountDown but outperforms it on Sudoku, suggesting that backtracking is not universally beneficial. We identify two factors that can cause backtracking to degrade performance: (1) training on fixed search traces can lock models intro suboptimal strategies, and (2) explicit CoT supervision can discourage implicit (non verbalized) reasoning. Extending our analysis to reinforcement learning (RL), we show that models with backtracking capabilities benefit significantly from RL fine-tuning, while models without backtracking see limited, mixed gains. Together, these findings challenge the assumption that backtracking universally enhances LLM reasoning, instead revealing a complex interaction between task structure, training data, model scale, and learning paradigm.
