arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.16905cs.AIcs.LGcs.LO
收藏

通过神经符号生成智能体实现程序遵循与可解释性

Procedural Adherence and Interpretability Through Neuro-Symbolic Generative Agents

Barnard College, Columbia University(巴纳德学院,哥伦比亚大学)

Raven Rothkopf, Hannah Tongxin Zeng, Mark Santolucito

AI总结:

针对LLM智能体长期时间行为管理与解释的挑战,提出结合形式逻辑程序合成与LLM内容生成的方法,利用TSL自动机约束高层时间结构,在交互式游戏任务中实现了至少96%的时间约束遵循度。

摘要:

大型语言模型(LLM)的普及激增为创建交互式智能体的新方法打开了大门。然而,在潜在的无限交互过程中管理和解释此类智能体的时间行为仍然具有挑战性。连贯智能体行为所需的有状态、长期视野推理并不适合LLM范式。我们提出了一种结合基于形式逻辑的程序合成和LLM内容生成的方法,为生成式智能体行为带来程序遵循和可解释性的保证。为了说明程序遵循和可解释性的好处,我们使用时间流逻辑(TSL)生成一个自动机,在智能体上强制执行可解释的高层时间结构。通过自动机跟踪交互上下文并做出决策以相应地引导对话,我们可以以一种允许LLM专注于更短上下文窗口的方式驱动内容生成。我们在创建专门用于生成选择你自己的冒险游戏的交互式智能体所涉及的不同任务上评估了我们的方法。我们发现,在所有任务中,具有程序保证的自动机增强智能体对其时间约束的遵循度至少达到96%,而纯粹基于LLM的智能体的遵循度低至14.67%。

英文摘要:

The surge in popularity of large language models (LLMs) has opened doors for new approaches to the creation of interactive agents. However, managing and interpreting the temporal behavior of such agents over the course of a potentially infinite interaction remain challenging. The stateful, long-term horizon reasoning required for coherent agent behavior does not fit well into the LLM paradigm. We propose a combination of formal logic-based program synthesis and LLM content generation to bring guarantees of procedural adherence and interpretability to generative agent behavior. To illustrate the benefit of procedural adherence and interpretability, we use Temporal Stream Logic (TSL) to generate an automaton that enforces an interpretable, high-level temporal structure on an agent. With the automaton tracking the context of the interaction and making decisions to guide the conversation accordingly, we can drive content generation in a way that allows the LLM to focus on a shorter context window. We evaluated our approach on different tasks involved in creating an interactive agent specialized for generating choose-your-own-adventure games. We found that over all of the tasks, an automaton-enhanced agent with procedural guarantees achieves at least 96% adherence to its temporal constraints, whereas a purely LLM-based agent demonstrates as low as 14.67% adherence.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑