Entropy-Gated Latent Recursion

Soham Bhattacharjee, Dushyant Singh Chauhan, Salem Lahlou, Martin Takac, Nils Lukas

This paper introduces Entropy-Gated Latent Recursion (EGLR), a novel method for scaling inference-time compute in Large Language Models (LLMs). While traditional methods like self-consistency rely on stochastic "noise" (temperature sampling) to generate diverse answers, EGLR identifies a second, fully deterministic axis of diversity: the layer span ($L$).

By recursively re-applying a model's top layers at moments of high uncertainty, the authors unlock a "Cartesian sampling space" that significantly outperforms traditional sampling methods at a nearly identical compute cost.

TL;DR

EGLR improves LLM reasoning by recursively re-processing uncertain tokens through a model's final layers, creating a new deterministic axis of diversity. When combined with traditional temperature sampling, this approach reaches a 91.6% oracle accuracy on MATH-500 (Qwen2.5-3B), outperforming standard sampling by over 8 percentage points.

What Problem Does This Paper Address?

Currently, the most popular way to make an LLM "think harder" at inference time is to generate multiple outputs and pick the best one (e.g., Self-Consistency or Best-of-N). However, these methods almost exclusively rely on token-level stochasticity—essentially adding random noise via temperature sampling to get different results.

The authors argue that this single-axis approach is fundamentally limiting. If you take 100 samples at a high temperature, you often just get 100 noisy versions of the same flawed reasoning. The paper asks: Is there a second, complementary axis that produces qualitatively different reasoning paths without relying on random noise?

Methods

The authors propose Entropy-Gated Latent Recursion (EGLR). It is a training-free decoding procedure that works as follows:

  1. Entropy Gating: During decoding, the model calculates the Shannon entropy of the next-token distribution. If the entropy is low (the model is certain), it proceeds normally. If entropy exceeds a threshold $\tau_H$, the "refinement loop" triggers.
  2. Latent Recursion: For uncertain tokens, the model takes the hidden state from an intermediate layer ($N-L$) and re-applies the top $L$ layers.
  3. State Fusion: The output of this recursion is fused with the original anchor state using a weight $\alpha$. This refined state is then passed back through the top $L$ layers again for up to $K_{max}$ iterations.
  4. Deterministic Diversity: By varying the layer span $L$ (how many top layers to repeat), the model produces different, deterministic trajectories for the same prompt.
Figure 2: Overview of Entropy-Gated Latent Recursion. At each decoding step, the entry gate checks H(pt) against τH (Eq. (4)). Tokens below threshold are emitted greedily. Above threshold, the top-L layers are re-applied to the fused anchor state (Eq. (9)) for up to Kmax iterations, with KL-based early exit (Eq. (12)). Varying L yields structurally distinct deterministic trajectories (Section 3.4).

Datasets

The researchers evaluated EGLR across eight models (Qwen2.5, Llama-3.1, Mistral) and six challenging math reasoning benchmarks:

  • GSM8K: Grade-school math.
  • MATH-500: Competition-level problems.
  • MinervaMath: Undergraduate STEM problems.
  • AMC23 & AIME24/25: High-level math Olympiad preparation problems.

Key Insights and Ideas

  • The $L$-axis is Complementary to Temperature: The problems solved by varying the layer span ($L$) are often different from those solved by varying temperature ($T$). As shown in Figure 1, the "correctness" map across the $L \times T$ grid is sparse and diverse.
  • Deterministic "Thinking": EGLR allows a frozen model to find new reasoning paths without any randomness. This is highly valuable for reproducible research and stable RL training.
  • Compute Efficiency: Because the refinement loop only triggers on high-uncertainty tokens (typically ~5% of the total tokens), the total FLOP overhead is minimal—often less than 5% for a single rollout.
  • No Single "Best" $L$: The optimal number of layers to recurse varies by model and problem. This makes the $L$-axis a perfect candidate for self-consistency aggregation (EGLR-SC).
Figure 1: The L×T sampling space on a single MATH-500 problem (Qwen2.5-3B-Instruct, #105). Each cell: correct (green ✓) or wrong (gray ×) under one (L, T) configuration. Red: T-only (L=0); blue: L-only (T =0); green: joint pool. Across all 500 MATH-500 problems, joint oracle = 91.6% vs. 83.4% (T-only) and 81.2% (L-only), confirming the two axes are complementary.

Key Results

  • Oracle Performance: On MATH-500 with Qwen2.5-3B-Instruct, the joint $L \times T$ oracle (the best answer found in the grid) reached 91.6%. This is a massive jump over the temperature-only oracle (83.4%) and the layer-only oracle (81.2%).
  • Outperforming Baselines: EGLR-SC (majority voting over the $L$ axis) improved accuracy over greedy decoding in 44 out of 48 tested model/dataset combinations.
  • Beating Beam Search: When matched for total compute (FLOPs), EGLR-SC outperformed beam search on 11 out of 12 benchmarks, often by significant margins (2–13 percentage points).
Table 4: Accuracy (%) across three rollout pools and three aggregation levels. The placeholder X in each row label is replaced by the column header: T, L, or L×T. For example, EGLR-OracleX reads as EGLR-OracleT , EGLR-OracleL, or EGLR-OracleL×T depending on the column. Pool sizes: 10 configs for T and L (excluding greedy); 100 configs for L×T. Greedy (L=0, T =0) is the shared one-forward-pass baseline.

Limitations and Future Work

  • Aggregation Gap: While the oracle performance is extremely high, simple majority voting (EGLR-SC) only captures about 28% of the potential gain. Better ways to select the "correct" trajectory from the pool (e.g., using verifiers or reward models) are needed.
  • Hyperparameter Sensitivity: While $\alpha$ (fusion weight) and $K_{max}$ (iterations) have "sweet spots," the method requires careful calibration of the entropy threshold $\tau_H$ to balance performance and compute.
  • Future Directions: The authors suggest using the $L \times T$ pool to provide more diverse candidates for Group Relative Policy Optimization (GRPO) in reinforcement learning, potentially leading to stronger base models.

Summary updated

Abstract

Inference-time scaling has become the dominant lever for improving language-model reasoning, but existing methods derive rollout diversity from a single source: stochastic token-level sampling. We argue that this single-axis sampling space is fundamentally limiting, and identify a second, fully deterministic and complementary axis: the layer span $L$ at which a frozen model's top decoder layers are recursively re-applied at high-uncertainty tokens. Different choices of $L$ produce distinct rollouts that solve different subsets of problems, with no stochasticity. We instantiate this axis through Entropy-Gated Latent Recursion (EGLR), a training-free decoding procedure that re-applies the top-$L$ layers for at most $K_{\max}$ iterations until the next-token distribution converges. Combined with $T$ temperature samples, EGLR turns a single-axis stochastic rollout pool into an $L\times T$ Cartesian sampling space at almost the same per-rollout cost. We characterize this space across $8$ instruction-tuned models and $6$ math reasoning benchmarks, and show that the $L$-axis is genuinely complementary to temperature: on MATH-500 with Qwen2.5-3B-Instruct, the joint $L\times T$ oracle reaches $91.6\%$, $+8.2$ percentage points beyond the temperature-only oracle ($83.4\%$) and $+10.4$ points beyond the layer-only oracle ($81.2\%$), confirming that the two axes capture genuinely complementary problems. The expanded rollout pool provides richer per-prompt candidates for any downstream procedure that consumes rollouts, including self-consistency, best-of-$N$ with verifiers, and group-relative RL training (GRPO), opening a new direction for inference-time scaling that does not rely on stochastic noise.
BibTeX
@inproceedings{bhattacharjee2026entropy,
  author = {Soham Bhattacharjee and Dushyant Singh Chauhan and Salem Lahlou and Martin Takac and Nils Lukas},
  title = {{Entropy-Gated Latent Recursion}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=UznQDehNbu},
}
Figure