基于强化学习的世界模型学习用于基于大语言模型的智能体
Reinforcement World Model Learning for LLM-based Agents
AI总结:
本文提出了一种基于强化学习的世界模型学习方法,用于提升基于大语言模型的智能体在环境动态适应和预测方面的性能。
摘要:
大型语言模型(LLMs)在语言中心任务中取得了强大的性能。然而,在代理设置中,LLMs往往难以预测行动后果并适应环境动态,突显了基于LLM的智能体在世界建模能力上的需求。我们提出了强化世界模型学习(RWML),一种自监督方法,通过在文本状态上使用sim-to-real gap奖励来学习基于LLM的智能体的行动条件世界模型。我们的方法将模型生成的模拟下一状态与从环境中观察到的实际下一状态对齐,从而在预训练嵌入空间中鼓励内部世界模拟与实际环境动态之间的一致性。与注重token级精确度(即复现精确措辞)而非语义等价性的下一状态token预测不同,我们的方法提供了一个更稳健的训练信号,并且在经验上比LLM-as-a-judge更少受到奖励黑客的影响。我们在ALFWorld和τ² Bench上评估了我们的方法,并观察到在完全自监督的情况下,相对于基线模型有显著的提升。当与任务成功奖励结合时,我们的方法在ALFWorld和τ² Bench上分别比直接任务成功奖励RL高出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 using no expert data, task-success rewards, or strong-LLM annotations - only an off-the-shelf embedding model as a distance metric. 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; it further outperforms expert-data training on ALFWorld and is comparable to it on $τ^2$ Bench.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。