atlas

Research map / Large language models / Retrieval and knowledge

Chain of Agents: Large Language Models Collaborating on Long-Context Tasks

NeurIPS 2024 · Large language models › Retrieval and knowledge · approach: Long-context and personalized retrieval · 27 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Chain-of-Agents, a training-free framework where sequential worker LLMs pass summaries of short chunks along a chain and a manager LLM produces the final answer, handling long-context QA, summarization, and code completion.

Problem

LLMs struggle with long inputs: input reduction (truncation, RAG) can miss needed information, while window extension suffers from lost-in-the-middle and poor focus on relevant content.

Approach

Split long input into window-sized chunks processed sequentially by worker agents that pass natural-language communication units along a chain, with a separate manager agent synthesizing the final answer, giving each agent a short context while covering the full input.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use sequential communicating workers and a manager instead of RAG retrievaltext-bison · NarrativeQAF1: 14.20 -> 25.26Helped
use sequential communicating workers and a manager instead of RAG retrievaltext-bison · MuSiQueF1: 33.83 -> 37.09Helped
use sequential communicating workers and a manager instead of full-context inputtext-bison · GovReportgeometric mean ROUGE: 20.60 -> 26.11Helped
use CoA with an 8k window instead of Vanilla with a 200k windowclaude-3-haiku · NarrativeQA (Average)score: 7.17 -> 18.80Helped
remove the manager and have the last worker generate the final response (ablation)CoA · MuSiQueF1: 37.09 -> 26.79Hurt
remove the manager and have the last worker generate the final response (ablation)CoA · HotpotQAF1: 53.62 -> 48.58Hurt
read chunks right-to-left rather than left-to-right (ablation)CoA · MuSiQueF1: 37.09 -> 29.77Hurt
read chunks in random order rather than left-to-right (ablation)CoA · MuSiQueF1: 37.09 -> 34.55Hurt
read chunks in random order rather than left-to-right (ablation)CoA · HotpotQAF1: 53.62 -> 56.05Helped
add a second path reading right-to-left and use an LLM judge (ablation)CoA · QasperF1: 37.17 -> 39.23Helped
add a second path reading right-to-left and use majority voting (ablation)CoA · QMSumgeometric mean ROUGE: 16.77 -> 9.51Hurt
add five left-to-right paths and use majority voting (ablation)CoA · QuALITYexact match: 65.42 -> 68.60Helped

Surprising findings

Limitations

Experimental setup

Datasets: HotpotQA MuSiQue NarrativeQA Qasper QuALITY QMSum GovReport BookSum RepoBench-P

Benchmarks: HotpotQA MuSiQue NarrativeQA Qasper QuALITY QMSum GovReport BookSum RepoBench-P

Metrics: F1 exact match ROUGE (geometric mean) code similarity

Baselines: RAG Vanilla (Full-Context) Multi-Agent Voting (Merge) Hierarchical multi-agent Claude 3 long-context (200k)

Builds on: retrieval-augmented generation chain-of-thought position interpolation

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy