WorldCoder,一个基于模型的LLM智能体:通过编写代码和与环境交互来构建世界模型
WorldCoder, a Model-Based LLM Agent: Building World Models by Writing Code and Interacting with the Environment
AI总结:
提出基于模型的智能体WorldCoder,通过编写Python程序构建世界模型并定义程序与规划器间的逻辑约束,在gridworlds等任务中展现出比深度RL更高样本效率、比ReAct风格智能体更高计算效率及跨环境代码迁移能力。
摘要:
我们提出了一种基于模型的智能体,它根据与环境的交互构建一个Python程序来表示其对世界的知识。该世界模型试图解释其交互,同时对其能获得的奖励保持乐观。我们将这种乐观主义定义为程序与规划器之间的逻辑约束。我们在gridworlds和任务规划上研究了我们的智能体,发现与深度RL相比,我们的方法更具样本效率,与ReAct风格的智能体相比更具计算效率,并且它可以通过编辑代码在不同环境间迁移其知识。
英文摘要:
We give a model-based agent that builds a Python program representing its knowledge of the world based on its interactions with the environment. The world model tries to explain its interactions, while also being optimistic about what reward it can achieve. We define this optimism as a logical constraint between a program and a planner. We study our agent on gridworlds, and on task planning, finding our approach is more sample-efficient compared to deep RL, more compute-efficient compared to ReAct-style agents, and that it can transfer its knowledge across environments by editing its code.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。