Skip to main content
QUICK REVIEW

[Paper Review] More Agents Is All You Need

Junyou Li, Qin Zhang|arXiv (Cornell University)|Feb 3, 2024
Topic ModelingComputer Science17 citations
TL;DR

The paper shows that simply increasing the number of instantiated LLM agents with a sampling-and-voting approach consistently improves performance across tasks, and can match or exceed larger models using ensembles of smaller ones, while being compatible with existing methods.

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

Motivation & Objective

  • Investigate whether increasing the number of LLM agents yields consistent performance gains across diverse tasks.
  • Assess the universality of the sampling-and-voting approach as a simple, orthogonal method to enhance LLMs.
  • Explore how task difficulty dimensions influence the effectiveness of multi-agent ensembles.
  • Examine compatibility and potential synergy with existing prompting and multi-agent frameworks.

Proposed method

  • Two-phase sampling-and-voting: generate N samples by querying an LLM or a combination of methods, then select the final answer by majority voting based on sample similarity.
  • Use task-type appropriate similarity measures (BLEU for generation tasks; frequency of occurrence for closed-ended tasks) to compute vote totals.
  • Quantify and analyze the ensemble-size effect by varying N across multiple LLMs and datasets.
  • Evaluate compatibility by integrating the sampling-and-voting method with existing prompting techniques (e.g., Chain-of-Thought, Zero-Shot CoT) and multi-agent frameworks (e.g., Debate, Reflection).
  • Examine robustness through ablations on hyperparameters (temperature, nucleus sampling) and by studying performance across task difficulties.
  • Propose extensions such as step-wise and hierarchical sampling-and-voting to further boost gains.

Experimental results

Research questions

  • RQ1Does performance generally improve as the number of instantiated LLM agents increases across a wide range of tasks and model sizes?
  • RQ2Is the proposed sampling-and-voting approach orthogonal to and able to enhance existing prompting and multi-agent collaboration methods?
  • RQ3How do task difficulty dimensions (inherent difficulty, number of reasoning steps, prior probability of the correct answer) influence the efficacy of multi-agent ensembles?
  • RQ4Can hierarchical or step-wise variants of sampling-and-voting further boost gains under varying conditions?

Key findings

  • Performance generally scales with ensemble size across tasks and models, enabling smaller models to approach or surpass larger ones when sufficiently ensembled.
  • The method is largely orthogonal to existing techniques and can further improve performance when combined with them.
  • Relative gains are larger on harder tasks and as task difficulty increases in specified dimensions.
  • Step-wise and hierarchical variants can yield additional gains, especially for more complex or hierarchically decomposable problems.
  • Across multiple datasets and models, the approach achieves superior average ranking compared with standalone baselines and other enhanced methods.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.