atlas

Research map / Multi-agent systems and games / LLM agents

MetaGPT: Meta Programming for A Multi-Agent Collaborative Framework

ICLR 2024 · Multi-agent systems and games › LLM agents · approach: LLM multi-agent decision making · 153 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.

Introduces MetaGPT, a multi-agent LLM framework that encodes human software-company SOPs into role-specialized agents with structured outputs, a publish-subscribe message pool, and executable feedback, achieving SoTA on HumanEval and MBPP.

Problem

LLM-based multi-agent systems chaining LLMs in unconstrained natural language suffer from logic inconsistencies and cascading hallucinations on complex, multi-step software engineering tasks.

Approach

Encode Standardized Operating Procedures into role-specialized agents (Product Manager, Architect, Project Manager, Engineer, QA Engineer) that communicate via structured documents and diagrams over a shared message pool with subscriptions, plus runtime executable feedback for code self-correction.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add executable feedback (test-run-debug loop) (ablation)MetaGPT · HumanEvalPass@1: +4.2%Helped
add executable feedback (test-run-debug loop) (ablation)MetaGPT · MBPPPass@1: +5.4%Helped
add executable feedback (ablation)MetaGPT · SoftwareDevExecutability (1-4): 3.67 to 3.75Helped
add executable feedback (ablation)MetaGPT · SoftwareDevHuman revision cost: 2.25 to 0.83Helped
add executable feedback (ablation)MetaGPT · SoftwareDevRunning time (s): 503 to 541 sHurt
add more roles (Product, Architect, Project manager) beyond Engineer (ablation)MetaGPT role setup · SoftwareDev role ablationExecutability and human revisions: Executability 1.0 to 4.0; revisions 10 to 2.5Helped
use GPT-4 as MetaGPT backend instead of GPT-3.5 or Deepseek Coder 33B (ablation)MetaGPT · SoftwareDev (5 tasks)Executability (1-4): 3.8 (GPT-4) vs 2.8 (GPT-3.5) vs 1.4 (Deepseek)Helped
structured communication (documents/diagrams) instead of dialogueMetaGPT vs ChatDev · SoftwareDevExecutability (1-4): 3.75 vs 2.25Helped
detailed instead of high-level task prompts (ablation)MetaGPT · SoftwareDev (5 tasks)Executability (1-4): 4.0 vs 3.8; productivity 118.0 vs 163.8 (lower better); revisions 1.6 vs 1.2Mixed
regex parsing of GPT-4 output vs direct API call on HumanEval promptsGPT-4 baseline · HumanEvalPass@1: 0.724 (A) vs 0.812 (B)Mixed

Surprising findings

Limitations

Experimental setup

Datasets: HumanEval MBPP SoftwareDev

Benchmarks: HumanEval MBPP SoftwareDev

Metrics: Pass@1 executability score running time token usage lines of code human revision cost productivity (tokens per line)

Baselines: AlphaCode InCoder CodeGeeX CodeGen CodeX CodeT PaLM GPT-4 AutoGPT LangChain AgentVerse ChatDev

Builds on: ReAct Reflexion ChatDev

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