GARP:在游戏引擎中于本地硬件运行的实时生成式智能体
GARP: Real-Time Generative Agents on Local Hardware in a Game Engine
AI总结:
GARP是在Godot引擎中于本地硬件运行的实时生成式智能体平台,采用3B参数开放模型,新增情绪等系统,经9场景评估27次运行25次通过,实现无云服务的实时生成式智能体。
摘要:
生成式智能体是其计划、对话和记忆由大语言模型(LLM)实时生成的游戏角色。最初的生成式智能体演示在自定义模拟中使用云推理。我们提出GARP,这是一个在Godot引擎内运行的实时生成式智能体平台,并描述GARP 2中使用的角色行为系统。完整的循环在本地硬件上运行,使用30亿参数的开放权重模型,无需云服务。除了原有的规划、记忆和反思功能外,GARP还为每个智能体配备了由LLM评估驱动的情绪系统、从大五人格理论中提取的四个分级人格轴(这些轴既设置模拟参数,也设置提示文本)、六个随时间紧迫性增长的需求,以及每次对话后更新的成对关系。该系统将50多个候选动作缩小到通常3-8个,通过JSON模式约束模型响应,并在决策提示中突出重要记忆。分层优化策略(可调整的游戏时钟、提前满足需求的决策、多层缓存、提示压缩以及完全异步执行)在模型计算时保持游戏响应性。在包含九个场景的评估中,27次运行中有25次通过了基于日志的检查,两次失败均发生在生日派对场景中,其中一名客人在日常计划中遗漏了该事件。
英文摘要:
Generative agents are game characters whose plans, conversations, and memories are written on the fly by a large language model (LLM). The original Generative Agents demonstration used cloud inference in a custom simulation. We present GARP, a platform for real-time generative agents inside Godot, and describe the Character Behavior System used in GARP 2. The complete loop runs on local hardware using a 3B-parameter open-weight model and no cloud service. Alongside the original planning, memory, and reflection, GARP gives each agent an emotion system driven by LLM appraisal, four graded personality axes drawn from the Big Five that set simulation parameters as well as prompt text, six needs whose urgency grows over time, and pairwise relationships updated after every conversation. The system narrows 50+ candidate actions to typically 3-8, constrains model responses with JSON schemas, and surfaces important memories in decision prompts. A layered optimization strategy (an adjustable game clock, decisions taken ahead of need, multi-tier caching, prompt compression, and fully asynchronous execution) keeps the game responsive while the model thinks. In a nine-scenario evaluation, 25 of 27 runs passed log-based checks. Both failures occurred in the birthday party scenario, where one guest omitted the event from their daily plan.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。