arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.07439cs.AIcs.CL
收藏

行为树实现语言模型智能体的结构化编程

Behavior Trees Enable Structured Programming of Language Model Agents

University of Nevada(内华达大学)

Richard Kelley

AI总结:

针对语言模型智能体脆弱需大量支撑的问题,提出用行为树统一结合语言模型与经典AI、传统编程的框架,推出Python库Dendron并通过三个案例验证其有效性。

摘要:

在互联网规模数据集上训练的语言模型已展现出解决自然语言处理与计算机视觉问题的出色能力。但实践经验表明,这类模型常以出人意料的方式表现出脆弱性,需要大量的支撑框架来确保它们在构成“语言模型智能体”的更大系统中正确运行。本文提出,行为树为将语言模型与经典人工智能及传统编程相结合提供了一个统一框架。我们推出了Dendron——一个用于通过行为树对语言模型智能体进行编程的Python库。我们通过三个案例研究展示了Dendron所体现的方法:构建聊天智能体、用于移动机器人或车辆的基于摄像头的基础设施巡检智能体,以及一个专为满足安全约束而构建的智能体——这些安全约束并非通过指令微调或RLHF(基于人类反馈的强化学习)获得。

英文摘要:

Language models trained on internet-scale data sets have shown an impressive ability to solve problems in Natural Language Processing and Computer Vision. However, experience is showing that these models are frequently brittle in unexpected ways, and require significant scaffolding to ensure that they operate correctly in the larger systems that comprise "language-model agents." In this paper, we argue that behavior trees provide a unifying framework for combining language models with classical AI and traditional programming. We introduce Dendron, a Python library for programming language model agents using behavior trees. We demonstrate the approach embodied by Dendron in three case studies: building a chat agent, a camera-based infrastructure inspection agent for use on a mobile robot or vehicle, and an agent that has been built to satisfy safety constraints that it did not receive through instruction tuning or RLHF.

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

↑