More Agents Is All You Need

Junyou Li, Qin Zhang, Yangbin Yu, Qiang Fu, Deheng Ye
2/3/2024
249 citations
cs.CLcs.AIcs.LG

Official code: MoreAgentsIsAllYouNeed/AgentForest (151 stars, Python, last commit 2024-10-08).

Abstract

We find that, simply via a sampling-and-voting method, the performance of large language models (LLMs) scales with the number of agents instantiated. Also, this method, termed as Agent Forest, is orthogonal to existing complicated methods to further enhance LLMs, while the degree of enhancement is correlated to the task difficulty.

Show full abstract

We conduct comprehensive experiments on a wide range of LLM benchmarks to verify the presence of our finding, and to study the properties that can facilitate its occurrence. Our code is publicly available at: https://github.com/MoreAgentsIsAllYouNeed/AgentForest

View on arXivView PDF

Code Implementations(1)

We present the first systematic study on the scaling property of raw agents instantiated by LLMs. We find that performance scales with the increase in the number of agents, using the simple(st) way of sampling and voting. Our method is called Agent Forest, as a tribute to the classic Random Forest.

15116Python, ShellFeb 3, 20242 years ago

Similar Papers

Cite this paper

@article{li2024more,
  title  = {More Agents Is All You Need},
  author = {Junyou Li and Qin Zhang and Yangbin Yu and Qiang Fu and Deheng Ye},
  year   = {2024},
  eprint = {2402.05120},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.05120v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.05120.svg)](https://codeofpaper.com/paper/2402.05120)

Discussion