Skip to main content
QUICK REVIEW

[论文解读] Automated Design of Agentic Systems

Shengran Hu, Cong Lu|arXiv (Cornell University)|Aug 15, 2024
Multi-Agent Systems and NegotiationComputer Science被引用 7
一句话总结

论文介绍 Automated Design of Agentic Systems (ADAS) 和元代理人算法 Meta Agent Search,能够在代码中编程并发现新颖的代理系统,展示的代理在手工设计基线中表现更优并且在跨领域和模型中具有迁移性。

ABSTRACT

Researchers are investing substantial effort in developing powerful general-purpose agents, wherein Foundation Models are used as modules within agentic systems (e.g. Chain-of-Thought, Self-Reflection, Toolformer). However, the history of machine learning teaches us that hand-designed solutions are eventually replaced by learned solutions. We describe a newly forming research area, Automated Design of Agentic Systems (ADAS), which aims to automatically create powerful agentic system designs, including inventing novel building blocks and/or combining them in new ways. We further demonstrate that there is an unexplored yet promising approach within ADAS where agents can be defined in code and new agents can be automatically discovered by a meta agent programming ever better ones in code. Given that programming languages are Turing Complete, this approach theoretically enables the learning of any possible agentic system: including novel prompts, tool use, workflows, and combinations thereof. We present a simple yet effective algorithm named Meta Agent Search to demonstrate this idea, where a meta agent iteratively programs interesting new agents based on an ever-growing archive of previous discoveries. Through extensive experiments across multiple domains including coding, science, and math, we show that our algorithm can progressively invent agents with novel designs that greatly outperform state-of-the-art hand-designed agents. Importantly, we consistently observe the surprising result that agents invented by Meta Agent Search maintain superior performance even when transferred across domains and models, demonstrating their robustness and generality. Provided we develop it safely, our work illustrates the potential of an exciting new research direction toward automatically designing ever-more powerful agentic systems to benefit humanity.

研究动机与目标

  • 将 ADAS 的理念定为自动化设计强大代理系统,并将 Foundation Models 作为模块集成。
  • 提出一种代码空间搜索方法,在代码中对代理进行编程,由元代理发现。
  • 引入 Meta Agent Search,以迭代地编程、测试、存档和改进代理设计。
  • 展示所发现代理在跨领域和跨模型中的鲁棒性与迁移性。

提出的方法

  • 定义三要素的 ADAS 框架:搜索空间(代码定义的代理)、搜索算法(元代理驱动的探索)和评估函数(任务绩效)。
  • 提出 Meta Agent Search,其中元代理使用发现的代理档案来迭代编写新的代理代码。
  • 在元代理中使用自我反思步骤以确保新颖性并改进设计。
  • 在 ARC、阅读理解、数学、科学和多任务基准上评估所发现的代理,以及跨领域和跨模型的迁移。
  • 在多个领域与最先进的手工设计基线和仅提示方法进行比较。

实验结果

研究问题

  • RQ1能否让 ADAS 自动发明新的组件并将它们组合成高效的代理系统?
  • RQ2通过在代码中对代理进行编程的元代理能否发现超越手工设计基线的设计?
  • RQ3由 Meta Agent Search 发现的代理能否在跨领域和跨模型中保持鲁棒性迁移?

主要发现

  • 所发现的代理在 ARC、阅读、数学和多任务基准上显著超越手工设计的基线。
  • 在阅读理解(DROP)和数学(MGSM)上,改进分别为 13.6/100 的 F1 和 14.4% 的准确率。
  • 代理在数学和非数学领域显示出强迁移性,相对基线在 GSM8K 提升 25.9%,在 GSM-Hard 提升 13.2%。
  • 在 ARC 的不同 Foundation Models 转移中,最佳代理在 Claude-Sonnet 上的准确率接近 50%。
  • Meta Agent Search 在各领域均持续超越提示优化基线。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。