# AgentSquare: Automatic LLM Agent Search in Modular Design Space

Source: [AgentSquare: Automatic LLM Agent Search in Modular Design Space](<https://www.sota2.com/research/paper/68fa772c1e209131cea71925>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-10-26T04:11:54.790Z

Authors: Yu Shang, Yu Li, Keyu Zhao, Likai Ma, Jiahe Liu, Fengli Xu, Yong Li

Published: 2024-10-08T15:52:42.000Z

## 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.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Graph Reasoning on GraphArena](<https://www.sota2.com/research/sota/graph-reasoning-on-grapharena.md>): Graph Reasoning; GraphArena; Average Acc: 100.

- [Graph Reasoning on G-Real](<https://www.sota2.com/research/sota/graph-reasoning-on-g-real.md>): Graph Reasoning; G-Real; Success Rate: 100.

- [General Assistant Reasoning on GAIA](<https://www.sota2.com/research/sota/general-assistant-reasoning-on-gaia.md>): General Assistant Reasoning; GAIA; GAIA Level 1 Score: 41.5.

- [Multi-agent system task solving on BrowseComp](<https://www.sota2.com/research/sota/multi-agent-system-task-solving-on-browsecomp.md>): Multi-agent system task solving; Browsecomp; Accuracy: 62.5.

- [Code Generation on MBPP Pro](<https://www.sota2.com/research/sota/code-generation-on-mbpp-pro.md>): Code Generation; MBPP Pro; Pass@1: 83.92.

- [Graph Reasoning on GraphInstruct](<https://www.sota2.com/research/sota/graph-reasoning-on-graphinstruct.md>): Graph Reasoning; GraphInstruct; Average Performance: 87.5.

- [Mathematical Reasoning on MATH (Performance and Cost Metrics)](<https://www.sota2.com/research/sota/mathematical-reasoning-on-math-performance-and-cost-metrics.md>): Mathematical Reasoning; MATH; Accuracy: 62.76.

- [Aggregated Multi-task Evaluation on Average](<https://www.sota2.com/research/sota/aggregated-multi-task-evaluation-on-average.md>): Aggregated Multi-task Evaluation; Average; Performance Score: 66.7.

- [Graph Reasoning on NLGraph](<https://www.sota2.com/research/sota/graph-reasoning-on-nlgraph.md>): Graph Reasoning; NLGraph; Success Rate: 63.5.

- [Long-horizon planning on TravelPlanner](<https://www.sota2.com/research/sota/long-horizon-planning-on-travelplanner.md>): Long horizon planning; TravelPlanner; Delivery Rate: 98.3.

- [Problem-Solving on MMLU (test)](<https://www.sota2.com/research/sota/problem-solving-on-mmlu-test.md>): Problem-Solving; MMLU (test); MMLU Problem Solving Accuracy: 78.01.

- [Code Generation on MBPP (Perf., Cost)](<https://www.sota2.com/research/sota/code-generation-on-mbpp-perf-cost.md>): Code Generation; MBPP; Performance (%): 72.73.

- [Cross-domain LLM Evaluation on MMLU, GSM8K, MultiArith, SVAMP, AQuA, and HumanEval](<https://www.sota2.com/research/sota/cross-domain-llm-evaluation-on-mmlu-gsm8k-multiarith-svamp-aqua-and-humaneval.md>): Cross-domain LLM Evaluation; MMLU, GSM8K, MultiArith, SVAMP, AQuA, HumanEval; Average Score: 87.26.

- [Multi-agent system task solving on plancraft](<https://www.sota2.com/research/sota/multi-agent-system-task-solving-on-plancraft.md>): Multi-agent system task solving; Plancraft; Accuracy: 57.4.

- [General Knowledge Evaluation on MMLU](<https://www.sota2.com/research/sota/general-knowledge-evaluation-on-mmlu.md>): General Knowledge Evaluation; MMLU; MMLU Accuracy: 79.58.

- [Reading Comprehension on DROP (Performance and Cost)](<https://www.sota2.com/research/sota/reading-comprehension-on-drop-performance-and-cost.md>): Reading Comprehension; DROP; Performance Score: 76.84.

- [Mathematical Reasoning on AMC (Perf., Cost)](<https://www.sota2.com/research/sota/mathematical-reasoning-on-amc-perf-cost.md>): Mathematical Reasoning; AMC; Accuracy: 58.78.

- [Multi-agent system task solving on workbench](<https://www.sota2.com/research/sota/multi-agent-system-task-solving-on-workbench.md>): Multi-agent system task solving; WorkBench; Accuracy: 44.

- [API Use on API-Bank](<https://www.sota2.com/research/sota/api-use-on-api-bank.md>): API Use; API-Bank; Success Rate: 45.61.

- [Search-based Question Answering on SearchQA](<https://www.sota2.com/research/sota/search-based-question-answering-on-searchqa.md>): Search-based Question Answering; SearchQA; Hotpot Score: 29.33.

- [Tool Use on ToolHop](<https://www.sota2.com/research/sota/tool-use-on-toolhop.md>): Tool Use; ToolHop; Answer Correctness: 30.77.

- [Science Reasoning on GPQA (test)](<https://www.sota2.com/research/sota/science-reasoning-on-gpqa-test.md>): Science Reasoning; GPQA (test); Accuracy: 37.88.

- [Multi-agent system task solving on finance](<https://www.sota2.com/research/sota/multi-agent-system-task-solving-on-finance.md>): Multi-agent system task solving; Finance; Accuracy: 28.6.

- [Reading Comprehension on DROP (test)](<https://www.sota2.com/research/sota/reading-comprehension-on-drop-test.md>): Reading Comprehension; DROP (test); F1 Score: 78.38.

- [Mathematical Reasoning on GSM8K (test) (Accuracy, Reward)](<https://www.sota2.com/research/sota/mathematical-reasoning-on-gsm8k-test-accuracy-reward.md>): Mathematical Reasoning; GSM8K (test); Accuracy: 87.62.

- [Code Generation on MBPP (pass@1, Improvement Rate (%))](<https://www.sota2.com/research/sota/code-generation-on-mbpp-pass-at-1-improvement-rate-percent.md>): Code Generation; MBPP; Pass@1: 78.46.

- [Arithmetic Reasoning on MultiArith (test)](<https://www.sota2.com/research/sota/arithmetic-reasoning-on-multiarith-test.md>): Arithmetic Reasoning; MultiArith (test); Accuracy: 97.77.

- [Code Generation on HumanEval](<https://www.sota2.com/research/sota/code-generation-on-humaneval.md>): Code Generation; HumanEval; Pass@1: 96.84.

- [Multi-task Knowledge and Reasoning on MMLU-Pro](<https://www.sota2.com/research/sota/multi-task-knowledge-and-reasoning-on-mmlu-pro.md>): Multi-task Knowledge and Reasoning; MMLU-Pro; Average Score @1: 63.75.

- [Code Generation on HumanEval (test)](<https://www.sota2.com/research/sota/code-generation-on-humaneval-test.md>): Code Generation; HumanEval (test); Pass@1: 89.08.

- [Code Generation on MBPP (test)](<https://www.sota2.com/research/sota/code-generation-on-mbpp-test.md>): Code Generation; MBPP (test); Pass@1: 78.46.

- [Mathematical Reasoning on MATH (test) (Reward, Acc (%))](<https://www.sota2.com/research/sota/mathematical-reasoning-on-math-test-reward-acc-percent.md>): Mathematical Reasoning; MATH (test); Accuracy: 48.51.

- [Tool Learning on RestBench TMDB](<https://www.sota2.com/research/sota/tool-learning-on-restbench-tmdb.md>): Tool Learning; RestBench TMDB; Success Rate: 38.

- [Arithmetic Reasoning on MultiArith](<https://www.sota2.com/research/sota/arithmetic-reasoning-on-multiarith.md>): Arithmetic Reasoning; MultiArith; Accuracy: 97.77.

- [Mathematical Reasoning on AQuA (Accuracy)](<https://www.sota2.com/research/sota/mathematical-reasoning-on-aqua-accuracy.md>): Math Reasoning; AQUA; Accuracy: 81.5.

- [Mathematical Reasoning on MATH (Accuracy and Token Usage)](<https://www.sota2.com/research/sota/mathematical-reasoning-on-math-accuracy-and-token-usage.md>): Mathematical Reasoning; MATH; Accuracy: 48.51.

- [Multitask Language Understanding on MMLU (Accuracy only)](<https://www.sota2.com/research/sota/multitask-language-understanding-on-mmlu-accuracy-only.md>): Multitask Language Understanding; MMLU; Accuracy: not recorded.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2410.06153>)

[PDF](<https://arxiv.org/pdf/2410.06153.pdf>)
