From Token to Action: State Machine Reasoning to Mitigate Overthinking in Information Retrieval
Dohyeon Lee, Yeonseok Jeong, Seung-won Hwang
TL;DR
This work tackles overthinking in chain-of-thought prompting for information retrieval by introducing State Machine Reasoning (SMR), a transition-based framework that models reasoning as discrete actions over structured states $(q_t, D_t)$. By restricting reasoning to IR-specific actions—Refine, Rerank, and Stop—SMR achieves targeted, incremental improvements with early stopping, reducing token usage while maintaining or boosting retrieval quality. Empirical results on BRIGHT and BEIR show that SMR outperforms strong CoT baselines and compressed-CoT methods, with up to +3.4% ndcg@10 gains on BRIGHT and about a 74% reduction in inference tokens, and it generalizes across retrievers and LLMs without task-specific tuning. The approach offers a practical, tunable alternative to traditional CoT reasoning, enabling interpretable control over the retrieval process and efficient deployment in real-world IR systems.
Abstract
Chain-of-Thought (CoT) prompting enables complex reasoning in large language models (LLMs), including applications in information retrieval (IR). However, it often leads to overthinking, where models produce excessively long and semantically redundant traces with little or no benefit. We identify two key challenges in IR: redundant trajectories that revisit similar states and misguided reasoning that diverges from user intent. To address these, we propose State Machine Reasoning (SMR), a transition-based reasoning framework composed of discrete actions (Refine, Rerank, Stop) that support early stopping and fine-grained control. Experiments on the BEIR and BRIGHT benchmarks show that SMR improves retrieval performance (nDCG@10) by 3.4% while reducing token usage by 74.4%. It generalizes across LLMs and retrievers without requiring task-specific tuning, offering a practical alternative to conventional CoT reasoning. The code and details are available at https://github.com/ldilab/SMR.
