Logit–Entropy Adaptive Stopping Heuristic for Efficient Chain-of-Thought Reasoning

Mohammad Atif Quamar, Mohammad AreebER @ NeurIPS 2025

TL;DR

This paper introduces LEASH, a novel, training-free decoding algorithm that intelligently stops Chain-of-Thought (CoT) reasoning in large language models once sufficient explanation has been generated. By monitoring intrinsic signals like token entropy and logit margins, LEASH significantly reduces token usage and latency with only a minor drop in accuracy, making complex reasoning more efficient.

What Problem Does This Paper Address?

Large language models (LLMs) have shown remarkable capabilities in complex reasoning tasks when prompted to "think out loud" using Chain-of-Thought (CoT) prompting. This involves generating a step-by-step rationale before arriving at a final answer. However, a major drawback of standard CoT is its inefficiency: models often generate overly long, fixed-length rationales. This leads to wasted computational resources (inflated token usage) and increased response times (tail latency), making it impractical for real-time applications or resource-constrained environments. The core challenge is to determine, on a per-instance basis, when the model has generated enough reasoning without sacrificing accuracy. Existing solutions often involve fixed token budgets (ignoring problem difficulty), brittle heuristic triggers, or computationally expensive multi-sample reranking.

Methods

The paper proposes LEASH (Logit-Entropy Adaptive Stopping Heuristic), a training-free decoding algorithm designed to adaptively halt CoT rationale generation. LEASH operates by monitoring two intrinsic signals derived directly from the LLM's output logits during the generation process:

  1. Token-level Entropy ($H_t$): This measures the model's uncertainty about the next token. As reasoning progresses, entropy is expected to decrease as the model becomes more confident.
  2. Top-two Log-probability Margin ($M_t$): This quantifies the confidence of the model in its top predicted token compared to the second-best token. An increasing margin suggests the model is converging on a specific reasoning path.

LEASH uses these signals within a sliding window to detect when the trends of both entropy and margin improvement have "plateaued." Specifically, it looks for a low slope in entropy and stalled improvement in the margin. This plateau indicates that the model has reached a stable reasoning state. The algorithm also incorporates a minimum warm-up period and an entropy-drop gate to prevent premature stopping. Crucially, LEASH requires no additional training, no new models, and no architectural changes; it works by analyzing logits already computed by the base LLM.

Datasets

The paper evaluates LEASH on two established benchmarks for mathematical reasoning:

  • GSM8K: A dataset of grade-school math problems.
  • AQUA-RAT: An algebraic word problem dataset.

The evaluation uses the test split of AQUA-RAT and a randomly sampled subset of GSM8K.

Key Insights and Ideas

  • Intrinsic Signals are Sufficient: The core insight is that LLMs provide rich, intrinsic signals (logits) that can reliably indicate reasoning convergence without needing external supervision or complex verification mechanisms.
  • Plateauing Trends as Convergence: Identifying the "plateauing" of entropy slope and margin improvement is a clever way to detect when the model is no longer making significant progress in its reasoning, thus signaling a good stopping point.
  • Efficiency Without Major Accuracy Sacrifice: The ability to achieve substantial efficiency gains (token reduction, latency reduction) while only incurring a modest accuracy drop is a key practical advantage. This suggests a favorable trade-off for many real-world applications.
  • Model-Agnostic and Training-Free: The method's independence from specific model architectures or training procedures makes it highly versatile and easy to integrate into existing LLM pipelines.

Key Results

LEASH demonstrates significant efficiency improvements across four instruction-tuned LLMs on both GSM8K and AQUA-RAT:

  • Token Reduction: On average, LEASH reduces generated tokens by 30-35% compared to standard CoT. For example, the Phi-3-Mini model saw a reduction of 41.5% on GSM8K.
  • Latency Reduction: End-to-end latency is reduced by approximately 27% on average. This saving is consistent across models and datasets.
  • Accuracy Trade-off: LEASH incurs an average accuracy drop of about 10 percentage points compared to full CoT. However, it substantially outperforms "No-CoT" (direct answer without rationale) methods, indicating it preserves the core reasoning structure. For instance, on GSM8K, LEASH accuracy was 4.4x to 6.1x higher than No-CoT for Llama-3.1-8B and Mistral-7B, respectively.

Limitations and Future Work

  • Access to Logits: LEASH requires access to token-level logits, which might not be available in all inference setups (e.g., some black-box APIs).
  • Short-Answer Tasks: The current evaluation focuses on short-answer math tasks. Extending LEASH to longer-form, non-numeric reasoning or tool-augmented settings is a promising future direction.
  • Theoretical Guarantees: Analyzing theoretical stopping guarantees for CoT reasoning with LEASH is identified as a crucial research area.

Summary updated

BibTeX
@inproceedings{quamar2025logitentropy,
  author = {Mohammad Atif Quamar and Mohammad Areeb},
  title = {{Logit–Entropy Adaptive Stopping Heuristic for Efficient Chain-of-Thought Reasoning}},
  booktitle = {ER @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=5UTXI0iNn5},
}
Figure