Abstract
Large Reasoning Models (LRMs) achieve impressive performance on complex reasoning tasks via Chain-of-Thought (CoT) reasoning, which enables them to generate intermediate thinking tokens before arriving at the final answer. However, LRMs often suffer from significant overthinking, spending excessive compute time even after the answer is generated early on. Prior work has identified the existence of an optimal reasoning length such that truncating reasoning at this point significantly shortens CoT outputs with virtually no change in performance. However, determining optimal CoT lengths for practical datasets is highly non-trivial as they are fully task and model-dependent. In this paper, we precisely address this and design TERMINATOR, an early-exit strategy for LRMs at inference to mitigate overthinking. The central idea underpinning TERMINATOR is that the first arrival of an LRM's final answer is often predictable, and we leverage these first answer positions to create a novel dataset of optimal reasoning lengths to train TERMINATOR. Powered by this approach, TERMINATOR achieves significant reductions in CoT lengths of 14%-55% on average across four challenging practical datasets: MATH-500, AIME 2025, HumanEval, and GPQA, whilst outperforming current state-of-the-art methods.
Introduction: The Problem of Overthinking
Large Reasoning Models (LRMs) like OpenAI’s o1 or Qwen-7B-Thinking have revolutionized AI performance by utilizing "test-time compute"—essentially "thinking" before they speak. However, this comes with a massive computational cost. These models often suffer from overthinking: they continue to generate thousands of tokens, double-checking their work or exploring redundant paths, long after they have internally arrived at the correct solution.
Prior attempts to mitigate this, such as DEER or Dynasor, relied on heuristics or consistency checks. However, these methods often struggle to find the "Goldilocks" zone—stopping too early degrades accuracy, while stopping too late wastes compute. This research introduces the concept of the Hindsight-Optimal Reasoning Length (HORL): the absolute minimum number of tokens required for the model to produce its final answer.
Methods: The TERMINATOR Architecture
TERMINATOR is a novel early-exit strategy that uses a binary probe classifier to detect the exact moment a model has "found" the answer within its CoT. The system operates in two main phases:
- Dataset Curation (The "Extract-Identify-Verify" Pipeline): To train the model, the researchers built a robust pipeline using a "judge" LRM to identify the earliest logical arrival of the final answer in existing CoT traces. This pipeline extracts the answer, identifies its first occurrence, and verifies that truncating the CoT at that point does not change the final result.
- The Probe Classifier and Early Exit: Instead of retraining the entire LRM, a small binary probe (a single transformer layer and prediction head) is attached to the LRM’s final hidden states. During inference, this probe predicts a "1" (exit) or "0" (continue) at every token. To avoid premature exits due to noise, a sliding window of the last 10 tokens is used; if the majority of bits are "1," the system injects a
</think>token to force the final answer.
Key Insights: The Confidence Spike
A core discovery of this work is the "Confidence Spike." By using event-locked averaging (aligning many CoT traces at the moment the answer is first found), the researchers observed that an LRM’s internal confidence sharply peaks exactly when the answer is first generated. Following this peak, confidence often drops as the model begins to "doubt" itself and rethink. TERMINATOR is specifically trained to "catch" this peak.
Additionally, the researchers found predictable shifts in "thinking tokens." Filler words like "hmm" and "okay" are significantly more likely to appear before the answer is found, while words like "another" or "therefore" often signal the post-answer double-checking phase.
Results and Performance
TERMINATOR was evaluated on four challenging benchmarks: MATH-500, AIME 2025, HumanEval (coding), and GPQA (graduate-level science). It consistently outperformed state-of-the-art baselines on the Pareto frontier of accuracy vs. efficiency:
- Efficiency: Average CoT length reductions ranged from 14% to 55%. In real-world benchmarks on a GH200 GPU, TERMINATOR halved the average latency compared to the vanilla LRM.
- Accuracy: Unlike many early-exit methods that trade accuracy for speed, TERMINATOR often maintained or slightly improved accuracy by preventing the model from "talking itself out of" a correct answer during the overthinking phase.
- Scalability: The method proved robust across different model families, including Qwen3 and Ministral.
Limitations and Future Work
While TERMINATOR performed excellently on most benchmarks, it faced challenges with GPQA, where the reasoning is extremely high-level and the signal for having found the answer is noisier. Furthermore, curating the HORL dataset requires significant initial compute. Future work may explore "universal" probes that work across different LRM architectures without needing model-specific hidden states.
Summary updated