TL;DR
Current Large Language Model (LLM) decoding strategies either explore the decision space blindly via random sampling or redundantly through independent multi-chain sampling. Entropy-Tree addresses this by dynamically monitoring token-level entropy and self-attention to branch the decoding tree only at critical, uncertain decision points. This unified approach significantly boosts reasoning accuracy (pass@k) while providing highly calibrated uncertainty quantification, all while saving substantial computational resources through prefix sharing.
What Problem Does This Paper Address?
When tackling complex reasoning tasks (like advanced mathematics or scientific problem-solving), a single deterministic output from an LLM often falls short. To fix this, standard techniques either introduce indiscriminate randomness (like top-$k$ or top-$p$ sampling) or generate multiple independent answers from scratch and vote on the most common one (Self-Consistency).
However, these approaches suffer from two major flaws:
- Blind Exploration: Randomness is applied uniformly across all tokens, regardless of whether the model is highly confident or genuinely stuck.
- Computational Redundancy: Generating independent sequences means the model repeatedly re-computes identical prefixes, wasting massive amounts of compute on redundant paths.
Furthermore, traditional methods for measuring an LLM's uncertainty rely on these same random samples, leading to poorly calibrated confidence metrics.
Methods
Entropy-Tree introduces a structured, tree-based decoding framework that branches dynamically based on two filtering steps:
- Branch Point Filtering: At each timestep $t$, the algorithm calculates the token-wise entropy ($H_t$). If $H_t$ exceeds a threshold $\tau$, the token becomes a candidate for branching. To prevent the tree from splitting on high-entropy but semantically trivial tokens (like syntactic hesitations over "the" or "it"), the method computes a self-attention importance score ($I_t$). Branching only occurs if both the entropy and importance thresholds are met.
- Tree Expansion and Size Control: When a valid branch point is found, the algorithm stops random sampling and explicitly spawns the top-$b$ most probable tokens as new branches. The tree expands using a breadth-first search (BFS) strategy. To prevent an exponential explosion of the tree size, the total number of concurrent leaf nodes is capped at $N_{tree}$. Once this limit is hit, the model stops branching and finishes the remaining paths using standard sampling.
Finally, the final answer distribution across the leaf nodes is used to calculate the predictive entropy, providing a built-in metric for uncertainty quantification.
Datasets
The authors evaluated Entropy-Tree on several challenging reasoning benchmarks across different domains:
- SVAMP: 300 elementary-level math word problems.
- MATH-500: 500 high school math problems spanning various difficulty levels.
- SciBench: 692 college-level scientific and engineering problems.
- GPQA (main/diamond): 448/198 graduate-level questions in physics, chemistry, and biology.
- AIME24/25: 30 highly complex math competition problems per set.
Evaluations were performed using the Qwen2.5-Instruct model series (7B, 14B, and 32B parameters).
Key Insights and Ideas
- The 80/20 Rule of Reasoning: Prior research shows that roughly 80% of tokens in a chain-of-thought sequence are low-entropy (used for syntactic coherence), while only 20% act as "decision forks" (e.g., logical connectives like "thus" or "however"). Entropy-Tree successfully operationalizes this insight to concentrate compute precisely where the model hesitates.
- Prefix Sharing is a Compute Multiplier: By structuring decoding as a tree rather than independent chains, paths share their historical context. This eliminates redundant prefix computations and allows the model to explore diverse reasoning paths much more efficiently.
- Better Exploration Yields Better Calibration: Because the tree structure systematically uncovers genuine alternative reasoning paths rather than relying on random variations, the resulting answer distribution aligns much more accurately with the model's true uncertainty.
Key Results
- Higher Accuracy with Less Compute: Entropy-Tree consistently outperformed standard Multi-chain sampling in pass@k metrics. Notably, on the MATH-500 dataset, Entropy-Tree required only about 2/3 of the sample size ($k=13$) to match the accuracy of a Multi-chain strategy at $k=20$.
- Superior Uncertainty Quantification: The tree-derived predictive entropy (ET-PE) achieved the highest AUROC scores across almost all models and datasets when predicting answer correctness, outperforming traditional sampling-based predictive entropy, semantic entropy, and verbalized self-evaluation ($p(\text{True})$).
Limitations and Future Work
The primary limitation of Entropy-Tree is its reliance on internal model states. It requires direct access to token-level logits and self-attention scores at every decoding step. This introduces slight computational latency and makes the method incompatible with closed-source, black-box LLM APIs that only return text outputs.
For future work, the authors plan to integrate Entropy-Tree into high-performance open-source inference engines like vLLM and explore how this structured exploration can be used to improve the efficiency of reinforcement learning sampling.
Summary updated