arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2310.08535cs.AIcs.CL
收藏

形式化规约基于 LLM 的智能体的高层行为

Formally Specifying the High-Level Behavior of LLM-Based Agents

IBM Research(IBM研究院)

Maxwell Crouse, Ibrahim Abdelaziz, Ramon Astudillo, Kinjal Basu, Soham Dan, Sadhana Kumaravel, Achille Fokoue, Pavan Kapanipathi, Salim Roukos, Luis Lastras

AI总结:

本文提出一种声明式高层规约与解码监控框架,用于形式化生成基于 LLM 的智能体,可复现 ReACT、构建 PASS,并在多个推理问答基准上取得更优性能。

摘要:

由 LLM 驱动的自主、目标导向智能体最近已成为颇具前景的工具,可用于解决具有挑战性的问题,而无需获取成本高昂的任务专用微调模型。目前,此类智能体的设计与实现是临时性的,因为基于 LLM 的智能体可能应用于多种多样的任务,这自然意味着不可能存在一种适用于所有情况的智能体设计方法。在本工作中,我们旨在通过提出一个极简的生成框架来缓解设计和实现新智能体的困难,该框架简化了构建智能体的过程。我们引入的框架允许用户在高层、声明式规约中定义期望的智能体行为,随后该规约被用于构造一个解码监控器,以保证 LLM 会产生展现出期望行为的输出。我们的声明式方法在描述行为时无需关心应如何实现或强制该行为,从而支持快速设计、实现并试验不同的基于 LLM 的智能体。我们展示了所提出的框架如何可用于实现近期的基于 LLM 的智能体(例如 ReACT),并说明如何利用我们方法的灵活性来定义一个具有更复杂行为的新智能体,即 Plan-Act-Summarize-Solve(PASS)智能体。最后,我们证明了我们的方法在多个流行的、以推理为中心的问答基准测试上优于其他智能体。

英文摘要:

Autonomous, goal-driven agents powered by LLMs have recently emerged as promising tools for solving challenging problems without the need for task-specific finetuned models that can be expensive to procure. Currently, the design and implementation of such agents is ad hoc, as the wide variety of tasks that LLM-based agents may be applied to naturally means there can be no one-size-fits-all approach to agent design. In this work we aim to alleviate the difficulty of designing and implementing new agents by proposing a minimalistic generation framework that simplifies the process of building agents. The framework we introduce allows the user to define desired agent behaviors in a high-level, declarative specification that is then used to construct a decoding monitor which guarantees the LLM will produce an output exhibiting the desired behavior. Our declarative approach, in which the behavior is described without concern for how it should be implemented or enforced, enables rapid design, implementation, and experimentation with different LLM-based agents. We demonstrate how the proposed framework can be used to implement recent LLM-based agents (e.g., ReACT), and show how the flexibility of our approach can be leveraged to define a new agent with more complex behavior, the Plan-Act-Summarize-Solve (PASS) agent. Lastly, we demonstrate that our method outperforms other agents on multiple popular reasoning-centric question-answering benchmarks.

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

↑