Large Language Models (LLMs) have demonstrated remarkable abilities in reasoning and planning. However, they are notoriously "short-sighted." Because standard LLMs use autoregressive decoding—generating text one token at a time based solely on preceding tokens—they often fail to consider the long-term consequences of their immediate choices.
This paper introduces Predictive-Decoding, a training-free method that uses "foresight" (simulating future steps) to re-weight current choices. This approach significantly boosts performance in math, coding, and planning tasks while remaining more computationally efficient than traditional search-based methods.
The Bottleneck of Myopic Reasoning
While autoregressive generation is highly effective for standard chat applications, it becomes a major bottleneck for complex reasoning and planning. The authors describe this as the "myopic" (short-sighted) nature of LLMs: a model might pick a locally "natural" next step that inevitably leads to an irreversible error later in the sequence.
For example, in a virtual household planning task, a model might see a cellphone on a table and immediately generate "Pick up the cellphone" because it is a high-probability local follow-up. However, if the actual goal is to examine an alarm clock, this early misstep dooms the plan. By the time the error becomes obvious, the plan has already failed. Existing solutions like Monte Carlo Tree Search (MCTS) can help, but they are often computationally expensive and struggle with the exponential growth of possible paths.
The Solution: Predictive-Decoding
To overcome this, the authors propose Predictive-Decoding, a method inspired by Model Predictive Control (MPC)—a classic technique used in robotics and industrial control to optimize current actions based on future predictions.
The core algorithm operates through three main mechanisms:
- Foresight Sampling: At each decision step, the model does not simply pick the most likely next action. Instead, it samples $K$ different "foresight trajectories" (potential future steps) in parallel.
- Self-Evaluation & Re-weighting: The model (or an external reward model) evaluates these projected futures. Using Sampling-Importance-Resampling (SIR), the probability of the current action is rescaled based on the success rate of its projected futures.
- Trajectory Recycling: To maintain computational efficiency, the authors implemented a memory pool. Because different reasoning paths often overlap, previously sampled futures are reused to evaluate new steps, drastically reducing the cost of foresight.
Importantly, Predictive-Decoding is a "plug-and-play" inference-time strategy, requiring no fine-tuning of the underlying LLM.
Key Insights and Empirical Gains
Evaluating across diverse domains—including mathematical reasoning (GSM8K, MATH), coding (HumanEval, MBPP), and agent planning (AlfWorld, PDDL)—the authors uncovered several critical insights about LLM behavior.
The "Myopic Gap" is Real
The researchers quantified the "myopic gap"—the difference in probability between the model's preferred local choice and the globally optimal one. They found that over 60% of reasoning processes in models like Llama-3 exhibit a lack of global awareness, particularly in incorrect samples.
LLMs are Better Critics of the Future
A fascinating finding is that LLMs struggle to identify a mistake at the exact moment it happens, but they are much better at recognizing a failing plan after observing a few subsequent steps. Foresight acts as a buffer that makes early errors visible before they are committed to.
Performance and Efficiency
Predictive-Decoding achieves Pareto superiority over N-step search methods like MCTS and Guided Decoding, meaning it delivers better results for the same or lower computational cost.
- Accuracy Gains: On the GSM8K math benchmark, Predictive-Decoding improved Llama-3-8B accuracy by 7.2%. On the AlfWorld agent task, it improved success rates by a staggering 25.3% over the popular ReAct baseline.
- Efficiency: On GSM8K, Predictive-Decoding outperformed MCTS by 2.4% while utilizing only 50% of the FLOPs.
- Robustness: The method also demonstrated strong prompt robustness. Even when given brief or low-quality instructions, Predictive-Decoding maintained high performance, whereas standard decoding accuracy plummeted.
Limitations and Future Directions
While powerful, Predictive-Decoding has limitations. In agent tasks, the LLM must act as its own "world model" to predict future states. If the model hallucinates the state of the world (e.g., imagining a locked door is open), the foresight trajectories become misleading. Additionally, the current method is optimized for tasks with discrete, clear reasoning steps; applying it to free-form, creative long-context generation remains an open challenge.
Ultimately, Predictive-Decoding offers a highly efficient, training-free mechanism to grant LLMs the foresight needed for reliable, complex planning.
Summary updated