Lune

ICLR2025Top-tier venue

AgentSquare: Automatic LLM Agent Search in Modular Design Space

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

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 consolidate the collective efforts of research community. Code repo is available at https://github.com/tsinghua-fib-lab/AgentSquare .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

20 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • MasRouter: Learning to Route LLMs for Multi-Agent Systems cites Reflexion: language agents with verbal reinforcement learning
  • MasRouter: Learning to Route LLMs for Multi-Agent Systems cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Division-of-Thoughts: Harnessing Hybrid Language Model Synergy for Efficient On-Device Agents cites Tree of Thoughts: Deliberate Problem Solving with Large Language Models
  • Division-of-Thoughts: Harnessing Hybrid Language Model Synergy for Efficient On-Device Agents cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Tree of Thoughts: Deliberate Problem Solving with Large Language Models cites Self-Refine: Iterative Refinement with Self-Feedback
  • Tree of Thoughts: Deliberate Problem Solving with Large Language Models cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Multi-Agent Design: Optimizing Agents with Better Prompts and Topologies cites Self-Refine: Iterative Refinement with Self-Feedback
  • Multi-Agent Design: Optimizing Agents with Better Prompts and Topologies cites Reflexion: language agents with verbal reinforcement learning
  • The Lighthouse of Language: Enhancing LLM Agents via Critique-Guided Improvement cites Tree of Thoughts: Deliberate Problem Solving with Large Language Models
  • The Lighthouse of Language: Enhancing LLM Agents via Critique-Guided Improvement cites Self-Refine: Iterative Refinement with Self-Feedback
  • The Lighthouse of Language: Enhancing LLM Agents via Critique-Guided Improvement cites Reflexion: language agents with verbal reinforcement learning
  • Self-Refine: Iterative Refinement with Self-Feedback cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Reflexion: language agents with verbal reinforcement learning cites Self-Refine: Iterative Refinement with Self-Feedback
  • Reflexion: language agents with verbal reinforcement learning cites Toolformer: Language Models Can Teach Themselves to Use Tools
  • Reflexion: language agents with verbal reinforcement learning cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Failure-Driven Workflow Refinement cites Self-Refine: Iterative Refinement with Self-Feedback
  • Failure-Driven Workflow Refinement cites Reflexion: language agents with verbal reinforcement learning
  • Failure-Driven Workflow Refinement cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers20

  1. Multi-Agent Design: Optimizing Agents with Better Prompts and TopologiesHan Zhou, Xingchen Wan, Ruoxi Sun, Hamid Palangi et al.ICLR 2026 · 127 citations
  2. MasRouter: Learning to Route LLMs for Multi-Agent SystemsYanwei Yue, Guibin Zhang, Boyang Liu, Guancheng Wan et al.ACL 2025 · 45 citations
  3. Division-of-Thoughts: Harnessing Hybrid Language Model Synergy for Efficient On-Device AgentsChenyang Shao, Xinyuan Hu, Yutang Lin, Fengli XuWWW 2025 · 31 citations
  4. The Lighthouse of Language: Enhancing LLM Agents via Critique-Guided ImprovementRuihan Yang, Fanghua Ye, Jian Li, Siyu Yuan et al.NeurIPS 2025 · 21 citations
  5. Failure-Driven Workflow RefinementJusheng Zhang, Jing Yang, Kaitong Cai, Ziliang Chen et al.ICML 2026 · 17 citations

Builds on28

  1. Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
  2. Toolformer: Language Models Can Teach Themselves to Use ToolsTimo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu et al.NeurIPS 2023 · 5,989 citations
  3. Reflexion: language agents with verbal reinforcement learningNoah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan et al.NeurIPS 2023 · 5,828 citations
  4. Tree of Thoughts: Deliberate Problem Solving with Large Language ModelsShunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran et al.NeurIPS 2023 · 5,068 citations
  5. Self-Refine: Iterative Refinement with Self-FeedbackAman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan et al.NeurIPS 2023 · 4,972 citations

Related papers

  1. Grammar Search for Multi-Agent SystemsMayank Singh, Vikas Yadav, Shiva Krishna Reddy Malay, Shravan Nayak et al.ACL 2026
  2. AgentSwift: Efficient LLM Agent Design via Value-Guided Hierarchical SearchYu Li, Lehui Li, Zhihao Wu, Qingmin Liao et al.AAAI 2026 · 6 citations
  3. Designing Observation and Action Models for Efficient Reinforcement Learning with LLMsDeunsol Yoon, Sunghoon Hong, Whiyoung Jung, Junseok Park et al.ICML 2026
  4. Gödel Agent: A Self-Referential Agent Framework for Recursively Self-ImprovementXunjian Yin, Xinyi Wang, Liangming Pan, Li Lin et al.ACL 2025 · 7 citations
  5. OMAC: A Holistic Optimization Framework for LLM-Based Multi-Agent CollaborationShijun Li, Hilaf Hasson, Joydeep GhoshICML 2026
Dusk over the sea between two cliffs drawn in fine vertical lines