arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.14672cs.CLcs.AI
收藏

面向 LLM 的中间件:工具对于复杂环境中的语言智能体至关重要

Middleware for LLMs: Tools Are Instrumental for Language Agents in Complex Environments

The Ohio State University(俄亥俄州立大学);Tsinghua University(清华大学);Cisco Research(思科研究)

Yu Gu, Yiheng Shu, Hao Yu, Xiao Liu, Yuxiao Dong, Jie Tang, Jayanth Srinivasa, Hugo Latapie, Yu Su

AI总结:

本文提出称为 middleware 的工具层,帮助语言智能体主动探索庞大的知识库与数据库环境;实验显示 GPT-4 在数据库和 KB 任务上分别达到最佳基线的 2.8 倍和 2.2 倍。

摘要:

大型语言模型(LLM)的应用已远远超越文本处理的局限,预示着一个新时代:LLM 被设想为能够在复杂环境中运行的通用智能体。这些环境通常极为庞大,使 LLM 无法在其短期记忆中处理它们。受近期利用工具扩展 LLM 能力研究的启发,我们通过引入一类称为 middleware(中间件)的新型工具,来辅助在这些庞大环境中进行主动探索,从而研究工具在增强 LLM 处理此类复杂性方面的有趣潜力。这类专用工具可充当中间件层,使 LLM 免受环境复杂性的影响。在知识库(KB)和数据库这两个具有代表性的复杂环境中,我们展示了在复杂环境中用工具增强语言智能体的巨大潜力。值得注意的是,借助 middleware,GPT-4 在需要访问数据库内容的任务中达到最佳基线性能的 2.8 倍,在 KB 任务中达到 2.2 倍。我们的发现为推进现实世界应用中的语言智能体指明了方向。

英文摘要:

The applications of large language models (LLMs) have expanded well beyond the confines of text processing, signaling a new era where LLMs are envisioned as generalist agents capable of operating within complex environments. These environments are often highly expansive, making it impossible for the LLM to process them within its short-term memory. Motivated by recent research on extending the capabilities of LLMs with tools, we seek to investigate the intriguing potential of tools to augment LLMs in handling such complexity by introducing a novel class of tools, termed middleware, to aid in the proactive exploration within these massive environments. Such specialized tools can serve as a middleware layer shielding the LLM from environmental complexity. In two representative complex environments -- knowledge bases (KBs) and databases -- we demonstrate the significant potential of augmenting language agents with tools in complex environments. Notably, equipped with the middleware, GPT-4 achieves 2.8X the performance of the best baseline in tasks requiring access to database content and 2.2X in KB tasks. Our findings illuminate the path for advancing language agents in real-world applications.

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

↑