AgentGarten:用于进化智能体的代码世界
研究论文 · 2026/10/09
交互式虚拟世界允许智能体通过探索和交互来学习。智能体所能学到的东西受限于它们练习的环境,这些环境必须忠实(具有一致的状态、规则和动态)且真实(观察结果遵循真实世界的视觉分布)。在不同世界中同时实现这两点仍然是一个瓶颈。我们提出了 AgentGarten,一个将模拟器和游戏引擎与共享神经渲染器耦合的框架,用于构建实时交互环境。其模拟后端维护持久的世界状态并执行程序定义的交互规则,而渲染器则从通过通用接口导出的结构化条件生成视觉观察。为了构建神经渲染器,我们将预训练视频模型适配到几何条件,用我们提出的对抗强制(Adversarial Forcing)进行蒸馏,并优化推理以实现实时交互。对抗强制通过精确重放使历史预填充可微分,从而让后续预测的损失更新渲染器对先前观察的编码方式,并添加真实数据对抗监督以提高视觉质量。在 AgentGarten 中,智能体通过视觉观察感知世界,实时与之交互,并通过将每轮经验蒸馏成后续智能体继承和改进的剧本来提升。我们的实证研究表明学习效率大幅提升,智能体仅需 4 轮学习,而传统强化学习对应方法需要数百万轮。由于新世界可以写成代码并通过同一接口渲染,环境可以在数量和难度上与智能体一起扩展,这是朝着通过交互经验不断进化的智能体迈出的一步。
该研究提出了一种可扩展的框架,通过耦合模拟器与神经渲染器构建实时交互环境,显著提升了智能体的学习效率(仅需 4 轮对比数百万轮),并支持环境与智能体共同进化,为通过交互经验持续进化的智能体提供了新途径。
Interactive virtual worlds allow agents to learn through exploration and interaction. What agents can learn is bounded by the environments they practice in, which must be faithful, with consistent state, rules, and dynamics, and realistic, with observations that follow the real-world visual distributions. Achieving both across diverse worlds remains a bottleneck. We introduce AgentGarten, a framework that couples simulators and game engines with a shared neural renderer to build real-time interactive environments. Its simulation backends maintain persistent world state and execute program-defined interaction rules, while the renderer generates visual observations from structured conditions exported through a common interface. To build the neural renderer, we adapt a pretrained video model to geometry conditions, distill it with our proposed Adversarial Forcing, and optimize inference for real-time interaction. Adversarial Forcing makes history prefilling differentiable through exact replay, so that losses on later predictions update how the renderer encodes prior observations, and adds real-data adversarial supervision to improve its visual quality. In AgentGarten, agents perceive the world through visual observations, interact with it in real time, and improve by distilling each round of experience into playbooks that subsequent agents inherit and refine. Our empirical study demonstrates a substantial gain in learning efficiency, with agents learning from just 4 rounds compared with millions for a conventional reinforcement learning counterpart. As new worlds can be written as code and rendered through the same interface, environments can scale in both number and difficulty alongside their agents, a step toward agents that keep evolving through interactive experience.