基于强化学习的世界模型学习:面向 LLM 智能体

Reinforcement World Model Learning for LLM-based Agents

高剑峰 Jianfeng Gao · Microsoft · 2026-02-05 · arXiv:2602.05842 ↗ · 被引 5

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

大型语言模型(LLM)在语言为中心的任务中表现出色,但在智能体场景中,它们往往难以预测行动后果并适应环境动态,这凸显了 LLM 智能体需要具备世界建模能力。我们提出了强化世界模型学习(RWML),这是一种自监督方法,利用模拟-现实差距奖励,在文本状态上为基于 LLM 的智能体学习行动条件的世界模型。我们的方法将模型生成的模拟下一状态与环境观察到的实际下一状态对齐,在预训练的嵌入空间中鼓励内部世界模拟与实际环境动态之间的一致性。与下一状态令牌预测(优先考虑令牌级保真度,即复现确切措辞,而非语义等价,并可能导致模型崩溃)不同,我们的方法提供了更稳健的训练信号,并且在经验上比 LLM 作为评判器更不易受到奖励黑客攻击。我们在 ALFWorld 和τ² Bench 上评估了该方法,观察到相比基础模型有显著提升,尽管完全是自监督的。当与任务成功奖励结合时,我们的方法在 ALFWorld 和τ² Bench 上分别比直接任务成功奖励强化学习高出 6.9 和 5.7 个百分点,同时与专家数据训练的性能相匹配。

Large language models (LLMs) have achieved strong performance in language-centric tasks. However, in agentic settings, LLMs often struggle to anticipate action consequences and adapt to environment dynamics, highlighting the need for world-modeling capabilities in LLM-based agents. We propose Reinforcement World Model Learning (RWML), a self-supervised method that learns action-conditioned world models for LLM-based agents on textual states using sim-to-real gap rewards. Our method aligns simulated next states produced by the model with realized next states observed from the environment, encouraging consistency between internal world simulations and actual environment dynamics in a pre-trained embedding space. Unlike next-state token prediction, which prioritizes token-level fidelity (i.e., reproducing exact wording) over semantic equivalence and can lead to model collapse, our method provides a more robust training signal and is empirically less susceptible to reward hacking than LLM-as-a-judge. We evaluate our method on ALFWorld and $τ^2$ Bench and observe significant gains over the base model, despite being entirely self-supervised. When combined with task-success rewards, our method outperforms direct task-success reward RL by 6.9 and 5.7 points on ALFWorld and $τ^2$ Bench respectively, while matching the performance of expert-data training.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 16)

阅读逐段中英对照全文 →