{
  "@context": "https://schema.org",
  "@id": "https://aggr.aymericbeaumet.com/items/qwen-ai/2026-06-23-qwen-agentworld-language-world-models-for-general-agents/#webpage",
  "@type": [
    "WebPage",
    "ArchiveComponent"
  ],
  "articleBody": "![](https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen-AgentWorld/group_capybaras_flat.png#center)\n\n[PAPER](http://arxiv.org/abs/2606.24597) [GITHUB](https://github.com/QwenLM/Qwen-AgentWorld) [HUGGING FACE](https://huggingface.co/collections/Qwen/qwen-agentworld) [MODELSCOPE](https://modelscope.cn/collections/Qwen/Qwen-AgentWorld)\n\nToday we release **Qwen-AgentWorld**, a native language world model that simulates agent environments across seven domains:\n\n- **Native world modeling:** environment modeling is the training objective from continual pre-training onward (CPT → SFT → RL), not a post hoc adaptation on top of a general-purpose LLM.\n- **Seven domains, one model:** a single model simulates text-based (MCP, Search, Terminal, SWE) and GUI-based (Web, OS, Android) environments, with knowledge transferring across domains.\n\nTogether with the model, we release **AgentWorldBench**, a seven-domain evaluation benchmark with paired ground-truth observations from real environments. Both are available on [Hugging Face](https://huggingface.co/collections/Qwen/qwen-agentworld) and [ModelScope](https://modelscope.cn/collections/Qwen/Qwen-AgentWorld).\n\n* * *\n\nLanguage agents are trained to act in interactive environments, but no language model has been explicitly trained to model the environments themselves — to predict what happens next given the current state and an agent’s action.\n\n> **Roadmap:** Qwen-AgentWorld represents our attempt to investigate how world modeling built on language models can further push the boundaries of general agent capabilities.\n\nWe explore both how to achieve language world modeling and how to apply it to advance general agents:\n\n- First, we **build a foundation model for agentic environment simulation**: Qwen-AgentWorld is the first language world model to cover seven agent interaction domains within a single model (MCP, Search, Terminal, SWE, Web, OS, Android), trained through CPT → SFT → RL on more than 10M real environment interaction trajectories. On AgentWorldBench, Qwen-AgentWorld-397B-A17B achieves the highest overall simulation quality, outperforming GPT-5.4, Claude Opus 4.8, and Gemini 3.1 Pro.\n- Second, we **investigate the role of world modeling in agent training** through two complementary paradigms: as a *decoupled* environment simulator, it provides superior scalability and controllability for agentic RL. Controllable simulated RL shapes agent behavior in ways that real environments cannot and significantly outperforms RL trained solely in real-world environments; as a *unified* agent foundation model, LWM warm-up enables effective transfer to multi-turn agentic tasks across seven benchmarks, including three entirely out of domain, without requiring any RL fine-tuning on agentic tasks, providing initial validation that language world models can serve as a foundation for building stronger agent models.\n\n![Qwen-AgentWorld Overview](https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen-AgentWorld/teaser.png)\n\n*Qwen-AgentWorld: a native language world model across seven unified domains, with two complementary paradigms for enhancing general agents.*\n\n## Interactive Demo\n\nExplore real agent-environment conversations simulated by Qwen-AgentWorld across all seven domains. Click any thinking trace to see the model’s internal reasoning.\n\n[Qwen-AgentWorld Demo — 7 Domains (Terminal, Search, MCP, SWE, Android, Web, OS)](https://docs.qwenlm.ai/resources/mlu56_demo.html)\n\n* * *\n\n# Part I: Building the Foundation Model for Agentic Environment Simulation\n\n## Seven Domains, One Model\n\nQwen-AgentWorld covers seven categories of interactive environments. For the three GUI domains, environment observations take the form of renderable code (accessibility tree XML, HTML, UI hierarchy markup) rather than pixel frames, enabling text-only world modeling of visual environments.\n\n| Domain            | What the LWM simulates                                                       | Representative prediction                                                              |\n| ----------------- | ---------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |\n| Text Environments |                                                                              |                                                                                        |\n| Terminal          | Command-line environment: shell output, file system state, process behavior  | Complete shell output for multi-step command pipelines                                 |\n| Search            | Search engine results: URLs, snippets, rankings, page content                | Realistic URL identifiers, natural source ranking order, query-specific factual detail |\n| MCP               | API server responses: tool call results, database state, service protocols   | Cross-call schema consistency across nine sequential Notion API calls                  |\n| SWE               | IDE / code editing environment: `git diff`, test results, compilation errors | File modifications and test outcomes for code changes                                  |\n| GUI Environments  |                                                                              |                                                                                        |\n| Web               | Browser DOM state changes after user interactions                            | HTML + accessibility tree updates                                                      |\n| Android           | Android UI hierarchy changes after touch/gesture actions                     | UI hierarchy XML markup                                                                |\n| OS                | Desktop OS state: file system, window management, application behavior       | Accessibility tree XML updates                                                         |\n\n## Training Pipeline\n\n![Training Pipeline](https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen-AgentWorld/pipeline_overview.png)\n\n*Three-stage training pipeline: CPT injects environment knowledge, SFT activates next-state-prediction reasoning, RL sharpens simulation fidelity.*\n\nQwen-AgentWorld is trained end-to-end with environment modeling as the explicit objective from continual pre-training onward. The three-stage pipeline follows one principle: **CPT injects, SFT activates, RL sharpens.**\n\n**Stage 1: Continual Pre-Training (CPT)** injects environment knowledge through non-thinking trajectories. The data draws from dedicated agent infrastructure (containerized execution sandboxes, MCP servers, Android/web/OS emulators), open environment interaction traces, and in-house agentic trajectories. Beyond environment data, we incorporate specialized-domain world knowledge corpora spanning industrial control, cybersecurity, law, medicine, finance, and current affairs. A key contribution is turn-level information-theoretic loss masking: four surface-level statistics per (action, observation) pair identify turns carrying genuine environment information, and mask the rest from the loss while retaining them as context.\n\n**Stage 2: Supervised Fine-Tuning (SFT)** activates next-state prediction as an explicit thinking pattern via `<think>...</think>` blocks. We use rejection sampling to select high-quality thinking trajectories, resulting in 7,094 training samples.\n\n**Stage 3: Reinforcement Learning (RL)** sharpens output quality with hybrid rewards. We use GSPO for RL training. The reward combines a rubric-based LLM judge evaluating multi-dimensional quality with rule-based verifiers for domains where exact correctness can be checked programmatically.\n\n## AgentWorldBench\n\n![AgentWorldBench Overview](https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen-AgentWorld/bench_overview.png)\n\n*Overview of AgentWorldBench: domain distribution, source benchmarks, evaluation dimensions, and per-domain trajectory statistics.*\n\nTo evaluate language world models, we introduce AgentWorldBench, a comprehensive benchmark constructed from real-world observations of 5 frontier model trajectories on 9 established benchmarks, such as Tool Decathlon, Terminal-Bench 1.0 & 2.0, and OSWorld-Verified. Every evaluation sample is paired with a ground-truth observation obtained from real environment execution, enabling reference-grounded scoring. AgentWorldBench evaluates world modeling quality through open-ended rubric judging across 5 dimensions — format, factuality, consistency, realism, and quality — probing the reasoning, knowledge, and long-context capabilities.\n\n## Performance\n\n![Qwen-AgentWorld Main Results](https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen-AgentWorld/bench_results_bar.png)\n\n*AgentWorldBench results: five-dimensional rubric mean per domain. Qwen-AgentWorld-397B-A17B achieves the highest overall score (58.71), outperforming GPT-5.4 (58.25) and other frontier models.*\n\nQwen-AgentWorld-397B-A17B achieves the highest overall average (58.71), surpassing GPT-5.4 (58.25) and all other frontier models. The advantage is most pronounced on Terminal and SWE, the two domains where predictions require accurate modeling of code execution state and tool API behavior.\n\nAt the 35B-A3B scale, the three-stage pipeline lifts the overall average by +8.66 points (47.73 → 56.39), bringing Qwen-AgentWorld-35B-A3B above Claude Sonnet 4.6 (56.04). The improvement is consistent across both text and GUI domains.\n\n## Inside the World Model’s Mind\n\nBeyond aggregate performance, what makes a language world model interesting is how it reasons. We analyze 129 thinking traces across four text-based domains and find three emergent reasoning patterns.\n\n![Qwen-AgentWorld Reasoning Patterns](https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen-AgentWorld/lwm_reasoning_patterns.png)\n\n*LWM reasoning patterns: deliberative self-correction, information leakage prevention, and multi-step causal reasoning.*\n\n**Deliberative self-correction.** The model uses “Wait!” as a cognitive interrupt to revise intermediate predictions. Across 129 turns, we count 1,347 such interrupts (10.4 per turn), spanning factual errors, epistemological limits (“I cannot actually execute `np.random.seed(42)`”), and perspective-taking.\n\n**Information leakage prevention.** In the Search domain, the model holds a reference answer that the agent is trying to find. When the query is unrelated, the model prevents leakage by ensuring snippets do not accidentally reveal the target — the world-model equivalent of theory of mind.\n\n**Multi-step causal reasoning.** Predicting the output of `curl -s localhost:3000 | python3 -m json.tool` requires a six-step chain: Node.js missing → server never started → no listener on port 3000 → `curl` fails silently → empty pipe → `json.tool` raises `JSONDecodeError`.\n\n* * *\n\n# Part II: Investigating the Role of World Modeling in Agent Training\n\n> **We investigate two complementary paradigms through which world modeling enhances general agents.**\n\n## Why World Modeling Matters for Agents?\n\nNot to Replace Real Environments, Not for Cost Reduction, but as a Complementary Axis for Pushing the Frontier\n\n**What a language world model does.** In an agent-environment interaction loop, the policy decides *what to do* and the world model predicts *what happens next*. A language world model takes the current interaction history and an agent’s action, and predicts what the environment would return: the terminal output, the API response, the updated DOM. This is not template-based generation. Faithful simulation requires multi-step causal reasoning (chaining six system-knowledge steps to predict a `curl` pipeline failure), stateful tracking (maintaining referential integrity across nine sequential Notion API calls), and domain-specific knowledge (Unix semantics, API schemas, browser rendering rules).\n\n**Why not just/only use real environments?** Real-environment interaction remains the gold standard for grounding agent behavior. Language world models are not designed to replace it, nor are they primarily a cost-reduction measure. Instead, LWMs open a *complementary axis* to supplement real environments:\n\n**(1) Scalability and controllability beyond real environments.** An LWM enables turn-level scaling of diverse environments without dedicated infrastructure (sandboxes, GUI virtual machines), spanning extreme scenarios, real-world tasks, and high-value professional domains where real execution is infeasible due to irreversible operations or proprietary deployments. Beyond scalability, LWMs offer precise controllability: targeted perturbations that are rare or absent in real environments can systematically expose agent weaknesses. Training against these perturbations helps agents handle edge cases that real-environment training alone cannot cover, ultimately surpassing agents trained solely in real environments.\n\n**(2) Internalized world prediction as an agent capability.** A capable general agent should possess both decision-making and world-modeling abilities. World modeling enables agents to predict future environment states to refine action selection, effectively performing mental simulation as an internal planning step — whereas traditional agent training focuses solely on state-to-action decision-making. Next-state prediction is thus internalized as a meta-reasoning pattern similar to “reflection” but oriented toward the future: *predict before you act*. Furthermore, accurate next-state prediction itself requires reasoning, knowledge, instruction following, and long-context handling — capabilities that are foundational to general agents.\n\n**What makes general-purpose language environment simulation possible?** Building a general-purpose language world model requires three ingredients working together. First, *environment diversity*: training on trajectories from as many distinct environments as possible, so the model encounters the full spectrum of state-transition patterns rather than memorizing a narrow set. Second, *cross-domain generalization*: our experiments show that training on a single text domain yields gains on all other text domains, suggesting shared underlying environment modeling capabilities that compound as domain coverage grows. Third, *world knowledge through CPT*: environment trajectories alone cannot provide the factual grounding needed for faithful simulation. Simulating a regulatory compliance platform requires legal knowledge; simulating search-engine responses on current events requires up-to-date factual coverage. By incorporating specialized-domain world knowledge corpora (industrial control, cybersecurity, law, medicine, finance, current affairs) during continual pre-training, the model acquires the factual substrate on which environment simulation depends. These three ingredients, environment diversity, cross-domain transfer, and world knowledge, together enable a single model to serve as a general-purpose simulator across seven agent interaction domains.\n\n## Paradigm I: Decoupled Simulation\n\nAs a standalone simulator, where the policy agent and the world model are separate models, Qwen-AgentWorld provides scalability and controllability that real environments cannot. In this **Sim RL** setup, the world model replaces the real environment during agent RL training: the agent acts, the world model predicts the next observation, and the agent learns from these simulated rollouts. Key findings:\n\n- **Zero-shot environment generalization.** Qwen-AgentWorld simulates 4k OpenClaw environments entirely absent from training, yielding Sim RL gains of +4.3 on Claw-Eval and +7.1 on QwenClawBench with no domain-specific adaptation.\n- **Controlled simulation matters.** Uncontrolled Sim RL provides negligible improvement; controllable perturbations lift MCPMark by +12.3 and WideSearch by +16.3, far exceeding uncontrolled Sim RL.\n- **Surpassing real-environment training.** Controllable Sim RL exceeds Real RL trained against a live search engine (50.3% vs. 45.6% F1), while shaping more targeted agent behavior through adversarial snippet design.\n- **Fictional worlds work.** Agents trained in fully invented, self-consistent worlds generalize to real search tasks, while structurally preventing the agent from confusing simulated facts with real-world knowledge.\n- **State is the bottleneck.** Sim RL effectiveness depends on providing the world model with a sufficiently detailed initial state; without it, simulation fidelity degrades and downstream gains diminish.\n\n### Generalizable Environment Scaling\n\nWe test whether the world model generalizes to environments entirely absent from training. [OpenClaw](https://github.com/openclaw/openclaw) is an open-source agent platform whose tasks span scheduling, coding, email triage, browser automation, and file management — entirely out of distribution for Qwen-AgentWorld. We simulate 4,000 OpenClaw environments for agent RL training, without any domain-specific adaptation, and also ablate the simulator itself: using Qwen3.6-Plus as the simulator yields negligible improvement, while Qwen-AgentWorld-397B-A17B produces substantial gains — confirming that **world-model quality is the bottleneck** for Sim RL. The agent learns little from interacting with an unfaithful simulator.\n\n|                                          | Claw-Eval | QwenClawBench |\n| ---------------------------------------- | --------- | ------------- |\n| Qwen3.5-35B-A3B                          | 65.4      | 47.9          |\n| \\+ Sim RL (w/ Qwen3.6-Plus)              | 66.7      | 47.8          |\n| \\+ Sim RL (w/ Qwen-AgentWorld-397B-A17B) | 69.7      | 55.0          |\n| Δ                                        | +4.3      | +7.1          |\n\n\\* All scores averaged over 3 independent rollouts with 256K maximum sequence length.\n\n### Controllable Simulation\n\nThe more powerful capability is controllability: using natural-language instructions to shape the simulator’s behavior during training. We validate two modes.\n\n**MCP: environment adaptation.** We synthesize simulation system prompts from real MCP tool-use trajectories: each prompt specifies the tool schemas and server configuration, summarizes the hidden environment state (database contents, permission settings, service availability), and defines controllable simulation instructions that shape how the simulator responds at each turn. Control instructions inject targeted perturbations — intermittent API errors, paginated responses requiring follow-up calls, incomplete intermediate results that force multi-step retrieval, and partial failures in batch operations — to systematically expose agent weaknesses that real deployments rarely produce.\n\nThe results reveal a sharp contrast: standard Sim RL *without* control instructions provides no meaningful gain (Tool Decathlon actually drops from 32.4 to 31.5), because the simulator lacks sufficient grounding to produce faithful responses. With controllable simulation, Tool Decathlon improves by +3.7 and MCPMark by +12.3. Controllability is not merely a factor in the magnitude of improvement — it is a prerequisite for Sim RL to work at all in this domain. The larger gain on MCPMark (+12.3 vs. +3.7) suggests that controllable simulation is especially effective for tasks requiring many sequential tool calls and careful handling of intermediate results.\n\n|                          | Tool Decathlon | MCPMark |\n| ------------------------ | -------------- | ------- |\n| Qwen3.5-35B-A3B-SFT      | 32.4           | 21.5    |\n| \\+ Sim RL (uncontrolled) | 31.5           | 24.6    |\n| \\+ Sim RL (controlled)   | 36.1           | 33.8    |\n| Δ                        | +3.7           | +12.3   |\n\n**Search: fictional-world construction.** We construct 1,000 self-contained fictional environments, each anchored by a relational database (300–500 rows) of internally consistent fictional facts. A time-shifted environment might contain a 2029 smartphone market ranking with real brand names but non-existent model numbers. Since answers exist only within the fictional setting, the agent cannot bypass the search tool by answering from parametric memory; since all facts are invented, the agent cannot confuse simulated facts with real-world knowledge.\n\n|                        | F1 by Item | F1 by Row |\n| ---------------------- | ---------- | --------- |\n| Qwen3.5-35B-A3B-SFT    | 34.02      | 13.72     |\n| \\+ Sim RL (controlled) | 50.31      | 24.21     |\n| Δ                      | +16.29     | +10.49    |\n| Qwen3.5-397B-A17B-SFT  | 70.11      | 45.69     |\n| \\+ Sim RL (controlled) | 73.98      | 51.74     |\n| Δ                      | +3.87      | +6.05     |\n\n### Sim RL vs. Real RL\n\n![Sim RL vs Real RL Training Curves](https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen-AgentWorld/widesearch_rl_comparison.png)\n\n*Sim RL vs. Real RL on WideSearch: controllable Sim RL tracks or slightly exceeds Real RL trained with a live search engine.*\n\n**Performance.** We directly compare controllable Sim RL against Real RL (trained with a live search engine) on WideSearch. Sim RL tracks or slightly exceeds Real RL: F1 by Item reaches 50.3% at step 60, compared to 45.6% for Real RL.\n\n![Sim RL vs Real RL Tool Usage](https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen-AgentWorld/widesearch_tool_use_comparison.png)\n\n*Tool usage divergence: Sim-RL-trained agents increase `web_extractor` calls while Real-RL-trained agents decrease them, reflecting how controllable simulation shapes distinct agent behaviors.*\n\n**Behavior.** The more informative signal comes from agent behavior. Both regimes reduce `web_search` calls from ~5 to ~3.5 per trajectory, but `web_extractor` calls diverge sharply: Sim RL increases usage from 2.5 to 4.0, while Real RL decreases from 2.5 to 1.5. Because the simulated snippets deliberately withhold detailed content, the Sim-RL-trained agent learns that extracting full pages is necessary for assembling complete answers. Controllable simulation shapes agent behavior in targeted ways that real environments cannot.\n\n## Paradigm II: Agent Foundation Model\n\nIn Paradigm I, the agent and world model are separate models. Here we unify them: the same model that selects actions also predicts environment states. LWM training instills next-state prediction as an internalized reasoning capability. Key findings:\n\n- **Radical cross-task generalization.** Single-turn, non-agentic LWM RL warm-up with no tool calls transfers to multi-turn, tool-calling agentic tasks across seven benchmarks of five domains.\n- **Domain generalization.** Gains emerge on completely out-of-distribution domains entirely absent from LWM training (+11.3 on Claw-Eval, +9.7 on QwenClawBench, +9.0 on BFCL v4), confirming transferable capabilities rather than domain-specific shortcuts.\n- **Next-state prediction as meta-reasoning pattern.** LWM training teaches the agent to mentally simulate environment responses before acting, which generalizes across task formats and domains.\n\nWe validate this by running LWM RL on Qwen3.5-35B-A3B-SFT — a single-turn task with no tool calls — then evaluating directly on multi-turn, tool-calling agentic tasks across seven benchmarks without additional fine-tuning, including three out-of-domain benchmarks absent from LWM training.\n\n|           | In Domain | Out of Domain |      |       |       |      |      |\n| --------- | --------- | ------------- | ---- | ----- | ----- | ---- | ---- |\n| Base      | 33.3      | 64.5          | 42.2 | 33.4  | 53.6  | 39.8 | 62.3 |\n| \\+ LWM RL | 39.6      | 67.9          | 47.4 | 46.2  | 64.9  | 49.4 | 71.3 |\n| Δ         | +6.3      | +3.4          | +5.2 | +12.8 | +11.3 | +9.7 | +9.0 |\n\nThe out-of-domain results are particularly notable: the LWM training pipeline contains no Claw or function-calling data, yet gains of +11.3, +9.7, and +9.0 emerge on domains entirely absent from world-model training.\n\n* * *\n\n# Build with Qwen-AgentWorld\n\n## Deployment\n\nWe have open-sourced **Qwen-AgentWorld-35B-A3B** ([Hugging Face](https://huggingface.co/Qwen/Qwen-AgentWorld-35B-A3B), [ModelScope](https://modelscope.cn/models/Qwen/Qwen-AgentWorld-35B-A3B)), a language world model built on a MoE architecture with 35B total parameters / 3B active parameters, supporting a 256K context window. It can be deployed and used in the following ways.\n\n```bash\n# SGLang\npython -m sglang.launch_server \\\n    --model-path Qwen/Qwen-AgentWorld-35B-A3B \\\n    --port 8000 \\\n    --tensor-parallel-size 4 \\\n    --context-length 262144 \\\n    --reasoning-parser qwen3\n\n# vLLM\nvllm serve Qwen/Qwen-AgentWorld-35B-A3B \\\n    --port 8000 \\\n    --tensor-parallel-size 4 \\\n    --max-model-len 262144 \\\n    --reasoning-parser qwen3 \\\n    --trust-remote-code\n```\n\n```python\nfrom transformers import AutoModelForCausalLM, AutoTokenizer\n\nmodel = AutoModelForCausalLM.from_pretrained(\n    \"Qwen/Qwen-AgentWorld-35B-A3B\",\n    torch_dtype=\"auto\",\n    device_map=\"auto\",\n)\ntokenizer = AutoTokenizer.from_pretrained(\"Qwen/Qwen-AgentWorld-35B-A3B\")\n```\n\n## Evaluation\n\nAgentWorldBench is available on [Hugging Face](https://huggingface.co/datasets/Qwen/AgentWorldBench) and [Modelscope](https://modelscope.cn/datasets/Qwen/AgentWorldBench) as per-domain JSONL files, each containing interaction trajectories with ground-truth observations from real environments. Evaluation uses a three-step pipeline via [`eval/eval.py`](https://github.com/QwenLM/Qwen-AgentWorld/tree/main/eval): (1) **infer** — run the world model to generate predicted observations, (2) **judge** — score each prediction against the ground truth across five dimensions (format, factuality, consistency, realism, quality) using an LLM judge, (3) **aggregate** — compute per-domain and overall scores. Both the world model and the judge use OpenAI-compatible APIs, supporting SGLang, vLLM, or proprietary endpoints. See the [GitHub README](https://github.com/QwenLM/Qwen-AgentWorld#evaluate-on-agentworldbench) for full setup, data format, and example commands.\n\n## Summary\n\nQwen-AgentWorld is a native language world model covering seven agent interaction domains within a single model at two scales (35B-A3B and 397B-A17B). A three-stage recipe, CPT injects environment knowledge, SFT activates next-state-prediction reasoning, RL sharpens simulation fidelity, progressively builds world-modeling capability from the ground up. We investigate two complementary paradigms through which world modeling enhances general agents. As a decoupled simulator, we validate the effectiveness of controllable simulation on Tool Decathlon, MCPMark, and WideSearch, surpassing both uncontrolled simulation and real-environment training. As a unified agent foundation model, LWM warm-up transfers to multi-turn agentic tasks across seven benchmarks, including three entirely out-of-domain, providing initial validation that language world models can serve as a foundation for building stronger agent models. Language world modeling opens a complementary axis for scaling general agents beyond what real-environment interaction alone can provide.\n\n## Citation\n\n```bibtex\n@article{zuo2026qwen,\n  title={Qwen-agentworld: language world models for general agents},\n  author={Zuo, Yuxin and Xiao, Zikai and Sheng, Li and Huang, Fei and Tu, Jianhong and Liu, Yuxuan and Tang, Tianyi and Hu, Xiaomeng and Su, Yang and Lan, Qingfeng and others},\n  journal={arXiv preprint arXiv:2606.24597},\n  year={2026}\n}\n```\n",
  "authors": [
    "QwenTeam"
  ],
  "captured_at": "2026-10-19T01:26:53.998049939+00:00",
  "category": "ai",
  "content_html": "<p><picture class=\"article-picture article-picture-fallback\" style=\"--image-ratio:16 / 9\"><img src=\"https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen-AgentWorld/group_capybaras_flat.png#center\" alt=\"\" loading=\"eager\" decoding=\"async\" fetchpriority=\"high\" referrerpolicy=\"no-referrer\" class=\"progressive-image\"></picture></p>\n<p><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"http://arxiv.org/abs/2606.24597\">PAPER</a> <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/QwenLM/Qwen-AgentWorld\">GITHUB</a> <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://huggingface.co/collections/Qwen/qwen-agentworld\">HUGGING FACE</a> <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://modelscope.cn/collections/Qwen/Qwen-AgentWorld\">MODELSCOPE</a></p>\n<p>Today we release <strong>Qwen-AgentWorld</strong>, a native language world model that simulates agent environments across seven domains:</p>\n<ul>\n<li><strong>Native world modeling:</strong> environment modeling is the training objective from continual pre-training onward (CPT → SFT → RL), not a post hoc adaptation on top of a general-purpose LLM.</li>\n<li><strong>Seven domains, one model:</strong> a single model simulates text-based (MCP, Search, Terminal, SWE) and GUI-based (Web, OS, Android) environments, with knowledge transferring across domains.</li>\n</ul>\n<p>Together with the model, we release <strong>AgentWorldBench</strong>, a seven-domain evaluation benchmark with paired ground-truth observations from real environments. Both are available on <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://huggingface.co/collections/Qwen/qwen-agentworld\">Hugging Face</a> and <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://modelscope.cn/collections/Qwen/Qwen-AgentWorld\">ModelScope</a>.</p>\n<hr />\n<p>Language agents are trained to act in interactive environments, but no language model has been explicitly trained to model the environments themselves — to predict what happens next given the current state and an agent’s action.</p>\n<blockquote>\n<p><strong>Roadmap:</strong> Qwen-AgentWorld represents our attempt to investigate how world modeling built on language models can further push the boundaries of general agent capabilities.</p>\n</blockquote>\n<p>We explore both how to achieve language world modeling and how to apply it to advance general agents:</p>\n<ul>\n<li>First, we <strong>build a foundation model for agentic environment simulation</strong>: Qwen-AgentWorld is the first language world model to cover seven agent interaction domains within a single model (MCP, Search, Terminal, SWE, Web, OS, Android), trained through CPT → SFT → RL on more than 10M real environment interaction trajectories. On AgentWorldBench, Qwen-AgentWorld-397B-A17B achieves the highest overall simulation quality, outperforming GPT-5.4, Claude Opus 4.8, and Gemini 3.1 Pro.</li>\n<li>Second, we <strong>investigate the role of world modeling in agent training</strong> through two complementary paradigms: as a <em>decoupled</em> environment simulator, it provides superior scalability and controllability for agentic RL. Controllable simulated RL shapes agent behavior in ways that real environments cannot and significantly outperforms RL trained solely in real-world environments; as a <em>unified</em> agent foundation model, LWM warm-up enables effective transfer to multi-turn agentic tasks across seven benchmarks, including three entirely out of domain, without requiring any RL fine-tuning on agentic tasks, providing initial validation that language world models can serve as a foundation for building stronger agent models.</li>\n</ul>\n<p><picture class=\"article-picture article-picture-fallback\" style=\"--image-ratio:16 / 9\"><img src=\"https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen-AgentWorld/teaser.png\" alt=\"Qwen-AgentWorld Overview\" loading=\"lazy\" decoding=\"async\" fetchpriority=\"low\" referrerpolicy=\"no-referrer\" class=\"progressive-image\"></picture></p>\n<p><em>Qwen-AgentWorld: a native language world model across seven unified domains, with two complementary paradigms for enhancing general agents.</em></p>\n<h2>Interactive Demo</h2>\n<p>Explore real agent-environment conversations simulated by Qwen-AgentWorld across all seven domains. Click any thinking trace to see the model’s internal reasoning.</p>\n<p><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://docs.qwenlm.ai/resources/mlu56_demo.html\">Qwen-AgentWorld Demo — 7 Domains (Terminal, Search, MCP, SWE, Android, Web, OS)</a></p>\n<hr />\n<h1>Part I: Building the Foundation Model for Agentic Environment Simulation</h1>\n<h2>Seven Domains, One Model</h2>\n<p>Qwen-AgentWorld covers seven categories of interactive environments. For the three GUI domains, environment observations take the form of renderable code (accessibility tree XML, HTML, UI hierarchy markup) rather than pixel frames, enabling text-only world modeling of visual environments.</p>\n<table>\n<thead>\n<tr>\n<th>Domain</th>\n<th>What the LWM simulates</th>\n<th>Representative prediction</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Text Environments</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>Terminal</td>\n<td>Command-line environment: shell output, file system state, process behavior</td>\n<td>Complete shell output for multi-step command pipelines</td>\n</tr>\n<tr>\n<td>Search</td>\n<td>Search engine results: URLs, snippets, rankings, page content</td>\n<td>Realistic URL identifiers, natural source ranking order, query-specific factual detail</td>\n</tr>\n<tr>\n<td>MCP</td>\n<td>API server responses: tool call results, database state, service protocols</td>\n<td>Cross-call schema consistency across nine sequential Notion API calls</td>\n</tr>\n<tr>\n<td>SWE</td>\n<td>IDE / code editing environment: <code>git diff</code>, test results, compilation errors</td>\n<td>File modifications and test outcomes for code changes</td>\n</tr>\n<tr>\n<td>GUI Environments</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>Web</td>\n<td>Browser DOM state changes after user interactions</td>\n<td>HTML + accessibility tree updates</td>\n</tr>\n<tr>\n<td>Android</td>\n<td>Android UI hierarchy changes after touch/gesture actions</td>\n<td>UI hierarchy XML markup</td>\n</tr>\n<tr>\n<td>OS</td>\n<td>Desktop OS state: file system, window management, application behavior</td>\n<td>Accessibility tree XML updates</td>\n</tr>\n</tbody>\n</table>\n<h2>Training Pipeline</h2>\n<p><picture class=\"article-picture article-picture-fallback\" style=\"--image-ratio:16 / 9\"><img src=\"https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen-AgentWorld/pipeline_overview.png\" alt=\"Training Pipeline\" loading=\"lazy\" decoding=\"async\" fetchpriority=\"low\" referrerpolicy=\"no-referrer\" class=\"progressive-image\"></picture></p>\n<p><em>Three-stage training pipeline: CPT injects environment knowledge, SFT activates next-state-prediction reasoning, RL sharpens simulation fidelity.</em></p>\n<p>Qwen-AgentWorld is trained end-to-end with environment modeling as the explicit objective from continual pre-training onward. The three-stage pipeline follows one principle: <strong>CPT injects, SFT activates, RL sharpens.</strong></p>\n<p><strong>Stage 1: Continual Pre-Training (CPT)</strong> injects environment knowledge through non-thinking trajectories. The data draws from dedicated agent infrastructure (containerized execution sandboxes, MCP servers, Android/web/OS emulators), open environment interaction traces, and in-house agentic trajectories. Beyond environment data, we incorporate specialized-domain world knowledge corpora spanning industrial control, cybersecurity, law, medicine, finance, and current affairs. A key contribution is turn-level information-theoretic loss masking: four surface-level statistics per (action, observation) pair identify turns carrying genuine environment information, and mask the rest from the loss while retaining them as context.</p>\n<p><strong>Stage 2: Supervised Fine-Tuning (SFT)</strong> activates next-state prediction as an explicit thinking pattern via <code>&lt;think&gt;...&lt;/think&gt;</code> blocks. We use rejection sampling to select high-quality thinking trajectories, resulting in 7,094 training samples.</p>\n<p><strong>Stage 3: Reinforcement Learning (RL)</strong> sharpens output quality with hybrid rewards. We use GSPO for RL training. The reward combines a rubric-based LLM judge evaluating multi-dimensional quality with rule-based verifiers for domains where exact correctness can be checked programmatically.</p>\n<h2>AgentWorldBench</h2>\n<p><picture class=\"article-picture article-picture-fallback\" style=\"--image-ratio:16 / 9\"><img src=\"https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen-AgentWorld/bench_overview.png\" alt=\"AgentWorldBench Overview\" loading=\"lazy\" decoding=\"async\" fetchpriority=\"low\" referrerpolicy=\"no-referrer\" class=\"progressive-image\"></picture></p>\n<p><em>Overview of AgentWorldBench: domain distribution, source benchmarks, evaluation dimensions, and per-domain trajectory statistics.</em></p>\n<p>To evaluate language world models, we introduce AgentWorldBench, a comprehensive benchmark constructed from real-world observations of 5 frontier model trajectories on 9 established benchmarks, such as Tool Decathlon, Terminal-Bench 1.0 &amp; 2.0, and OSWorld-Verified. Every evaluation sample is paired with a ground-truth observation obtained from real environment execution, enabling reference-grounded scoring. AgentWorldBench evaluates world modeling quality through open-ended rubric judging across 5 dimensions — format, factuality, consistency, realism, and quality — probing the reasoning, knowledge, and long-context capabilities.</p>\n<h2>Performance</h2>\n<p><picture class=\"article-picture article-picture-fallback\" style=\"--image-ratio:16 / 9\"><img src=\"https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen-AgentWorld/bench_results_bar.png\" alt=\"Qwen-AgentWorld Main Results\" loading=\"lazy\" decoding=\"async\" fetchpriority=\"low\" referrerpolicy=\"no-referrer\" class=\"progressive-image\"></picture></p>\n<p><em>AgentWorldBench results: five-dimensional rubric mean per domain. Qwen-AgentWorld-397B-A17B achieves the highest overall score (58.71), outperforming GPT-5.4 (58.25) and other frontier models.</em></p>\n<p>Qwen-AgentWorld-397B-A17B achieves the highest overall average (58.71), surpassing GPT-5.4 (58.25) and all other frontier models. The advantage is most pronounced on Terminal and SWE, the two domains where predictions require accurate modeling of code execution state and tool API behavior.</p>\n<p>At the 35B-A3B scale, the three-stage pipeline lifts the overall average by +8.66 points (47.73 → 56.39), bringing Qwen-AgentWorld-35B-A3B above Claude Sonnet 4.6 (56.04). The improvement is consistent across both text and GUI domains.</p>\n<h2>Inside the World Model’s Mind</h2>\n<p>Beyond aggregate performance, what makes a language world model interesting is how it reasons. We analyze 129 thinking traces across four text-based domains and find three emergent reasoning patterns.</p>\n<p><picture class=\"article-picture article-picture-fallback\" style=\"--image-ratio:16 / 9\"><img src=\"https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen-AgentWorld/lwm_reasoning_patterns.png\" alt=\"Qwen-AgentWorld Reasoning Patterns\" loading=\"lazy\" decoding=\"async\" fetchpriority=\"low\" referrerpolicy=\"no-referrer\" class=\"progressive-image\"></picture></p>\n<p><em>LWM reasoning patterns: deliberative self-correction, information leakage prevention, and multi-step causal reasoning.</em></p>\n<p><strong>Deliberative self-correction.</strong> The model uses “Wait!” as a cognitive interrupt to revise intermediate predictions. Across 129 turns, we count 1,347 such interrupts (10.4 per turn), spanning factual errors, epistemological limits (“I cannot actually execute <code>np.random.seed(42)</code>”), and perspective-taking.</p>\n<p><strong>Information leakage prevention.</strong> In the Search domain, the model holds a reference answer that the agent is trying to find. When the query is unrelated, the model prevents leakage by ensuring snippets do not accidentally reveal the target — the world-model equivalent of theory of mind.</p>\n<p><strong>Multi-step causal reasoning.</strong> Predicting the output of <code>curl -s localhost:3000 | python3 -m json.tool</code> requires a six-step chain: Node.js missing → server never started → no listener on port 3000 → <code>curl</code> fails silently → empty pipe → <code>json.tool</code> raises <code>JSONDecodeError</code>.</p>\n<hr />\n<h1>Part II: Investigating the Role of World Modeling in Agent Training</h1>\n<blockquote>\n<p><strong>We investigate two complementary paradigms through which world modeling enhances general agents.</strong></p>\n</blockquote>\n<h2>Why World Modeling Matters for Agents?</h2>\n<p>Not to Replace Real Environments, Not for Cost Reduction, but as a Complementary Axis for Pushing the Frontier</p>\n<p><strong>What a language world model does.</strong> In an agent-environment interaction loop, the policy decides <em>what to do</em> and the world model predicts <em>what happens next</em>. A language world model takes the current interaction history and an agent’s action, and predicts what the environment would return: the terminal output, the API response, the updated DOM. This is not template-based generation. Faithful simulation requires multi-step causal reasoning (chaining six system-knowledge steps to predict a <code>curl</code> pipeline failure), stateful tracking (maintaining referential integrity across nine sequential Notion API calls), and domain-specific knowledge (Unix semantics, API schemas, browser rendering rules).</p>\n<p><strong>Why not just/only use real environments?</strong> Real-environment interaction remains the gold standard for grounding agent behavior. Language world models are not designed to replace it, nor are they primarily a cost-reduction measure. Instead, LWMs open a <em>complementary axis</em> to supplement real environments:</p>\n<p><strong>(1) Scalability and controllability beyond real environments.</strong> An LWM enables turn-level scaling of diverse environments without dedicated infrastructure (sandboxes, GUI virtual machines), spanning extreme scenarios, real-world tasks, and high-value professional domains where real execution is infeasible due to irreversible operations or proprietary deployments. Beyond scalability, LWMs offer precise controllability: targeted perturbations that are rare or absent in real environments can systematically expose agent weaknesses. Training against these perturbations helps agents handle edge cases that real-environment training alone cannot cover, ultimately surpassing agents trained solely in real environments.</p>\n<p><strong>(2) Internalized world prediction as an agent capability.</strong> A capable general agent should possess both decision-making and world-modeling abilities. World modeling enables agents to predict future environment states to refine action selection, effectively performing mental simulation as an internal planning step — whereas traditional agent training focuses solely on state-to-action decision-making. Next-state prediction is thus internalized as a meta-reasoning pattern similar to “reflection” but oriented toward the future: <em>predict before you act</em>. Furthermore, accurate next-state prediction itself requires reasoning, knowledge, instruction following, and long-context handling — capabilities that are foundational to general agents.</p>\n<p><strong>What makes general-purpose language environment simulation possible?</strong> Building a general-purpose language world model requires three ingredients working together. First, <em>environment diversity</em>: training on trajectories from as many distinct environments as possible, so the model encounters the full spectrum of state-transition patterns rather than memorizing a narrow set. Second, <em>cross-domain generalization</em>: our experiments show that training on a single text domain yields gains on all other text domains, suggesting shared underlying environment modeling capabilities that compound as domain coverage grows. Third, <em>world knowledge through CPT</em>: environment trajectories alone cannot provide the factual grounding needed for faithful simulation. Simulating a regulatory compliance platform requires legal knowledge; simulating search-engine responses on current events requires up-to-date factual coverage. By incorporating specialized-domain world knowledge corpora (industrial control, cybersecurity, law, medicine, finance, current affairs) during continual pre-training, the model acquires the factual substrate on which environment simulation depends. These three ingredients, environment diversity, cross-domain transfer, and world knowledge, together enable a single model to serve as a general-purpose simulator across seven agent interaction domains.</p>\n<h2>Paradigm I: Decoupled Simulation</h2>\n<p>As a standalone simulator, where the policy agent and the world model are separate models, Qwen-AgentWorld provides scalability and controllability that real environments cannot. In this <strong>Sim RL</strong> setup, the world model replaces the real environment during agent RL training: the agent acts, the world model predicts the next observation, and the agent learns from these simulated rollouts. Key findings:</p>\n<ul>\n<li><strong>Zero-shot environment generalization.</strong> Qwen-AgentWorld simulates 4k OpenClaw environments entirely absent from training, yielding Sim RL gains of +4.3 on Claw-Eval and +7.1 on QwenClawBench with no domain-specific adaptation.</li>\n<li><strong>Controlled simulation matters.</strong> Uncontrolled Sim RL provides negligible improvement; controllable perturbations lift MCPMark by +12.3 and WideSearch by +16.3, far exceeding uncontrolled Sim RL.</li>\n<li><strong>Surpassing real-environment training.</strong> Controllable Sim RL exceeds Real RL trained against a live search engine (50.3% vs. 45.6% F1), while shaping more targeted agent behavior through adversarial snippet design.</li>\n<li><strong>Fictional worlds work.</strong> Agents trained in fully invented, self-consistent worlds generalize to real search tasks, while structurally preventing the agent from confusing simulated facts with real-world knowledge.</li>\n<li><strong>State is the bottleneck.</strong> Sim RL effectiveness depends on providing the world model with a sufficiently detailed initial state; without it, simulation fidelity degrades and downstream gains diminish.</li>\n</ul>\n<h3>Generalizable Environment Scaling</h3>\n<p>We test whether the world model generalizes to environments entirely absent from training. <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/openclaw/openclaw\">OpenClaw</a> is an open-source agent platform whose tasks span scheduling, coding, email triage, browser automation, and file management — entirely out of distribution for Qwen-AgentWorld. We simulate 4,000 OpenClaw environments for agent RL training, without any domain-specific adaptation, and also ablate the simulator itself: using Qwen3.6-Plus as the simulator yields negligible improvement, while Qwen-AgentWorld-397B-A17B produces substantial gains — confirming that <strong>world-model quality is the bottleneck</strong> for Sim RL. The agent learns little from interacting with an unfaithful simulator.</p>\n<table>\n<thead>\n<tr>\n<th></th>\n<th>Claw-Eval</th>\n<th>QwenClawBench</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Qwen3.5-35B-A3B</td>\n<td>65.4</td>\n<td>47.9</td>\n</tr>\n<tr>\n<td>+ Sim RL (w/ Qwen3.6-Plus)</td>\n<td>66.7</td>\n<td>47.8</td>\n</tr>\n<tr>\n<td>+ Sim RL (w/ Qwen-AgentWorld-397B-A17B)</td>\n<td>69.7</td>\n<td>55.0</td>\n</tr>\n<tr>\n<td>Δ</td>\n<td>+4.3</td>\n<td>+7.1</td>\n</tr>\n</tbody>\n</table>\n<p>* All scores averaged over 3 independent rollouts with 256K maximum sequence length.</p>\n<h3>Controllable Simulation</h3>\n<p>The more powerful capability is controllability: using natural-language instructions to shape the simulator’s behavior during training. We validate two modes.</p>\n<p><strong>MCP: environment adaptation.</strong> We synthesize simulation system prompts from real MCP tool-use trajectories: each prompt specifies the tool schemas and server configuration, summarizes the hidden environment state (database contents, permission settings, service availability), and defines controllable simulation instructions that shape how the simulator responds at each turn. Control instructions inject targeted perturbations — intermittent API errors, paginated responses requiring follow-up calls, incomplete intermediate results that force multi-step retrieval, and partial failures in batch operations — to systematically expose agent weaknesses that real deployments rarely produce.</p>\n<p>The results reveal a sharp contrast: standard Sim RL <em>without</em> control instructions provides no meaningful gain (Tool Decathlon actually drops from 32.4 to 31.5), because the simulator lacks sufficient grounding to produce faithful responses. With controllable simulation, Tool Decathlon improves by +3.7 and MCPMark by +12.3. Controllability is not merely a factor in the magnitude of improvement — it is a prerequisite for Sim RL to work at all in this domain. The larger gain on MCPMark (+12.3 vs. +3.7) suggests that controllable simulation is especially effective for tasks requiring many sequential tool calls and careful handling of intermediate results.</p>\n<table>\n<thead>\n<tr>\n<th></th>\n<th>Tool Decathlon</th>\n<th>MCPMark</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Qwen3.5-35B-A3B-SFT</td>\n<td>32.4</td>\n<td>21.5</td>\n</tr>\n<tr>\n<td>+ Sim RL (uncontrolled)</td>\n<td>31.5</td>\n<td>24.6</td>\n</tr>\n<tr>\n<td>+ Sim RL (controlled)</td>\n<td>36.1</td>\n<td>33.8</td>\n</tr>\n<tr>\n<td>Δ</td>\n<td>+3.7</td>\n<td>+12.3</td>\n</tr>\n</tbody>\n</table>\n<p><strong>Search: fictional-world construction.</strong> We construct 1,000 self-contained fictional environments, each anchored by a relational database (300–500 rows) of internally consistent fictional facts. A time-shifted environment might contain a 2029 smartphone market ranking with real brand names but non-existent model numbers. Since answers exist only within the fictional setting, the agent cannot bypass the search tool by answering from parametric memory; since all facts are invented, the agent cannot confuse simulated facts with real-world knowledge.</p>\n<table>\n<thead>\n<tr>\n<th></th>\n<th>F1 by Item</th>\n<th>F1 by Row</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Qwen3.5-35B-A3B-SFT</td>\n<td>34.02</td>\n<td>13.72</td>\n</tr>\n<tr>\n<td>+ Sim RL (controlled)</td>\n<td>50.31</td>\n<td>24.21</td>\n</tr>\n<tr>\n<td>Δ</td>\n<td>+16.29</td>\n<td>+10.49</td>\n</tr>\n<tr>\n<td>Qwen3.5-397B-A17B-SFT</td>\n<td>70.11</td>\n<td>45.69</td>\n</tr>\n<tr>\n<td>+ Sim RL (controlled)</td>\n<td>73.98</td>\n<td>51.74</td>\n</tr>\n<tr>\n<td>Δ</td>\n<td>+3.87</td>\n<td>+6.05</td>\n</tr>\n</tbody>\n</table>\n<h3>Sim RL vs. Real RL</h3>\n<p><picture class=\"article-picture article-picture-fallback\" style=\"--image-ratio:16 / 9\"><img src=\"https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen-AgentWorld/widesearch_rl_comparison.png\" alt=\"Sim RL vs Real RL Training Curves\" loading=\"lazy\" decoding=\"async\" fetchpriority=\"low\" referrerpolicy=\"no-referrer\" class=\"progressive-image\"></picture></p>\n<p><em>Sim RL vs. Real RL on WideSearch: controllable Sim RL tracks or slightly exceeds Real RL trained with a live search engine.</em></p>\n<p><strong>Performance.</strong> We directly compare controllable Sim RL against Real RL (trained with a live search engine) on WideSearch. Sim RL tracks or slightly exceeds Real RL: F1 by Item reaches 50.3% at step 60, compared to 45.6% for Real RL.</p>\n<p><picture class=\"article-picture article-picture-fallback\" style=\"--image-ratio:16 / 9\"><img src=\"https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen-AgentWorld/widesearch_tool_use_comparison.png\" alt=\"Sim RL vs Real RL Tool Usage\" loading=\"lazy\" decoding=\"async\" fetchpriority=\"low\" referrerpolicy=\"no-referrer\" class=\"progressive-image\"></picture></p>\n<p><em>Tool usage divergence: Sim-RL-trained agents increase <code>web_extractor</code> calls while Real-RL-trained agents decrease them, reflecting how controllable simulation shapes distinct agent behaviors.</em></p>\n<p><strong>Behavior.</strong> The more informative signal comes from agent behavior. Both regimes reduce <code>web_search</code> calls from ~5 to ~3.5 per trajectory, but <code>web_extractor</code> calls diverge sharply: Sim RL increases usage from 2.5 to 4.0, while Real RL decreases from 2.5 to 1.5. Because the simulated snippets deliberately withhold detailed content, the Sim-RL-trained agent learns that extracting full pages is necessary for assembling complete answers. Controllable simulation shapes agent behavior in targeted ways that real environments cannot.</p>\n<h2>Paradigm II: Agent Foundation Model</h2>\n<p>In Paradigm I, the agent and world model are separate models. Here we unify them: the same model that selects actions also predicts environment states. LWM training instills next-state prediction as an internalized reasoning capability. Key findings:</p>\n<ul>\n<li><strong>Radical cross-task generalization.</strong> Single-turn, non-agentic LWM RL warm-up with no tool calls transfers to multi-turn, tool-calling agentic tasks across seven benchmarks of five domains.</li>\n<li><strong>Domain generalization.</strong> Gains emerge on completely out-of-distribution domains entirely absent from LWM training (+11.3 on Claw-Eval, +9.7 on QwenClawBench, +9.0 on BFCL v4), confirming transferable capabilities rather than domain-specific shortcuts.</li>\n<li><strong>Next-state prediction as meta-reasoning pattern.</strong> LWM training teaches the agent to mentally simulate environment responses before acting, which generalizes across task formats and domains.</li>\n</ul>\n<p>We validate this by running LWM RL on Qwen3.5-35B-A3B-SFT — a single-turn task with no tool calls — then evaluating directly on multi-turn, tool-calling agentic tasks across seven benchmarks without additional fine-tuning, including three out-of-domain benchmarks absent from LWM training.</p>\n<table>\n<thead>\n<tr>\n<th></th>\n<th>In Domain</th>\n<th>Out of Domain</th>\n<th></th>\n<th></th>\n<th></th>\n<th></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Base</td>\n<td>33.3</td>\n<td>64.5</td>\n<td>42.2</td>\n<td>33.4</td>\n<td>53.6</td>\n<td>39.8</td>\n<td>62.3</td>\n</tr>\n<tr>\n<td>+ LWM RL</td>\n<td>39.6</td>\n<td>67.9</td>\n<td>47.4</td>\n<td>46.2</td>\n<td>64.9</td>\n<td>49.4</td>\n<td>71.3</td>\n</tr>\n<tr>\n<td>Δ</td>\n<td>+6.3</td>\n<td>+3.4</td>\n<td>+5.2</td>\n<td>+12.8</td>\n<td>+11.3</td>\n<td>+9.7</td>\n<td>+9.0</td>\n</tr>\n</tbody>\n</table>\n<p>The out-of-domain results are particularly notable: the LWM training pipeline contains no Claw or function-calling data, yet gains of +11.3, +9.7, and +9.0 emerge on domains entirely absent from world-model training.</p>\n<hr />\n<h1>Build with Qwen-AgentWorld</h1>\n<h2>Deployment</h2>\n<p>We have open-sourced <strong>Qwen-AgentWorld-35B-A3B</strong> (<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://huggingface.co/Qwen/Qwen-AgentWorld-35B-A3B\">Hugging Face</a>, <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://modelscope.cn/models/Qwen/Qwen-AgentWorld-35B-A3B\">ModelScope</a>), a language world model built on a MoE architecture with 35B total parameters / 3B active parameters, supporting a 256K context window. It can be deployed and used in the following ways.</p>\n<pre><code class=\"language-bash\"><span class=\"code-snippet\" data-language=\"Shell\"><span class=\"syntax-source syntax-shell syntax-bash\"><span class=\"syntax-comment syntax-line syntax-number-sign syntax-shell\"><span class=\"syntax-punctuation syntax-definition syntax-comment syntax-begin syntax-shell\">#</span></span><span class=\"syntax-comment syntax-line syntax-number-sign syntax-shell\"> SGLang</span><span class=\"syntax-comment syntax-line syntax-number-sign syntax-shell\">\n</span><span class=\"syntax-meta syntax-function-call syntax-shell\"><span class=\"syntax-variable syntax-function syntax-shell\">python</span></span><span class=\"syntax-meta syntax-function-call syntax-arguments syntax-shell\"><span class=\"syntax-variable syntax-parameter syntax-option syntax-shell\"><span class=\"syntax-punctuation syntax-definition syntax-parameter syntax-shell\"> -</span>m</span> sglang.launch_server <span class=\"syntax-punctuation syntax-separator syntax-continuation syntax-line syntax-shell\">\\\n</span><span class=\"syntax-variable syntax-parameter syntax-option syntax-shell\"><span class=\"syntax-punctuation syntax-definition syntax-parameter syntax-shell\">    --</span>model-path</span> Qwen/Qwen-AgentWorld-35B-A3B <span class=\"syntax-punctuation syntax-separator syntax-continuation syntax-line syntax-shell\">\\\n</span><span class=\"syntax-variable syntax-parameter syntax-option syntax-shell\"><span class=\"syntax-punctuation syntax-definition syntax-parameter syntax-shell\">    --</span>port</span> 8000 <span class=\"syntax-punctuation syntax-separator syntax-continuation syntax-line syntax-shell\">\\\n</span><span class=\"syntax-variable syntax-parameter syntax-option syntax-shell\"><span class=\"syntax-punctuation syntax-definition syntax-parameter syntax-shell\">    --</span>tensor-parallel-size</span> 4 <span class=\"syntax-punctuation syntax-separator syntax-continuation syntax-line syntax-shell\">\\\n</span><span class=\"syntax-variable syntax-parameter syntax-option syntax-shell\"><span class=\"syntax-punctuation syntax-definition syntax-parameter syntax-shell\">    --</span>context-length</span> 262144 <span class=\"syntax-punctuation syntax-separator syntax-continuation syntax-line syntax-shell\">\\\n</span><span class=\"syntax-variable syntax-parameter syntax-option syntax-shell\"><span class=\"syntax-punctuation syntax-definition syntax-parameter syntax-shell\">    --</span>reasoning-parser</span> qwen3</span>\n\n<span class=\"syntax-comment syntax-line syntax-number-sign syntax-shell\"><span class=\"syntax-punctuation syntax-definition syntax-comment syntax-begin syntax-shell\">#</span></span><span class=\"syntax-comment syntax-line syntax-number-sign syntax-shell\"> vLLM</span><span class=\"syntax-comment syntax-line syntax-number-sign syntax-shell\">\n</span><span class=\"syntax-meta syntax-function-call syntax-shell\"><span class=\"syntax-variable syntax-function syntax-shell\">vllm</span></span><span class=\"syntax-meta syntax-function-call syntax-arguments syntax-shell\"> serve Qwen/Qwen-AgentWorld-35B-A3B <span class=\"syntax-punctuation syntax-separator syntax-continuation syntax-line syntax-shell\">\\\n</span><span class=\"syntax-variable syntax-parameter syntax-option syntax-shell\"><span class=\"syntax-punctuation syntax-definition syntax-parameter syntax-shell\">    --</span>port</span> 8000 <span class=\"syntax-punctuation syntax-separator syntax-continuation syntax-line syntax-shell\">\\\n</span><span class=\"syntax-variable syntax-parameter syntax-option syntax-shell\"><span class=\"syntax-punctuation syntax-definition syntax-parameter syntax-shell\">    --</span>tensor-parallel-size</span> 4 <span class=\"syntax-punctuation syntax-separator syntax-continuation syntax-line syntax-shell\">\\\n</span><span class=\"syntax-variable syntax-parameter syntax-option syntax-shell\"><span class=\"syntax-punctuation syntax-definition syntax-parameter syntax-shell\">    --</span>max-model-len</span> 262144 <span class=\"syntax-punctuation syntax-separator syntax-continuation syntax-line syntax-shell\">\\\n</span><span class=\"syntax-variable syntax-parameter syntax-option syntax-shell\"><span class=\"syntax-punctuation syntax-definition syntax-parameter syntax-shell\">    --</span>reasoning-parser</span> qwen3 <span class=\"syntax-punctuation syntax-separator syntax-continuation syntax-line syntax-shell\">\\\n</span><span class=\"syntax-variable syntax-parameter syntax-option syntax-shell\"><span class=\"syntax-punctuation syntax-definition syntax-parameter syntax-shell\">    --</span>trust-remote-code</span></span>\n</span></span></code></pre>\n<pre><code class=\"language-python\"><span class=\"code-snippet\" data-language=\"Python\"><span class=\"syntax-source syntax-python\"><span class=\"syntax-meta syntax-statement syntax-import syntax-python\"><span class=\"syntax-keyword syntax-control syntax-import syntax-from syntax-python\">from</span></span><span class=\"syntax-meta syntax-statement syntax-import syntax-python\"><span class=\"syntax-meta syntax-import-source syntax-python\"> <span class=\"syntax-meta syntax-import-path syntax-python\"><span class=\"syntax-meta syntax-import-name syntax-python\">transformers</span></span> <span class=\"syntax-meta syntax-statement syntax-import syntax-python\"><span class=\"syntax-keyword syntax-control syntax-import syntax-python\">import</span></span></span></span><span class=\"syntax-meta syntax-statement syntax-import syntax-python\"></span><span class=\"syntax-meta syntax-statement syntax-import syntax-python\"> <span class=\"syntax-meta syntax-generic-name syntax-python\">AutoModelForCausalLM</span><span class=\"syntax-punctuation syntax-separator syntax-import-list syntax-python\">,</span> <span class=\"syntax-meta syntax-generic-name syntax-python\">AutoTokenizer</span></span>\n\n<span class=\"syntax-meta syntax-qualified-name syntax-python\"><span class=\"syntax-meta syntax-generic-name syntax-python\">model</span></span> <span class=\"syntax-keyword syntax-operator syntax-assignment syntax-python\">=</span> <span class=\"syntax-meta syntax-function-call syntax-python\"><span class=\"syntax-meta syntax-qualified-name syntax-python\"><span class=\"syntax-meta syntax-generic-name syntax-python\">AutoModelForCausalLM</span><span class=\"syntax-punctuation syntax-accessor syntax-dot syntax-python\">.</span></span><span class=\"syntax-meta syntax-qualified-name syntax-python\"><span class=\"syntax-variable syntax-function syntax-python\">from_pretrained</span></span><span class=\"syntax-punctuation syntax-section syntax-arguments syntax-begin syntax-python\">(</span><span class=\"syntax-meta syntax-function-call syntax-arguments syntax-python\">\n    <span class=\"syntax-meta syntax-string syntax-python\"><span class=\"syntax-string syntax-quoted syntax-double syntax-python\"><span class=\"syntax-punctuation syntax-definition syntax-string syntax-begin syntax-python\">&quot;</span></span></span><span class=\"syntax-meta syntax-string syntax-python\"><span class=\"syntax-string syntax-quoted syntax-double syntax-python\">Qwen/Qwen-AgentWorld-35B-A3B<span class=\"syntax-punctuation syntax-definition syntax-string syntax-end syntax-python\">&quot;</span></span></span><span class=\"syntax-punctuation syntax-separator syntax-arguments syntax-python\">,</span>\n    <span class=\"syntax-variable syntax-parameter syntax-python\">torch_dtype</span><span class=\"syntax-keyword syntax-operator syntax-assignment syntax-python\">=</span><span class=\"syntax-meta syntax-string syntax-python\"><span class=\"syntax-string syntax-quoted syntax-double syntax-python\"><span class=\"syntax-punctuation syntax-definition syntax-string syntax-begin syntax-python\">&quot;</span></span></span><span class=\"syntax-meta syntax-string syntax-python\"><span class=\"syntax-string syntax-quoted syntax-double syntax-python\">auto<span class=\"syntax-punctuation syntax-definition syntax-string syntax-end syntax-python\">&quot;</span></span></span><span class=\"syntax-punctuation syntax-separator syntax-arguments syntax-python\">,</span>\n    <span class=\"syntax-variable syntax-parameter syntax-python\">device_map</span><span class=\"syntax-keyword syntax-operator syntax-assignment syntax-python\">=</span><span class=\"syntax-meta syntax-string syntax-python\"><span class=\"syntax-string syntax-quoted syntax-double syntax-python\"><span class=\"syntax-punctuation syntax-definition syntax-string syntax-begin syntax-python\">&quot;</span></span></span><span class=\"syntax-meta syntax-string syntax-python\"><span class=\"syntax-string syntax-quoted syntax-double syntax-python\">auto<span class=\"syntax-punctuation syntax-definition syntax-string syntax-end syntax-python\">&quot;</span></span></span><span class=\"syntax-punctuation syntax-separator syntax-arguments syntax-python\">,</span>\n</span><span class=\"syntax-punctuation syntax-section syntax-arguments syntax-end syntax-python\">)</span></span>\n<span class=\"syntax-meta syntax-qualified-name syntax-python\"><span class=\"syntax-meta syntax-generic-name syntax-python\">tokenizer</span></span> <span class=\"syntax-keyword syntax-operator syntax-assignment syntax-python\">=</span> <span class=\"syntax-meta syntax-function-call syntax-python\"><span class=\"syntax-meta syntax-qualified-name syntax-python\"><span class=\"syntax-meta syntax-generic-name syntax-python\">AutoTokenizer</span><span class=\"syntax-punctuation syntax-accessor syntax-dot syntax-python\">.</span></span><span class=\"syntax-meta syntax-qualified-name syntax-python\"><span class=\"syntax-variable syntax-function syntax-python\">from_pretrained</span></span><span class=\"syntax-punctuation syntax-section syntax-arguments syntax-begin syntax-python\">(</span><span class=\"syntax-meta syntax-function-call syntax-arguments syntax-python\"><span class=\"syntax-meta syntax-string syntax-python\"><span class=\"syntax-string syntax-quoted syntax-double syntax-python\"><span class=\"syntax-punctuation syntax-definition syntax-string syntax-begin syntax-python\">&quot;</span></span></span><span class=\"syntax-meta syntax-string syntax-python\"><span class=\"syntax-string syntax-quoted syntax-double syntax-python\">Qwen/Qwen-AgentWorld-35B-A3B<span class=\"syntax-punctuation syntax-definition syntax-string syntax-end syntax-python\">&quot;</span></span></span></span><span class=\"syntax-punctuation syntax-section syntax-arguments syntax-end syntax-python\">)</span></span>\n</span></span></code></pre>\n<h2>Evaluation</h2>\n<p>AgentWorldBench is available on <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://huggingface.co/datasets/Qwen/AgentWorldBench\">Hugging Face</a> and <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://modelscope.cn/datasets/Qwen/AgentWorldBench\">Modelscope</a> as per-domain JSONL files, each containing interaction trajectories with ground-truth observations from real environments. Evaluation uses a three-step pipeline via <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/QwenLM/Qwen-AgentWorld/tree/main/eval\"><code>eval/eval.py</code></a>: (1) <strong>infer</strong> — run the world model to generate predicted observations, (2) <strong>judge</strong> — score each prediction against the ground truth across five dimensions (format, factuality, consistency, realism, quality) using an LLM judge, (3) <strong>aggregate</strong> — compute per-domain and overall scores. Both the world model and the judge use OpenAI-compatible APIs, supporting SGLang, vLLM, or proprietary endpoints. See the <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/QwenLM/Qwen-AgentWorld#evaluate-on-agentworldbench\">GitHub README</a> for full setup, data format, and example commands.</p>\n<h2>Summary</h2>\n<p>Qwen-AgentWorld is a native language world model covering seven agent interaction domains within a single model at two scales (35B-A3B and 397B-A17B). A three-stage recipe, CPT injects environment knowledge, SFT activates next-state-prediction reasoning, RL sharpens simulation fidelity, progressively builds world-modeling capability from the ground up. We investigate two complementary paradigms through which world modeling enhances general agents. As a decoupled simulator, we validate the effectiveness of controllable simulation on Tool Decathlon, MCPMark, and WideSearch, surpassing both uncontrolled simulation and real-environment training. As a unified agent foundation model, LWM warm-up transfers to multi-turn agentic tasks across seven benchmarks, including three entirely out-of-domain, providing initial validation that language world models can serve as a foundation for building stronger agent models. Language world modeling opens a complementary axis for scaling general agents beyond what real-environment interaction alone can provide.</p>\n<h2>Citation</h2>\n<pre><code class=\"language-bibtex\"><span class=\"code-snippet\" data-language=\"Bibtex\"><span class=\"syntax-text syntax-bibtex\"><span class=\"syntax-meta syntax-entry syntax-braces syntax-bibtex\"><span class=\"syntax-keyword syntax-other syntax-entry-type syntax-bibtex\"><span class=\"syntax-punctuation syntax-definition syntax-keyword syntax-bibtex\">@</span>article</span><span class=\"syntax-punctuation syntax-section syntax-entry syntax-begin syntax-bibtex\">{</span><span class=\"syntax-entity syntax-name syntax-type syntax-entry-key syntax-bibtex\">zuo2026qwen</span>,\n  <span class=\"syntax-meta syntax-key-assignment syntax-bibtex\"><span class=\"syntax-string syntax-unquoted syntax-key syntax-bibtex\">title</span><span class=\"syntax-punctuation syntax-separator syntax-key-value syntax-bibtex\">=</span><span class=\"syntax-string syntax-quoted syntax-other syntax-braces syntax-bibtex\"><span class=\"syntax-punctuation syntax-definition syntax-string syntax-begin syntax-bibtex\">{</span>Qwen-agentworld: language world models for general agents<span class=\"syntax-punctuation syntax-definition syntax-string syntax-end syntax-bibtex\">}</span></span></span>,\n  <span class=\"syntax-meta syntax-key-assignment syntax-bibtex\"><span class=\"syntax-string syntax-unquoted syntax-key syntax-bibtex\">author</span><span class=\"syntax-punctuation syntax-separator syntax-key-value syntax-bibtex\">=</span><span class=\"syntax-string syntax-quoted syntax-other syntax-braces syntax-bibtex\"><span class=\"syntax-punctuation syntax-definition syntax-string syntax-begin syntax-bibtex\">{</span>Zuo, Yuxin and Xiao, Zikai and Sheng, Li and Huang, Fei and Tu, Jianhong and Liu, Yuxuan and Tang, Tianyi and Hu, Xiaomeng and Su, Yang and Lan, Qingfeng and others<span class=\"syntax-punctuation syntax-definition syntax-string syntax-end syntax-bibtex\">}</span></span></span>,\n  <span class=\"syntax-meta syntax-key-assignment syntax-bibtex\"><span class=\"syntax-string syntax-unquoted syntax-key syntax-bibtex\">journal</span><span class=\"syntax-punctuation syntax-separator syntax-key-value syntax-bibtex\">=</span><span class=\"syntax-string syntax-quoted syntax-other syntax-braces syntax-bibtex\"><span class=\"syntax-punctuation syntax-definition syntax-string syntax-begin syntax-bibtex\">{</span>arXiv preprint arXiv:2606.24597<span class=\"syntax-punctuation syntax-definition syntax-string syntax-end syntax-bibtex\">}</span></span></span>,\n  <span class=\"syntax-meta syntax-key-assignment syntax-bibtex\"><span class=\"syntax-string syntax-unquoted syntax-key syntax-bibtex\">year</span><span class=\"syntax-punctuation syntax-separator syntax-key-value syntax-bibtex\">=</span><span class=\"syntax-string syntax-quoted syntax-other syntax-braces syntax-bibtex\"><span class=\"syntax-punctuation syntax-definition syntax-string syntax-begin syntax-bibtex\">{</span>2026<span class=\"syntax-punctuation syntax-definition syntax-string syntax-end syntax-bibtex\">}</span></span>\n</span><span class=\"syntax-punctuation syntax-section syntax-entry syntax-end syntax-bibtex\">}</span></span>\n</span></span></code></pre>\n",
  "content_markdown": "![](https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen-AgentWorld/group_capybaras_flat.png#center)\n\n[PAPER](http://arxiv.org/abs/2606.24597) [GITHUB](https://github.com/QwenLM/Qwen-AgentWorld) [HUGGING FACE](https://huggingface.co/collections/Qwen/qwen-agentworld) [MODELSCOPE](https://modelscope.cn/collections/Qwen/Qwen-AgentWorld)\n\nToday we release **Qwen-AgentWorld**, a native language world model that simulates agent environments across seven domains:\n\n- **Native world modeling:** environment modeling is the training objective from continual pre-training onward (CPT → SFT → RL), not a post hoc adaptation on top of a general-purpose LLM.\n- **Seven domains, one model:** a single model simulates text-based (MCP, Search, Terminal, SWE) and GUI-based (Web, OS, Android) environments, with knowledge transferring across domains.\n\nTogether with the model, we release **AgentWorldBench**, a seven-domain evaluation benchmark with paired ground-truth observations from real environments. Both are available on [Hugging Face](https://huggingface.co/collections/Qwen/qwen-agentworld) and [ModelScope](https://modelscope.cn/collections/Qwen/Qwen-AgentWorld).\n\n* * *\n\nLanguage agents are trained to act in interactive environments, but no language model has been explicitly trained to model the environments themselves — to predict what happens next given the current state and an agent’s action.\n\n> **Roadmap:** Qwen-AgentWorld represents our attempt to investigate how world modeling built on language models can further push the boundaries of general agent capabilities.\n\nWe explore both how to achieve language world modeling and how to apply it to advance general agents:\n\n- First, we **build a foundation model for agentic environment simulation**: Qwen-AgentWorld is the first language world model to cover seven agent interaction domains within a single model (MCP, Search, Terminal, SWE, Web, OS, Android), trained through CPT → SFT → RL on more than 10M real environment interaction trajectories. On AgentWorldBench, Qwen-AgentWorld-397B-A17B achieves the highest overall simulation quality, outperforming GPT-5.4, Claude Opus 4.8, and Gemini 3.1 Pro.\n- Second, we **investigate the role of world modeling in agent training** through two complementary paradigms: as a *decoupled* environment simulator, it provides superior scalability and controllability for agentic RL. Controllable simulated RL shapes agent behavior in ways that real environments cannot and significantly outperforms RL trained solely in real-world environments; as a *unified* agent foundation model, LWM warm-up enables effective transfer to multi-turn agentic tasks across seven benchmarks, including three entirely out of domain, without requiring any RL fine-tuning on agentic tasks, providing initial validation that language world models can serve as a foundation for building stronger agent models.\n\n![Qwen-AgentWorld Overview](https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen-AgentWorld/teaser.png)\n\n*Qwen-AgentWorld: a native language world model across seven unified domains, with two complementary paradigms for enhancing general agents.*\n\n## Interactive Demo\n\nExplore real agent-environment conversations simulated by Qwen-AgentWorld across all seven domains. Click any thinking trace to see the model’s internal reasoning.\n\n[Qwen-AgentWorld Demo — 7 Domains (Terminal, Search, MCP, SWE, Android, Web, OS)](https://docs.qwenlm.ai/resources/mlu56_demo.html)\n\n* * *\n\n# Part I: Building the Foundation Model for Agentic Environment Simulation\n\n## Seven Domains, One Model\n\nQwen-AgentWorld covers seven categories of interactive environments. For the three GUI domains, environment observations take the form of renderable code (accessibility tree XML, HTML, UI hierarchy markup) rather than pixel frames, enabling text-only world modeling of visual environments.\n\n| Domain            | What the LWM simulates                                                       | Representative prediction                                                              |\n| ----------------- | ---------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |\n| Text Environments |                                                                              |                                                                                        |\n| Terminal          | Command-line environment: shell output, file system state, process behavior  | Complete shell output for multi-step command pipelines                                 |\n| Search            | Search engine results: URLs, snippets, rankings, page content                | Realistic URL identifiers, natural source ranking order, query-specific factual detail |\n| MCP               | API server responses: tool call results, database state, service protocols   | Cross-call schema consistency across nine sequential Notion API calls                  |\n| SWE               | IDE / code editing environment: `git diff`, test results, compilation errors | File modifications and test outcomes for code changes                                  |\n| GUI Environments  |                                                                              |                                                                                        |\n| Web               | Browser DOM state changes after user interactions                            | HTML + accessibility tree updates                                                      |\n| Android           | Android UI hierarchy changes after touch/gesture actions                     | UI hierarchy XML markup                                                                |\n| OS                | Desktop OS state: file system, window management, application behavior       | Accessibility tree XML updates                                                         |\n\n## Training Pipeline\n\n![Training Pipeline](https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen-AgentWorld/pipeline_overview.png)\n\n*Three-stage training pipeline: CPT injects environment knowledge, SFT activates next-state-prediction reasoning, RL sharpens simulation fidelity.*\n\nQwen-AgentWorld is trained end-to-end with environment modeling as the explicit objective from continual pre-training onward. The three-stage pipeline follows one principle: **CPT injects, SFT activates, RL sharpens.**\n\n**Stage 1: Continual Pre-Training (CPT)** injects environment knowledge through non-thinking trajectories. The data draws from dedicated agent infrastructure (containerized execution sandboxes, MCP servers, Android/web/OS emulators), open environment interaction traces, and in-house agentic trajectories. Beyond environment data, we incorporate specialized-domain world knowledge corpora spanning industrial control, cybersecurity, law, medicine, finance, and current affairs. A key contribution is turn-level information-theoretic loss masking: four surface-level statistics per (action, observation) pair identify turns carrying genuine environment information, and mask the rest from the loss while retaining them as context.\n\n**Stage 2: Supervised Fine-Tuning (SFT)** activates next-state prediction as an explicit thinking pattern via `<think>...</think>` blocks. We use rejection sampling to select high-quality thinking trajectories, resulting in 7,094 training samples.\n\n**Stage 3: Reinforcement Learning (RL)** sharpens output quality with hybrid rewards. We use GSPO for RL training. The reward combines a rubric-based LLM judge evaluating multi-dimensional quality with rule-based verifiers for domains where exact correctness can be checked programmatically.\n\n## AgentWorldBench\n\n![AgentWorldBench Overview](https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen-AgentWorld/bench_overview.png)\n\n*Overview of AgentWorldBench: domain distribution, source benchmarks, evaluation dimensions, and per-domain trajectory statistics.*\n\nTo evaluate language world models, we introduce AgentWorldBench, a comprehensive benchmark constructed from real-world observations of 5 frontier model trajectories on 9 established benchmarks, such as Tool Decathlon, Terminal-Bench 1.0 & 2.0, and OSWorld-Verified. Every evaluation sample is paired with a ground-truth observation obtained from real environment execution, enabling reference-grounded scoring. AgentWorldBench evaluates world modeling quality through open-ended rubric judging across 5 dimensions — format, factuality, consistency, realism, and quality — probing the reasoning, knowledge, and long-context capabilities.\n\n## Performance\n\n![Qwen-AgentWorld Main Results](https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen-AgentWorld/bench_results_bar.png)\n\n*AgentWorldBench results: five-dimensional rubric mean per domain. Qwen-AgentWorld-397B-A17B achieves the highest overall score (58.71), outperforming GPT-5.4 (58.25) and other frontier models.*\n\nQwen-AgentWorld-397B-A17B achieves the highest overall average (58.71), surpassing GPT-5.4 (58.25) and all other frontier models. The advantage is most pronounced on Terminal and SWE, the two domains where predictions require accurate modeling of code execution state and tool API behavior.\n\nAt the 35B-A3B scale, the three-stage pipeline lifts the overall average by +8.66 points (47.73 → 56.39), bringing Qwen-AgentWorld-35B-A3B above Claude Sonnet 4.6 (56.04). The improvement is consistent across both text and GUI domains.\n\n## Inside the World Model’s Mind\n\nBeyond aggregate performance, what makes a language world model interesting is how it reasons. We analyze 129 thinking traces across four text-based domains and find three emergent reasoning patterns.\n\n![Qwen-AgentWorld Reasoning Patterns](https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen-AgentWorld/lwm_reasoning_patterns.png)\n\n*LWM reasoning patterns: deliberative self-correction, information leakage prevention, and multi-step causal reasoning.*\n\n**Deliberative self-correction.** The model uses “Wait!” as a cognitive interrupt to revise intermediate predictions. Across 129 turns, we count 1,347 such interrupts (10.4 per turn), spanning factual errors, epistemological limits (“I cannot actually execute `np.random.seed(42)`”), and perspective-taking.\n\n**Information leakage prevention.** In the Search domain, the model holds a reference answer that the agent is trying to find. When the query is unrelated, the model prevents leakage by ensuring snippets do not accidentally reveal the target — the world-model equivalent of theory of mind.\n\n**Multi-step causal reasoning.** Predicting the output of `curl -s localhost:3000 | python3 -m json.tool` requires a six-step chain: Node.js missing → server never started → no listener on port 3000 → `curl` fails silently → empty pipe → `json.tool` raises `JSONDecodeError`.\n\n* * *\n\n# Part II: Investigating the Role of World Modeling in Agent Training\n\n> **We investigate two complementary paradigms through which world modeling enhances general agents.**\n\n## Why World Modeling Matters for Agents?\n\nNot to Replace Real Environments, Not for Cost Reduction, but as a Complementary Axis for Pushing the Frontier\n\n**What a language world model does.** In an agent-environment interaction loop, the policy decides *what to do* and the world model predicts *what happens next*. A language world model takes the current interaction history and an agent’s action, and predicts what the environment would return: the terminal output, the API response, the updated DOM. This is not template-based generation. Faithful simulation requires multi-step causal reasoning (chaining six system-knowledge steps to predict a `curl` pipeline failure), stateful tracking (maintaining referential integrity across nine sequential Notion API calls), and domain-specific knowledge (Unix semantics, API schemas, browser rendering rules).\n\n**Why not just/only use real environments?** Real-environment interaction remains the gold standard for grounding agent behavior. Language world models are not designed to replace it, nor are they primarily a cost-reduction measure. Instead, LWMs open a *complementary axis* to supplement real environments:\n\n**(1) Scalability and controllability beyond real environments.** An LWM enables turn-level scaling of diverse environments without dedicated infrastructure (sandboxes, GUI virtual machines), spanning extreme scenarios, real-world tasks, and high-value professional domains where real execution is infeasible due to irreversible operations or proprietary deployments. Beyond scalability, LWMs offer precise controllability: targeted perturbations that are rare or absent in real environments can systematically expose agent weaknesses. Training against these perturbations helps agents handle edge cases that real-environment training alone cannot cover, ultimately surpassing agents trained solely in real environments.\n\n**(2) Internalized world prediction as an agent capability.** A capable general agent should possess both decision-making and world-modeling abilities. World modeling enables agents to predict future environment states to refine action selection, effectively performing mental simulation as an internal planning step — whereas traditional agent training focuses solely on state-to-action decision-making. Next-state prediction is thus internalized as a meta-reasoning pattern similar to “reflection” but oriented toward the future: *predict before you act*. Furthermore, accurate next-state prediction itself requires reasoning, knowledge, instruction following, and long-context handling — capabilities that are foundational to general agents.\n\n**What makes general-purpose language environment simulation possible?** Building a general-purpose language world model requires three ingredients working together. First, *environment diversity*: training on trajectories from as many distinct environments as possible, so the model encounters the full spectrum of state-transition patterns rather than memorizing a narrow set. Second, *cross-domain generalization*: our experiments show that training on a single text domain yields gains on all other text domains, suggesting shared underlying environment modeling capabilities that compound as domain coverage grows. Third, *world knowledge through CPT*: environment trajectories alone cannot provide the factual grounding needed for faithful simulation. Simulating a regulatory compliance platform requires legal knowledge; simulating search-engine responses on current events requires up-to-date factual coverage. By incorporating specialized-domain world knowledge corpora (industrial control, cybersecurity, law, medicine, finance, current affairs) during continual pre-training, the model acquires the factual substrate on which environment simulation depends. These three ingredients, environment diversity, cross-domain transfer, and world knowledge, together enable a single model to serve as a general-purpose simulator across seven agent interaction domains.\n\n## Paradigm I: Decoupled Simulation\n\nAs a standalone simulator, where the policy agent and the world model are separate models, Qwen-AgentWorld provides scalability and controllability that real environments cannot. In this **Sim RL** setup, the world model replaces the real environment during agent RL training: the agent acts, the world model predicts the next observation, and the agent learns from these simulated rollouts. Key findings:\n\n- **Zero-shot environment generalization.** Qwen-AgentWorld simulates 4k OpenClaw environments entirely absent from training, yielding Sim RL gains of +4.3 on Claw-Eval and +7.1 on QwenClawBench with no domain-specific adaptation.\n- **Controlled simulation matters.** Uncontrolled Sim RL provides negligible improvement; controllable perturbations lift MCPMark by +12.3 and WideSearch by +16.3, far exceeding uncontrolled Sim RL.\n- **Surpassing real-environment training.** Controllable Sim RL exceeds Real RL trained against a live search engine (50.3% vs. 45.6% F1), while shaping more targeted agent behavior through adversarial snippet design.\n- **Fictional worlds work.** Agents trained in fully invented, self-consistent worlds generalize to real search tasks, while structurally preventing the agent from confusing simulated facts with real-world knowledge.\n- **State is the bottleneck.** Sim RL effectiveness depends on providing the world model with a sufficiently detailed initial state; without it, simulation fidelity degrades and downstream gains diminish.\n\n### Generalizable Environment Scaling\n\nWe test whether the world model generalizes to environments entirely absent from training. [OpenClaw](https://github.com/openclaw/openclaw) is an open-source agent platform whose tasks span scheduling, coding, email triage, browser automation, and file management — entirely out of distribution for Qwen-AgentWorld. We simulate 4,000 OpenClaw environments for agent RL training, without any domain-specific adaptation, and also ablate the simulator itself: using Qwen3.6-Plus as the simulator yields negligible improvement, while Qwen-AgentWorld-397B-A17B produces substantial gains — confirming that **world-model quality is the bottleneck** for Sim RL. The agent learns little from interacting with an unfaithful simulator.\n\n|                                          | Claw-Eval | QwenClawBench |\n| ---------------------------------------- | --------- | ------------- |\n| Qwen3.5-35B-A3B                          | 65.4      | 47.9          |\n| \\+ Sim RL (w/ Qwen3.6-Plus)              | 66.7      | 47.8          |\n| \\+ Sim RL (w/ Qwen-AgentWorld-397B-A17B) | 69.7      | 55.0          |\n| Δ                                        | +4.3      | +7.1          |\n\n\\* All scores averaged over 3 independent rollouts with 256K maximum sequence length.\n\n### Controllable Simulation\n\nThe more powerful capability is controllability: using natural-language instructions to shape the simulator’s behavior during training. We validate two modes.\n\n**MCP: environment adaptation.** We synthesize simulation system prompts from real MCP tool-use trajectories: each prompt specifies the tool schemas and server configuration, summarizes the hidden environment state (database contents, permission settings, service availability), and defines controllable simulation instructions that shape how the simulator responds at each turn. Control instructions inject targeted perturbations — intermittent API errors, paginated responses requiring follow-up calls, incomplete intermediate results that force multi-step retrieval, and partial failures in batch operations — to systematically expose agent weaknesses that real deployments rarely produce.\n\nThe results reveal a sharp contrast: standard Sim RL *without* control instructions provides no meaningful gain (Tool Decathlon actually drops from 32.4 to 31.5), because the simulator lacks sufficient grounding to produce faithful responses. With controllable simulation, Tool Decathlon improves by +3.7 and MCPMark by +12.3. Controllability is not merely a factor in the magnitude of improvement — it is a prerequisite for Sim RL to work at all in this domain. The larger gain on MCPMark (+12.3 vs. +3.7) suggests that controllable simulation is especially effective for tasks requiring many sequential tool calls and careful handling of intermediate results.\n\n|                          | Tool Decathlon | MCPMark |\n| ------------------------ | -------------- | ------- |\n| Qwen3.5-35B-A3B-SFT      | 32.4           | 21.5    |\n| \\+ Sim RL (uncontrolled) | 31.5           | 24.6    |\n| \\+ Sim RL (controlled)   | 36.1           | 33.8    |\n| Δ                        | +3.7           | +12.3   |\n\n**Search: fictional-world construction.** We construct 1,000 self-contained fictional environments, each anchored by a relational database (300–500 rows) of internally consistent fictional facts. A time-shifted environment might contain a 2029 smartphone market ranking with real brand names but non-existent model numbers. Since answers exist only within the fictional setting, the agent cannot bypass the search tool by answering from parametric memory; since all facts are invented, the agent cannot confuse simulated facts with real-world knowledge.\n\n|                        | F1 by Item | F1 by Row |\n| ---------------------- | ---------- | --------- |\n| Qwen3.5-35B-A3B-SFT    | 34.02      | 13.72     |\n| \\+ Sim RL (controlled) | 50.31      | 24.21     |\n| Δ                      | +16.29     | +10.49    |\n| Qwen3.5-397B-A17B-SFT  | 70.11      | 45.69     |\n| \\+ Sim RL (controlled) | 73.98      | 51.74     |\n| Δ                      | +3.87      | +6.05     |\n\n### Sim RL vs. Real RL\n\n![Sim RL vs Real RL Training Curves](https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen-AgentWorld/widesearch_rl_comparison.png)\n\n*Sim RL vs. Real RL on WideSearch: controllable Sim RL tracks or slightly exceeds Real RL trained with a live search engine.*\n\n**Performance.** We directly compare controllable Sim RL against Real RL (trained with a live search engine) on WideSearch. Sim RL tracks or slightly exceeds Real RL: F1 by Item reaches 50.3% at step 60, compared to 45.6% for Real RL.\n\n![Sim RL vs Real RL Tool Usage](https://qianwen-res.oss-accelerate-overseas.aliyuncs.com/Qwen-AgentWorld/widesearch_tool_use_comparison.png)\n\n*Tool usage divergence: Sim-RL-trained agents increase `web_extractor` calls while Real-RL-trained agents decrease them, reflecting how controllable simulation shapes distinct agent behaviors.*\n\n**Behavior.** The more informative signal comes from agent behavior. Both regimes reduce `web_search` calls from ~5 to ~3.5 per trajectory, but `web_extractor` calls diverge sharply: Sim RL increases usage from 2.5 to 4.0, while Real RL decreases from 2.5 to 1.5. Because the simulated snippets deliberately withhold detailed content, the Sim-RL-trained agent learns that extracting full pages is necessary for assembling complete answers. Controllable simulation shapes agent behavior in targeted ways that real environments cannot.\n\n## Paradigm II: Agent Foundation Model\n\nIn Paradigm I, the agent and world model are separate models. Here we unify them: the same model that selects actions also predicts environment states. LWM training instills next-state prediction as an internalized reasoning capability. Key findings:\n\n- **Radical cross-task generalization.** Single-turn, non-agentic LWM RL warm-up with no tool calls transfers to multi-turn, tool-calling agentic tasks across seven benchmarks of five domains.\n- **Domain generalization.** Gains emerge on completely out-of-distribution domains entirely absent from LWM training (+11.3 on Claw-Eval, +9.7 on QwenClawBench, +9.0 on BFCL v4), confirming transferable capabilities rather than domain-specific shortcuts.\n- **Next-state prediction as meta-reasoning pattern.** LWM training teaches the agent to mentally simulate environment responses before acting, which generalizes across task formats and domains.\n\nWe validate this by running LWM RL on Qwen3.5-35B-A3B-SFT — a single-turn task with no tool calls — then evaluating directly on multi-turn, tool-calling agentic tasks across seven benchmarks without additional fine-tuning, including three out-of-domain benchmarks absent from LWM training.\n\n|           | In Domain | Out of Domain |      |       |       |      |      |\n| --------- | --------- | ------------- | ---- | ----- | ----- | ---- | ---- |\n| Base      | 33.3      | 64.5          | 42.2 | 33.4  | 53.6  | 39.8 | 62.3 |\n| \\+ LWM RL | 39.6      | 67.9          | 47.4 | 46.2  | 64.9  | 49.4 | 71.3 |\n| Δ         | +6.3      | +3.4          | +5.2 | +12.8 | +11.3 | +9.7 | +9.0 |\n\nThe out-of-domain results are particularly notable: the LWM training pipeline contains no Claw or function-calling data, yet gains of +11.3, +9.7, and +9.0 emerge on domains entirely absent from world-model training.\n\n* * *\n\n# Build with Qwen-AgentWorld\n\n## Deployment\n\nWe have open-sourced **Qwen-AgentWorld-35B-A3B** ([Hugging Face](https://huggingface.co/Qwen/Qwen-AgentWorld-35B-A3B), [ModelScope](https://modelscope.cn/models/Qwen/Qwen-AgentWorld-35B-A3B)), a language world model built on a MoE architecture with 35B total parameters / 3B active parameters, supporting a 256K context window. It can be deployed and used in the following ways.\n\n```bash\n# SGLang\npython -m sglang.launch_server \\\n    --model-path Qwen/Qwen-AgentWorld-35B-A3B \\\n    --port 8000 \\\n    --tensor-parallel-size 4 \\\n    --context-length 262144 \\\n    --reasoning-parser qwen3\n\n# vLLM\nvllm serve Qwen/Qwen-AgentWorld-35B-A3B \\\n    --port 8000 \\\n    --tensor-parallel-size 4 \\\n    --max-model-len 262144 \\\n    --reasoning-parser qwen3 \\\n    --trust-remote-code\n```\n\n```python\nfrom transformers import AutoModelForCausalLM, AutoTokenizer\n\nmodel = AutoModelForCausalLM.from_pretrained(\n    \"Qwen/Qwen-AgentWorld-35B-A3B\",\n    torch_dtype=\"auto\",\n    device_map=\"auto\",\n)\ntokenizer = AutoTokenizer.from_pretrained(\"Qwen/Qwen-AgentWorld-35B-A3B\")\n```\n\n## Evaluation\n\nAgentWorldBench is available on [Hugging Face](https://huggingface.co/datasets/Qwen/AgentWorldBench) and [Modelscope](https://modelscope.cn/datasets/Qwen/AgentWorldBench) as per-domain JSONL files, each containing interaction trajectories with ground-truth observations from real environments. Evaluation uses a three-step pipeline via [`eval/eval.py`](https://github.com/QwenLM/Qwen-AgentWorld/tree/main/eval): (1) **infer** — run the world model to generate predicted observations, (2) **judge** — score each prediction against the ground truth across five dimensions (format, factuality, consistency, realism, quality) using an LLM judge, (3) **aggregate** — compute per-domain and overall scores. Both the world model and the judge use OpenAI-compatible APIs, supporting SGLang, vLLM, or proprietary endpoints. See the [GitHub README](https://github.com/QwenLM/Qwen-AgentWorld#evaluate-on-agentworldbench) for full setup, data format, and example commands.\n\n## Summary\n\nQwen-AgentWorld is a native language world model covering seven agent interaction domains within a single model at two scales (35B-A3B and 397B-A17B). A three-stage recipe, CPT injects environment knowledge, SFT activates next-state-prediction reasoning, RL sharpens simulation fidelity, progressively builds world-modeling capability from the ground up. We investigate two complementary paradigms through which world modeling enhances general agents. As a decoupled simulator, we validate the effectiveness of controllable simulation on Tool Decathlon, MCPMark, and WideSearch, surpassing both uncontrolled simulation and real-environment training. As a unified agent foundation model, LWM warm-up transfers to multi-turn agentic tasks across seven benchmarks, including three entirely out-of-domain, providing initial validation that language world models can serve as a foundation for building stronger agent models. Language world modeling opens a complementary axis for scaling general agents beyond what real-environment interaction alone can provide.\n\n## Citation\n\n```bibtex\n@article{zuo2026qwen,\n  title={Qwen-agentworld: language world models for general agents},\n  author={Zuo, Yuxin and Xiao, Zikai and Sheng, Li and Huang, Fei and Tu, Jianhong and Liu, Yuxuan and Tang, Tianyi and Hu, Xiaomeng and Su, Yang and Lan, Qingfeng and others},\n  journal={arXiv preprint arXiv:2606.24597},\n  year={2026}\n}\n```\n",
  "dateCreated": "2026-10-19T01:26:53.998049939+00:00",
  "date_created": "2026-06-23T03:30:30+00:00",
  "date_modified": null,
  "date_published": "2026-06-23T03:30:30+00:00",
  "description": "Today we release Qwen-AgentWorld, a native language world model that simulates agent environments across seven domains: Native world modeling: environment modeling is the training objective from continual pre-training onward (CPT → SFT →…",
  "external_url": "https://qwen.ai/blog?id=qwen-agentworld",
  "git": {
    "commit": "ebb0941c5c06a2ab2377342d607535262a3e969e",
    "path": "items/qwen-ai/2026/06/2026-06-23-qwen-agentworld-language-world-models-for-general-agents.md",
    "permalink": "https://github.com/aymericbeaumet/aggr-instance/blob/ebb0941c5c06a2ab2377342d607535262a3e969e/items/qwen-ai/2026/06/2026-06-23-qwen-agentworld-language-world-models-for-general-agents.md"
  },
  "id": "urn:aggr:item:7a0d02bec9d952bc6d8d6a92217681619cca267c",
  "isBasedOn": {
    "@id": "https://qwen.ai/blog?id=qwen-agentworld"
  },
  "mainEntity": {
    "@id": "https://qwen.ai/blog?id=qwen-agentworld",
    "@type": "CreativeWork",
    "archivedAt": {
      "@id": "https://aggr.aymericbeaumet.com/items/qwen-ai/2026-06-23-qwen-agentworld-language-world-models-for-general-agents/#webpage"
    },
    "author": [
      {
        "@type": "Person",
        "name": "QwenTeam"
      }
    ],
    "datePublished": "2026-06-23T03:30:30+00:00",
    "headline": "Qwen-AgentWorld: Language World Models for General Agents",
    "image": {
      "@type": "ImageObject",
      "caption": null,
      "height": 90,
      "url": "https://img.alicdn.com/imgextra/i1/O1CN01HTUzD01pxACTcMZhl_!!6000000005426-2-tps-1590-954.png",
      "width": 160
    },
    "timeRequired": "PT15M",
    "url": "https://qwen.ai/blog?id=qwen-agentworld",
    "wordCount": 3278
  },
  "name": "Archived snapshot: Qwen-AgentWorld: Language World Models for General Agents",
  "preview": {
    "alt": null,
    "color": null,
    "height": 90,
    "placeholder": {
      "data_url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=",
      "hash": ""
    },
    "url": "https://img.alicdn.com/imgextra/i1/O1CN01HTUzD01pxACTcMZhl_!!6000000005426-2-tps-1590-954.png",
    "width": 160
  },
  "reading_minutes": 15,
  "replicated_at": null,
  "source": "qwen-ai",
  "source_name": "Qwen",
  "summary": null,
  "tags": [
    "open-source"
  ],
  "temporalCoverage": "2026-10-19T01:26:53.998049939+00:00",
  "title": "Qwen-AgentWorld: Language World Models for General Agents",
  "url": "https://aggr.aymericbeaumet.com/items/qwen-ai/2026-06-23-qwen-agentworld-language-world-models-for-general-agents/",
  "word_count": 3278
}