Neural Chain-of-Thought Search: Searching the Optimal Reasoning Path to Enhance Large Language Models
Guoming Ling, Zhongzhan Huang, Yupei Lin, Junxin Li, Shanshan Zhong, Hefeng Wu, Liang Lin
TL;DR
This paper reframes chain-of-thought reasoning as a dynamic search for the optimal thinking path in large language models. It introduces Neural Chain-of-Thought Search (NCoTS), which uses a dual-factor heuristic to balance correctness and efficiency by selecting thinking operators at decision points, enabling active pruning of suboptimal reasoning branches. Empirical results across diverse benchmarks show Pareto improvements: average accuracy gains exceeding 3.5% and generation length reductions over 22%, with negligible inference overhead due to sparse activation. The work highlights the importance of high-level path planning in reasoning and demonstrates significant practical impact for more reliable and concise LLM reasoning at inference time.
Abstract
Chain-of-Thought reasoning has significantly enhanced the problem-solving capabilities of Large Language Models. Unfortunately, current models generate reasoning steps sequentially without foresight, often becoming trapped in suboptimal reasoning paths with redundant steps. In contrast, we introduce Neural Chain-of-Thought Search (NCoTS), a framework that reformulates reasoning as a dynamic search for the optimal thinking strategy. By quantitatively characterizing the solution space, we reveal the existence of sparse superior reasoning paths that are simultaneously more accurate and concise than standard outputs. Our method actively navigates towards these paths by evaluating candidate reasoning operators using a dual-factor heuristic that optimizes for both correctness and computational cost. Consequently, NCoTS achieves a Pareto improvement across diverse reasoning benchmarks, boosting accuracy by over 3.5% while reducing generation length by over 22%. Our code and data are available at https://github.com/MilkThink-Lab/Neural-CoT-Search.
