Skip to main content
QUICK REVIEW

[論文レビュー] AgentSquare: Automatic LLM Agent Search in Modular Design Space

Yu Shang, Li Yu|arXiv (Cornell University)|Oct 8, 2024
Manufacturing Process and OptimizationEngineering被引用数 3
ひとこと要約

この論文では、計画、推論、ツール利用、メモリモジュールからなるモジュラー設計空間において、自動的にLLMエージェントを探索するための新規フレームワークAgentSquareを提案する。モジュールの進化と再結合、および文脈内での性能予測子を活用することで、6つの多様なベンチマークにおいて平均17.2%の性能向上を達成し、手作業で設計されたものよりも優れたエージェントを発見するとともに、解釈可能な設計インサイトを提供する。

ABSTRACT

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エージェントの設計空間の欠如に対処すること。
  • 先行知識を活用してエージェントアーキテクチャを自動最適化可能な、新たな研究課題としてのモジュラー化LLMエージェント探索(MoLAS)を提唱すること。
  • 計画、推論、ツール利用、メモリモジュールの各モジュールに対して、一様な入出力インターフェースを備えた標準化・拡張可能なモジュラー設計空間を設計すること。
  • 文脈内学習を用いた代理性能予測子を活用することで、高コストなLLM評価を削減し、エージェント探索を加速すること。
  • 従来の手作業設計を上回る、新規で高性能かつ解釈可能なエージェントアーキテクチャを生成すること。

提案手法

  • 計画、推論、ツール利用、メモリの4つの標準化されたLLMエージェントコンポonentを備えたモジュラー設計空間を定義し、各コンポonentに一様な入出力インターフェースを設定すること。
  • タスク記述、既存モジュール、性能フィードバックを同時に最適化する進化的なメタプロンプトを用いて、モジュールの進化を実装すること。
  • LLMの推論を活用して、多様なコードベースから事前に存在するモジュールの高パフォーマンスな組み合わせを探索するモジュール再結合を適用すること。
  • 文脈内学習を用いてエージェントの性能をシミュレートする性能予測子を設計し、有望でない候補の早期除外を可能にすること。
  • 予測子を用いて低潜在的設計を pruning する一方で、モジュールを段階的に進化・再結合するパイプラインと検索フレームワークを統合すること。
  • ウェブ、エンジン内エージェント、ツール利用、ゲーム環境をカバーする6つのベンチマークでフレームワークを検証し、汎用性を確保すること。
Figure 1: AgentSquare is a modular framework for designing and optimizing LLM agents. We first propose a modular design space of LLM agents and extract 4 types of standardized modules including planning, reasoning, tooluse, and memory. Based on this, we design a novel LLM agent search framework to a
Figure 1: AgentSquare is a modular framework for designing and optimizing LLM agents. We first propose a modular design space of LLM agents and extract 4 types of standardized modules including planning, reasoning, tooluse, and memory. Based on this, we design a novel LLM agent search framework to a

実験結果

リサーチクエスチョン

  • RQ1標準化されたモジュラー設計空間は、LLMエージェントアーキテクチャの体系的かつ再利用可能な最適化を可能にするか?
  • RQ2モジュールの進化と再結合による自動探索は、人間が設計したものと比較して、どれほど効果的に優れたエージェント設計を発見できるか?
  • RQ3文脈内性能予測子は、探索品質を損なうことなく、評価コストをどの程度削減できるか?
  • RQ4検索フレームワークは、エージェント性能の理解を深める解釈可能な設計インサイトを生成できるか?
  • RQ5AgentSquareフレームワークは、ウェブナビゲーション、ゲームプレイ、ツール利用といった多様なアプリケーションドメインにどの程度汎用的に適用可能か?

主な発見

  • AgentSquareは、6つの多様なベンチマークにおいて、最良の既知の手作業設計エージェントよりも平均17.2%の性能向上を達成した。
  • このフレームワークは、すべてのベンチマーク環境において、すべての手作業設計ベースラインを上回る、新規のエージェントアーキテクチャを一貫して発見した。
  • AgentSquareは、他の探索アルゴリズムと比較してより急峻な最適化軌道を示しており、高性能エージェントへの収束が速いことが示された。
  • 性能予測子は、有望でないエージェント候補を効果的にスキップし、解決の質を損なうことなく、検索プロセスを著しく高速化した。
  • フレームワークは解釈可能な設計インサイトを生成し、タスクパフォーマンスと相関する有意義なアーキテクチャ的パターンやモジュール間相互作用を明らかにした。
  • モジュラー設計空間により、異なるコードベースからのモジュールのシームレスな統合と再結合が可能となり、再利用性とコミュニティ全体の知識統合を促進した。
Figure 2: Illustration of the modular agent design space and agentic workflow (left) and the standardized IO interface of four types of modules (right).
Figure 2: Illustration of the modular agent design space and agentic workflow (left) and the standardized IO interface of four types of modules (right).

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。