The standard mental model of an autoregressive Large Language Model (LLM) is purely reactive. The model operates token by token, reading the context to predict the immediate next word, entirely blind to what lies twenty or fifty tokens ahead. In this view, complex planning is an explicit, externalized process—something a model can only achieve by writing out a visible Chain-of-Thought (CoT).
However, a growing body of research reveals that this reactive model is an illusion. Long before an LLM emits its first output token, its internal hidden states have already performed a global assessment of the upcoming sequence. This phenomenon—latent foresight—means that models implicitly evaluate task difficulty, calculate required reasoning depths, and map out structural properties of the future text during the initial prompt processing phase. By probing and steering these hidden states, we can build input-adaptive systems that decide exactly "how hard to think" before generating a single word.
The Zero-Token Stage: How LLMs Assess Difficulty
When an LLM processes an input prompt, it executes a "prefill" pass. Although no text has been generated yet, the self-attention mechanism across dozens of layers aggregates the global context of the query. Recent work demonstrates that this forward pass acts as an implicit complexity classifier.
As shown by Yubo Zhu et al. (2025), LLMs encode their own perceived difficulty of a task within their internal hidden representations immediately after processing a prompt. By analyzing these states at the "zero-token stage," the authors could accurately predict whether the model would succeed or fail on a given question before generation began.
This internal awareness is not a passive byproduct; it is a structured representation that scales with the complexity of the problem. Mehul Damani et al. (2025) and Haotian Luo et al. (2025) demonstrated that lightweight auxiliary probes can be trained on these pre-existing internal states to identify the computational requirements of an input. Because the model's latent features naturally segregate simple queries from complex ones, these probes can predict the expected performance gain from additional computation without executing expensive decoding or sampling procedures.
[Input Prompt] ──> [Prefill Layers] ──> [Hidden States / Latent Space]
│
├──> Linear Probe ──> Predicts Difficulty & Length
│
└──> Generation ────> Adaptive Reasoning Path
Mapping the Horizon: Length and Structural Foresight
The model's latent foresight extends beyond abstract difficulty to concrete structural properties of the future text, such as sequence length and grammatical coordination.
Even though transformers are trained on a next-token objective, they maintain an internal sense of the generation's horizon. Grzegorz Piotrowski et al. (2025) discovered that LLMs implicitly track their remaining output length as a predictable scalar value embedded within their hidden states. This capacity is localized within specific sub-components of the network; Sangjun Moon et al. (2025) isolated these length representations to specific attention mechanisms in the earlier layers of the model, proving that length information is partially disentangled from semantic content. Remarkably, this native awareness is not unique to autoregressive architectures. Vittorio Rossi et al. (2026) demonstrated that Diffusion Language Models also inherently possess a latent capability to estimate output length, even when trained with fixed-length contexts.
This foresight allows the model to prepare for multi-token structures long before they appear on screen:
- Multi-Token Units: Koyena Pal et al. (2023) showed that LLMs pre-calculate multi-token concepts (like proper nouns or common phrases) as single units within a single hidden state, anticipating phrase structures up to three steps ahead.
- Global Coherence: Jim Maar et al. (2026) proved that models engage in implicit look-ahead to coordinate complex constraints, such as selecting a grammatically correct article ("a" vs. "an") based on a noun that has not yet been generated, or planning rhymes in advance.
- Long-Range Planning: To scale this understanding to macro-structures, Nicky Pochinkov et al. (2026) introduced the ParaScopes framework, demonstrating that paragraph- and document-level topic information is actively planned and decodable from internal activations prior to generation.
Input-Adaptive Inference: Learning How Hard to Think
If an LLM already knows how difficult a problem is and how long the response will be, we can exploit this signal to solve a major inefficiency in modern AI: computational overthinking. Standard inference pipelines treat every query identically, spending the same massive computational budget on simple arithmetic as they do on complex logic.
By tapping into latent foresight, researchers have designed systems that dynamically allocate hardware resources on the fly.
Steering the Reasoning Budget
In Large Reasoning Models (LRMs) that utilize long chains of thought, the model allocates its thinking time before generating its first internal thought. Leheng Sheng et al. (2025) identified a specific "pre-allocation vector" within the model's initial activations that correlates linearly with the total number of reasoning tokens it will produce. By manually steering this vector via activation engineering, the authors demonstrated that they could force the model to either think more deeply or respond more efficiently.
Lightweight Routing Frameworks
Instead of manual steering, frameworks like DiffAdapt, developed by Xiang Liu et al. (2026), attach a lightweight classifier to the internal hidden states during the initial prompt processing phase. If the classifier detects a low-difficulty latent signal, it routes the query to a token-efficient inference strategy, bypassing exhaustive reasoning traces and reducing token usage by up to 22%.
Similarly, Pingzhi Li et al. (2026) introduced Sonata, an adapter that reads the hidden representations of the model's final layer during the prefill stage. Because task-difficulty signals become increasingly distinct in deeper layers, Sonata can accurately allocate an exact reasoning budget before generation begins, cutting latency by over 30% while maintaining accuracy.
System-Level Scheduling
Latent foresight also solves infrastructure bottlenecks. In cloud deployments, scheduling queries of highly variable lengths into execution batches causes severe hardware underutilization. Zangwei Zheng et al. (2023) leveraged the model's internal perception of task scale by prompting or fine-tuning the LLM to explicitly output its expected token count before generating the actual response. By treating this predicted length as a known variable, their pipeline grouped queries with similar generation horizons into optimized micro-batches, increasing inference throughput by 86%.
Why It Works: The Geometry of Forethought
The success of these probing and steering methods suggests that the internal representations of transformers are not just historical logs of past tokens; they are geometric trajectories pointing toward a future destination.
When a model processes a prompt, the forward pass compresses the input into a latent space where task complexity, remaining token length, and structural goals coalesce into distinct directional vectors. Because these properties are linearly decodable and distinct from semantic content, the model can maintain global coherence and structural boundaries. Latent foresight proves that language models are not merely reactive text-spinners—they are proactive planners that size up their journey before taking their first step.
Key Foundational Work
Length Representations in Large Language Models (2025) — contributed 4 concept elements to this direction.
When Will the Tokens End? Graph-Based Forecasting for LLMs Output Length (2025) — contributed 3 concept elements to this direction.
Learning How Hard to Think: Input-Adaptive Allocation of LM Computation (2025) — contributed 2 concept elements to this direction.