Adaptive In-conversation Team Building for Language Model Agents

Linxin Song, Jiale Liu, Jieyu Zhang, Shaokun Zhang, Ao Luo +3 more
5/29/2024
cs.CL

No official code found. Best implementation: ag2ai/ag2 (4,955 stars, Apache-2.0, last commit 2026-04-28).

Abstract

Leveraging multiple large language model (LLM) agents has shown to be a promising approach for tackling complex tasks, while the effective design of multiple agents for a particular application remains an art. It is thus intriguing to answer a critical question: Given a task, how can we build a team of LLM agents to solve it effectively? Our new adaptive team-building paradigm offers a flexible solution, realized through a novel agent design named Captain Agent. It dynamically forms and manages teams for each step of a task-solving process, utilizing nested group conversations and reflection to ensure diverse expertise and prevent stereotypical outputs, allowing for a flexible yet structured approach to problem-solving. A comprehensive evaluation across six real-world scenarios demonstrates that Captain Agent significantly outperforms existing multi-agent methods with 21.94% improvement in average accuracy, providing outstanding performance without requiring task-specific prompt engineering. Our exploration of different backbone LLM and cost analysis further shows that Captain Agent can improve the conversation quality of weak LLM and achieve competitive performance with extremely low cost, which illuminates the application of multi-agent systems.

View on arXivView PDF

Code Implementations(1)

ag2ai/ag2Community100%
Apache-2.0

AG2 (formerly AutoGen): The Open-Source AgentOS.Join us at: https://discord.gg/sNGSwQME3x

4,955724CSS, MDXNov 11, 20245 months agoApache-2.0
a2aag2agent-frameworkagenticagentic-ai+11 more

Similar Papers

Cite this paper

@article{song2024adaptive,
  title  = {Adaptive In-conversation Team Building for Language Model Agents},
  author = {Linxin Song and Jiale Liu and Jieyu Zhang and Shaokun Zhang and Ao Luo and Shijian Wang and Qingyun Wu and Chi Wang},
  year   = {2024},
  eprint = {2405.19425},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.19425v3}
}

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/2405.19425.svg)](https://codeofpaper.com/paper/2405.19425)

Discussion