Agent-Editing World Model: Rethinking World Modeling for LLM Agents

Shuang Sun, Guoxin Chen, Fanzhe Meng, Jia Deng, Huatong Song, Jinhao Jiang, Wayne Xin Zhao, Hongteng Xu, Ji-Rong WenarXiv 2026

TL;DR

The Agent-Editing World Model (AEWM) rethinks world modeling for LLM agents by shifting the focus from predicting complex environment observations to evaluating and editing the agent's own internal state. By introducing an Action Judge to filter out unproductive actions and a State Revision mechanism to correct faulty reasoning before execution, AEWM fixes compounding errors in long-horizon tasks, yielding significant performance gains across search, terminal, and software engineering domains.

What Problem Does This Paper Address?

Traditional world models for LLM agents try to simulate environment dynamics by predicting the next observation or tool response. However, in complex, real-world tasks (like web searching or coding), tool responses are highly volatile, high-entropy, and execution-dependent. Simulating a dynamic webpage or a terminal output is incredibly difficult and often introduces hallucinations—offering little value when real tools can provide grounded feedback directly.

Meanwhile, LLM agents frequently suffer from task-state contamination. During long-horizon tasks, an agent might make an unsupported assumption or fail to update an outdated plan based on new feedback. Because this flawed reasoning is appended to the agent's context history, it corrupts all subsequent decisions, leading to a cascade of compounding failures.

The authors ask a fundamental question: What should a language world model actually predict to support reliable long-horizon agents? Their answer is to model and edit how the agent's internal interpretation and actions shape future task progress.

Methods

Instead of predicting environment observations ($M_{obs}(ot | st)$), AEWM directly intervenes on the agent's current pre-execution state ($st$). It consists of two primary components integrated into an execution loop called EditAct:

  1. Action Judge ($M_{AJ}$): Before an action is executed, the judge evaluates the proposed reasoning-action pair and classifies it into one of three categories:
  2. CRITICAL: Actions on the direct path to solving the task.
  3. EXPLORATORY: Actions that reduce uncertainty or test a plausible branch.
  4. NOISY: Unproductive actions that promote repetition, irrelevance, or constraint violations.
  5. State Revision ($M_{SR}$): If an action is flagged as NOISY, the State Revision module steps in before execution to rewrite both the reasoning and the action based on the visible history, effectively purging the "contamination" before it hits the real environment.
Overview of AEWM framework, showing data synthesis, training, and the EditAct inference loop.

Training Pipeline

AEWM is trained in a two-stage process using a Qwen3.5-35B-A3B backbone:

  • Mid-training: Done on 52.2B tokens across Search, Terminal, and Software Engineering (SWE) domains to build broad interaction knowledge.
  • Supervised Fine-Tuning (SFT): Done on 120K highly curated examples (60K for Action Judge, 60K for State Revision) to calibrate judgment and revision capabilities.

Offline Internalization (AEWM-RFT)

To eliminate online inference overhead, the authors introduce Rejection Sampling Fine-Tuning based on AEWM (AEWM-RFT). They collect successful trajectories corrected by EditAct and fine-tune the base agent on them, allowing the agent to internalize these self-correction patterns natively.

Datasets

The model was evaluated across three distinct domains using six established benchmarks:

  • Search: BrowseComp (deep-search tasks) and DeepSearchQA (multi-step answer-list generation).
  • Terminal: Terminal-Bench 2.0 (realistic command-line interface tasks).
  • SWE: SWE-Bench Pro (software engineering tasks), Doc2Repo, and NL2Repo (building repositories from scratch).

Additionally, the authors constructed a new, held-out Action Judge Benchmark consisting of 3,000 expert-annotated decisions (1,000 per domain) to rigorously evaluate pre-execution action judgment.

Key Insights and Ideas

  • Rethinking the World Model's Target: Shifting the predictive target from the environment's response to the agent's progress avoids the impossible task of simulating high-entropy environments while directly addressing the agent's core failure mode (mental contamination).
  • Direct State Editing vs. Critiques: Traditional reflection methods provide textual critiques, asking the agent to regenerate its step. AEWM directly replaces the faulty reasoning-action continuation in the history. Ablations proved that direct replacement is significantly more effective than critique-guided resampling.
  • Exploration is Not Noise: By explicitly separating EXPLORATORY actions from CRITICAL and NOISY ones, the Action Judge preserves the agent's ability to gather information and narrow down uncertainties without prematurely killing non-linear problem-solving paths.

Key Results

  • Action Judge Superiority: AEWM achieved 70.5% macro-F1 on the Action Judge benchmark, outperforming top-tier frontier models like GPT-5.5, Qwen3.7-Max, and DeepSeek-V4-Pro (which scored 59.9%) by 10.6 percentage points.
Action Judge performance across domains compared to frontier baselines.
  • Downstream Agent Boost: Integrating AEWM via EditAct consistently improved performance across all six benchmarks and three different agent backbones (Qwen3.5-4B, 9B, and 35B). For example, it boosted Qwen3.5-35B's score on Terminal-Bench 2.0 by 11.2 points (from 37.1% to 48.3%).
  • Successful Distillation: Agents fine-tuned via AEWM-RFT outperformed standard Self-RFT by 2.2 to 2.6 points across the board, proving that the benefits of agent-state editing can be successfully internalized without needing the world model at inference time.

Limitations and Future Work

  • The Capacity Gap: The authors noted that when the inference agent is significantly stronger than the AEWM (e.g., testing with Qwen3.5-Plus), the gains on certain benchmarks become limited. The world model must scale alongside or ahead of the agent it guides.
  • Scaffolding Dependency: EditAct relies on structured tool schemas and domain-specific scaffolds, meaning expanding it to entirely new environments requires upfront engineering and annotation effort.
  • Initial Trajectory Quality: The data synthesis pipeline relies on an annotation agent reviewing successful trajectories; generating high-quality seed trajectories for highly complex, novel domains remains a bottleneck.

Summary updated

BibTeX
@misc{sun2026agent,
  author = {Shuang Sun and Guoxin Chen and Fanzhe Meng and Jia Deng and Huatong Song and Jinhao Jiang and Wayne Xin Zhao and Hongteng Xu and Ji-Rong Wen},
  title = {{Agent-Editing World Model: Rethinking World Modeling for LLM Agents}},
  year = {2026},
  eprint = {2609.28416},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.28416},
}
Figure