Partial Reasoning in Language Models: Search and Refinement Guided by Uncertainty
Murilo da Luz, Bruno Brandão, Luana Martins, Gustavo Oliveira, Bryan de Oliveira, Luckeciano Melo, Telma Soares
TL;DR
The paper tackles the challenge of reliable multi-step reasoning in large language models by introducing PREGU, an entropy-driven framework that interrupts autoregressive generation at uncertainty hotspots and triggers a localized latent-space refinement via Soft Reasoning. By monitoring the Shannon entropy of next-token distributions, $H_t$, and applying a threshold $\tau$, PREGU generates multiple partial reasoning prefixes and refines them in latent space to select the best result, combining breadth with depth through Bayesian Optimization guided by Expected Improvement. Evaluations on LLaMA-3-8B, Mistral-7B, and Qwen2-7B across GSM8K, GSM-Hard, SVAMP, and StrategyQA show that PREGU matches or exceeds Soft Reasoning, with strong gains on long, multi-step tasks like GSM-Hard. The work demonstrates that internal uncertainty signals can serve as effective metacognitive cues to allocate computational effort toward the most informative refinements, improving reasoning reliability and efficiency in practical settings. It also provides insights into the linguistic manifestations of uncertainty, linking high-entropy moments to structural transitions in reasoning.
Abstract
The use of Large Language Models (LLMs) for reasoning and planning tasks has drawn increasing attention in Artificial Intelligence research. Despite their remarkable progress, these models still exhibit limitations in multi-step inference scenarios, particularly in mathematical and logical reasoning. We introduce PREGU (Partial Reasoning Guided by Uncertainty). PREGU monitors the entropy of the output distribution during autoregressive generation and halts the process whenever entropy exceeds a defined threshold, signaling uncertainty. From that point, a localized search is performed in the latent space to refine the partial reasoning and select the most coherent answer, using the Soft Reasoning method. Experiments conducted with LLaMA-3-8B, Mistral-7B, and Qwen2-7B across four reasoning benchmarks (GSM8K, GSM-Hard, SVAMP, and StrategyQA) showed performance greater than or similar to Soft Reasoning, indicating that entropy can serve as an effective signal to trigger selective refinement during reasoning.
