TL;DR
While large language models (LLMs) theoretically possess sequence-level planning capabilities, they often exhibit biased, "short-sighted" behavior on their very first steps at inference time. This paper introduces a Bayesian framework explaining that human prompts act as out-of-distribution inputs, causing the model to initially rely on a biased prior. As the LLM generates its own tokens, it dynamically shifts and converges toward an optimal, unbiased plan.
What Problem Does This Paper Address?
Autoregressive LLMs generate text token-by-token, yet training them on next-token prediction implicitly forces them to model entire future sequences. Mechanistic interpretability work confirms this: future tokens can often be decoded from the model's early- and mid-layer activations.
However, a frustrating paradox remains: at inference time, LLMs frequently act short-sighted or fail to follow complex, long-term plans from the outset. Why is there a gap between their latent planning capabilities and their actual behavior?
The authors propose that the culprit is a distribution mismatch. Human-written prompts ($I_C$) differ subtly from the model's internalized language distribution ($I_M$). When faced with an out-of-distribution (OOD) human prompt, the model experiences high uncertainty, causing its initial planning steps to falter.
Methods
The authors formalize this phenomenon using a Meta-learned Bayesian Prior framework. At inference time, the model infers a response sequence $s$ by combining its encoded domain prior with the prompt's planning likelihood:
$$P(s|I, \phi) \propto P(I|s, \phi) \cdot P(s|\phi)$$
When a prompt is out-of-distribution ($I_C$), the entropy of the planning likelihood $P(I_C|s, \phi)$ is high, forcing the model to rely heavily on its domain prior $P(s|\phi)$, which can introduce initial biases. However, as the model generates its own tokens, this self-generated context ($I_M$) is fed back into the prompt. This "prior-suppressing" process reduces uncertainty, allowing the true planning likelihood to dominate and steer the model back on track.
To test this theory, the authors designed two controlled experiments using open-source models (Llama-3.1-8B-Instruct and Qwen-2.5-7B-Instruct):
- Random Generation Task: Probing internal embeddings using LASSO regression to see how well representations at time $t$ predict future tokens ($y_{t+\Delta t}$).
- Gaussian Sampling Task: Measuring explicit generation bias by prompting models to continue a sequence of numbers drawn from a Gaussian distribution $N(\mu, 10)$.
Datasets
Rather than using standard text benchmarks, the authors utilized controlled synthetic tasks to precisely isolate and measure planning dynamics:
- Height Simulation Sequence: 69 distinct sequences of 60 random numeric height estimates initialized with starting values from 151 cm to 220 cm.
- Gaussian Number Sequences: Sequences generated from seven different ground-truth mean ($\mu$) conditions ranging from -50 to 50.
Key Insights and Ideas
- The "False First Step" is Rational: The initial stumble or short-sightedness of an LLM isn't due to a broken planning mechanism. It is a mathematically sound Bayesian response to the high uncertainty of an OOD human prompt.
- Context-Driven Planning Shift: As an LLM generates text, it literally alters its own input distribution. By accumulating self-generated tokens ($I_M$), the model moves the context back into its training distribution, sharpening its internal plan.
- Biasing-then-Debiasing Dynamic: LLMs exhibit a distinct pattern where they start with a strong baseline bias (often pulling towards a default internal representation) and rapidly self-correct—or even over-correct—as the generation sequence progresses.
Key Results
- Planning Strength Converges: In the random generation task, the model's ability to look ahead improved dramatically over time. As self-generated context accumulated, the $R^2$ metric for predicting tokens 8 steps in advance rose from baseline levels to nearly 0.8 for Llama and approached 1.0 for Qwen (see Figure 3).
- Self-Correction of Bias: In the Gaussian task, when models were conditioned on true human/external Gaussian samples (Gen I), they showed a significant initial negative bias (e.g., Llama generating a mean of -9.63 when the true $\mu = 0$). However, when conditioned on their own previous generations (Gen II), this starting bias was significantly mitigated (improving to -2.71), proving that self-generated context stabilizes planning.
Limitations and Future Work
The primary limitation of this study is its reliance on highly structured, low-dimensional numeric generation tasks (heights and Gaussian distributions) to easily quantify bias and predictability. The authors note that future research must explore whether these exact "biasing-then-debiasing" and "planning convergence" dynamics hold true in unconstrained, semantically open-ended free-text generation.
Summary updated