arXiv:2410.06153cs.CL2024-10ICLR被引 140

用模块化设计自动搜索最优LLM代理,性能比人工设计高17.2%。

AgentSquare: Automatic LLM Agent Search in Modular Design Space

论文配图:AgentSquare: Automatic LLM Agent Search in Modular Design Space
图 1 · 摘自论文原文
  • 将代理拆解为规划、推理、工具使用、记忆四模块,统一接口
  • 通过模块演化与重组,搜索出平均提升17.2%的高效代理
  • 可生成可解释设计洞察,适合系统设计与自动化研究者

大型语言模型(LLMs)的进展推动了智能体系统的快速发展,但当前研究多依赖人工定制,难以适应新任务。本文提出模块化LLM代理搜索(MoLAS)新问题,构建一个包含规划、推理、工具使用、记忆四个标准模块的统一设计空间。基于此,提出AgentSquare框架,引入模块演化与重组机制,结合性能预测器跳过低效设计,实现高效搜索。在涵盖网页、具身、工具使用和游戏等六种场景的基准测试中,AgentSquare显著优于人工设计的代理,平均性能提升17.2%。同时能生成可解释的设计洞见,帮助理解智能体架构对任务表现的影响。我们相信该设计空间与搜索框架为复用成功经验、凝聚研究合力提供了平台。代码已开源:https://github.com/tsinghua-fib-lab/AgentSquare。

原文摘要 · Abstract (English)

Recent advancements in Large Language Models (LLMs) have led to a rapid growth of agentic systems capable of handling a wide range of complex tasks. However, current research largely relies on manual, task-specific design, limiting their adaptability to novel tasks. In this paper, we introduce a new research problem: Modularized LLM Agent Search (MoLAS). We propose a modular design space that abstracts existing LLM agent designs into four fundamental modules with uniform IO interface: Planning, Reasoning, Tool Use, and Memory. Building on this design space, we present a novel LLM agent search framework called AgentSquare, which introduces two core mechanisms, i.e., module evolution and recombination, to efficiently search for optimized LLM agents. To further accelerate the process, we design a performance predictor that uses in-context surrogate models to skip unpromising agent designs. Extensive experiments across six benchmarks, covering the diverse scenarios of web, embodied, tool use and game applications, show that AgentSquare substantially outperforms hand-crafted agents, achieving an average performance gain of 17.2% against best-known human designs. Moreover, AgentSquare can generate interpretable design insights, enabling a deeper understanding of agentic architecture and its impact on task performance. We believe that the modular design space and AgentSquare search framework offer a platform for fully exploiting the potential of prior successful designs and consolidating the collective efforts of research community. Code repo is available at https://github.com/tsinghua-fib-lab/AgentSquare.

LLM代理自动搜索模块化设计

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。