When Further Realization Is Unnecessary: Amortized Reasoning for Long-Horizon LLM Agents

Rongzheng Wang, Jiakai Li, Renzhong Wang, Rongwei Wang, Yihong Huang, Dingyuan Rao, Jielei Wang, Shuang Liang, Ke QinNeurIPS 2026

TL;DR

When you ask an LLM agent to interact with a complex environment, it often knows what to do long before it finishes typing out how and why it’s doing it. This paper introduces MIRA, a training-free inference trick that peeks inside the model's middle layers to catch these settled decisions early, skipping redundant formatting and chain-of-thought chatter. By selectively bypassing verbose "full realizations" when a compact command will suffice, MIRA cuts output tokens nearly in half, speeds up inference by roughly 25%, and actually improves task accuracy.

What Problem Does This Paper Address?

Imagine you’re cooking dinner. You don't narrate a three-paragraph monologue about thermodynamic heat transfer and spatial kitchen navigation every time you wash a piece of lettuce—you just wash the lettuce.

Long-horizon LLM agents (systems like ReAct or CodeAct that solve multi-step interactive tasks) have a bad habit of doing the opposite. At every single step, even when the next move is a simple, settled API call or action (what the authors call a compact decision, like clean lettuce 1 with sinkbasin 1), the base agent insists on generating a full realization—verbose reasoning traces, boilerplate code structures, and elaborate formatting.

Previous attempts to speed up agents mostly operated from the outside: compressing prompts, redesigning tool interfaces, or swapping in smaller models. None of these asked the crucial model-internal question: When has the LLM already made up its mind inside its hidden states, and when does it genuinely need to "think out loud" to figure out the next step?

Methods

To avoid generating unnecessary tokens without modifying model weights, the authors propose MIRA (Model-Internal Reasoning Amortization). Think of MIRA as a fast-track lane inside a frozen LLM decoder, built on two stages:

  1. Consensus-Guided Decision (CGD) — Proposing a Shortcut: Before running the agent on test tasks, MIRA builds a Prefix Memory of successful past steps from training runs, storing their middle-layer (e.g., layer 20) hidden states alongside abstract action templates called decision schemas (like clean_with(obj, tool)). During live inference, MIRA pauses at that middle layer, grabs the current hidden state, and runs a standard $k$-nearest neighbors ($k$-NN) search against memory. What’s novel here is the Consensus Gate: if a strict majority of retrieved neighbors agree on the exact same schema, MIRA averages their latent prefixes and uses the remaining decoder layers to fill in the concrete arguments (producing a candidate like clean lettuce 1 with sinkbasin 1). If there's no majority consensus, MIRA immediately backs off and lets the base agent generate its usual verbose response.

  2. Attention-Guided Commitment (AGC) — Checking the Receipt: Just because a candidate action is easy to retrieve doesn't mean it's right for the current state. AGC evaluates the proposed candidate token span on a temporary cache branch using two internal signals:

  3. Token Confidence: Standard output-level average token probability.

  4. Span Concentration Gain ($G_t$): A novel diagnostic measuring how sharply attention entropy drops from the first token of the candidate action to the last.

Only if both signals clear preset thresholds does MIRA emit the compact decision directly. Otherwise, it discards the temporary branch and falls back to the safe, full realization path.

Datasets

MIRA is evaluated across three established interactive agent benchmarks (no new datasets are introduced, though successful training trajectories from each are used to populate Prefix Memory, strictly excluding test episodes):

  • ALFWorld: Text-based household navigation and object manipulation (evaluated on seen and unseen splits).
  • ScienceWorld: Complex interactive scientific experiments (seen and unseen splits).
  • WebShop: Simulated e-commerce browsing and purchasing (test set).

Key Insights and Ideas

Internal decoder signals separating compact decisions from full realizations, and accepted candidates from rejected ones.

Figure 1: Observation results on ALFWorld with Qwen3-8B. Panels (a) and (b) report the average over three base agents (ReAct [37], ReCode [38], and SkillNet [17]) with standard deviations, and compare layerwise Consensus entropy and recoverability under the compact decision labeling and the full realization labeling. Panels (c) and (d) pool accepted and rejected candidate cases and show the distribution and threshold behavior of span concentration gain Gt.
  • Decisions crystallize long before prose: Looking at panels (a) and (b) above, the authors found that in middle decoder layers (around layer 16–20), retrieved neighbors strongly agree on the compact decision (low entropy, high recoverability), whereas the full realization remains high-entropy and unresolved. The model figures out what to execute well before it figures out how to word its explanation.
  • Attention "locks in" on valid actions: Panels (c) and (d) reveal a fascinating internal tell. When a proposed action actually fits the environment state, the model's attention becomes markedly more concentrated (lower entropy) by the end of the action span compared to the start. Invalid or mismatched arguments fail to trigger this sharp concentration gain.
  • Less talking means fewer unforced errors: You might expect skipping chain-of-thought or code scaffolding to slightly hurt accuracy in exchange for speed. Instead, MIRA boosts task scores. Why? Because forcing a model to ramble once its decision is already settled introduces opportunities for formatting typos, repetitive loops, and semantic drift.

Key Results

Tested on Qwen3-8B across four diverse agent architectures—text-based (ReAct), code-based (CodeAct, ReCode), and procedure-based (SkillNet)—MIRA delivers consistent wins across the board:

  • 47.5% reduction in generated output tokens on average (dropping from 1.88k to 0.93k tokens per episode) and a 9.2% reduction in input tokens (since compact history takes up less context in later steps).
  • 24.7% reduction in wall-clock inference time per episode (ranging from 16.5% to 32.8% faster depending on how verbose the base agent natively is).
  • +3.0 point average improvement in task score across all agents and splits (e.g., pushing ReAct on ALFWorld-unseen from 64.5 to 68.0 while cutting episode time from 129.8s to 87.2s).
  • High precision: MIRA successfully takes the compact shortcut on 53% of correct steps (amortized ratio), while maintaining a tiny 5% false accept rate.

Limitations and Future Work

While the provided main text does not include a dedicated "Limitations" section, several practical constraints are apparent from the methodology and experimental setup:

  • Reliance on successful training trajectories: MIRA is training-free in terms of weight updates, not data-free. CGD requires a pre-populated Prefix Memory built from successful runs of the exact same base agent, plus a held-out calibration split per benchmark to tune the token confidence threshold ($\tau_c$).
  • Diminishing returns on naturally terse interfaces: As seen in the WebShop results, when an environment's native action format is already short and compact, the wall-clock speedup shrinks compared to verbose reasoning environments like ALFWorld.

Future directions are not explicitly discussed in the main text of the paper.

Summary updated

Abstract

Long-horizon LLM agents solve interactive tasks by repeatedly choosing the next action from the current state. At many steps, a compact decision is sufficient to specify the action, yet the base agent still emits a full realization in its native output format (e.g., code or action text). Once the compact decision determines the executable content of the step, subsequent generation mostly adds formatting and elaboration, yielding redundant realization. This separation is reflected inside the decoder: compact decisions become locally recoverable in middle layer representations before full realizations, and attention over its token span becomes concentrated when the decision is sufficiently supported as the current step output. Building on this separation, we propose MIRA, a training-free inference method for Model-Internal Reasoning Amortization. MIRA amortizes realization through two complementary stages: Consensus-Guided Decision retrieves successful reference steps in the middle layer representation space to propose a compact decision candidate. Attention-Guided Commitment evaluates its token span using token confidence and attention concentration. The candidate is used as the step output only when both signals support it for the current state; otherwise, the agent falls back to the base agent's full realization path. Experiments on long-horizon interactive agents show that MIRA improves task performance while reducing redundant realization, yielding a 47.5\% reduction in output tokens and a 24.7\% reduction in inference time across tasks and agent formats.
BibTeX
@inproceedings{wang2026when,
  author = {Rongzheng Wang and Jiakai Li and Renzhong Wang and Rongwei Wang and Yihong Huang and Dingyuan Rao and Jielei Wang and Shuang Liang and Ke Qin},
  title = {{When Further Realization Is Unnecessary: Amortized Reasoning for Long-Horizon LLM Agents}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=XG5Qyr7wgj},
}
Figure