Addressing the challenge of effectively processing long contexts has become a critical issue for Large Language Models (LLMs). Two common strategies have emerged: 1) reducing the input length, such as retrieving relevant chunks by Retrieval-Augmented Generation (RAG), and 2) expanding the context window limit of LLMs. However, both strategies have drawbacks: input reduction has no guarantee of covering the part with needed information, while window extension struggles with focusing on the pertinent information for solving the task. To mitigate these limitations, we propose Chain-of-Agents (CoA), a novel framework that harnesses multi-agent collaboration through natural language to enable information aggregation and context reasoning across various LLMs over long-context tasks. CoA consists of multiple worker agents who sequentially communicate to handle different segmented portions of the text, followed by a manager agent who synthesizes these contributions into a coherent final output. CoA processes the entire input by interleaving reading and reasoning, and it mitigates long context focus issues by assigning each agent a short context. We perform comprehensive evaluation of CoA on a wide range of long-context tasks in question answering, summarization, and code completion, demonstrating significant improvements by up to 10% over strong baselines of RAG, Full-Context, and multi-agent LLMs.
Local-First Intelligence via Proactive SLM Collaborating with Feedback-Providing LLM
Shanghai Jiao Tong University, Shanghai, China(上海交通大学);WeChat Tencent, Beijing, China(微信腾讯);State University of New York at Buffalo, New York, United States(纽约州立大学布法罗分校)
Towards Detecting LLMs Hallucination via Markov Chain-based Multi-agent Debate Framework
Wangxuan Institute of Computer Technology, Peking University(北京大学王选计算机研究所);Gaoling School of Artifical Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院)
SWE-Chain: Benchmarking Coding Agents on Chained Release-Level Package Upgrades
The Chinese University of Hong Kong(香港中文大学);Independent(独立);ELLIS;Technical University of Darmstadt(达姆施塔特技术大学);Johns Hopkins University(约翰霍普金斯大学);Monash University(墨尔本大学)
A Dynamic LLM-Powered Agent Network for Task-Oriented Agent Collaboration
Tsinghua University(清华大学);Georgia Institute of Technology(佐治亚理工学院);Institute for AI Industry Research (AIR), Tsinghua University(清华大学人工智能国际研究院);Jiangsu Collaborative Innovation Center for Language Competence(江苏省语言能力协同创新中心);Stanford University(斯坦福大学)