Research map / Multi-agent systems and games / LLM agents
PairCoder: Pair Programming-Inspired Two-Agent Collaboration for Code Generation
Junhao Chen, Xiang Li, Yibin Xu, Yuehan Cui, Fangsheng Weng, Hao Zhao, Fei Ma, Qi Tian
Tsinghua University · Peking University · Tongji University · BAAI · Guangdong Laboratory of Artificial Intelligence and Digital Economy
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
On benchmark leaderboards
- HumanEval pass@1 leaderboard pass@1 91 · rank 2 of 15 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Use PairCoder Driver/Navigator pairing instead of single-model inference | Llama-3-8B · HumanEval pass@1 | pass@1 (%): 62.2 -> 74.8 | Improved |
| Use PairCoder instead of single-model inference | GPT-3.5-turbo · HumanEval pass@1 | pass@1 (%): 69.5 -> 81.2 | Improved |
| Use PairCoder instead of single-model inference | GPT-4 · HumanEval pass@1 | pass@1 (%): 86.6 -> 91.0 | Improved |
| Use PairCoder rather than Reflexion | GPT-4 · HumanEval pass@1 | pass@1 (%): 91.0 vs 91.0 | No clear effect |
| Use PairCoder rather than AgentCoder | WizardCoder-34B · HumanEval pass@1 | pass@1 (%): 80.3 (AgentCoder) vs 78.8 | Hurt |
| Use PairCoder as generation module inside Self-Collaboration (ablation) | GPT-4 · HumanEval pass@1 | pass@1 (%): 90.2 -> 93.9 | Improved |
| Use PairCoder as generation module inside MetaGPT (ablation) | GPT-4 · HumanEval pass@1 | pass@1 (%): 88.9 -> 91.8 | Improved |
| Use PairCoder vs multi-agent baselines on token cost | GPT-3.5-turbo · HumanEval token cost | tokens per task: 1,382 -> 832 (vs Self-Collaboration) | Improved |
| Switch roles after two consecutive error detections (ablation) | PairCoder · HumanEval pass@1 | accuracy | Improved |
| Raise error-switch threshold to ten rounds (ablation) | PairCoder · HumanEval pass@1 | accuracy | Hurt |
| Pair heterogeneous LLMs (general dialogue Navigator, code-specialized Driver) | PairCoder · HumanEval pass@1 | pass@1 (%) | Mixed |
| Pair two instances of the same model | PairCoder · HumanEval pass@1 | pass@1 (%): e.g. 86.6 -> 91.03 (GPT-4) | Improved |
Later papers that compared with this method
2 later accepted papers report PairCoder as a baseline in their results tables; 1 of them report a better number on most of the results they share with it.
- MavenCoder: Competitive Code Generation via Model Adaptive Planning Strategies and Multi-Perspective Verification Enhancement (ACL 2026 · better on 3 of 3 shared results)
- Multi-Specialist LLM Relay System for Competitive Programming (EMNLP 2026 · better on 0 of 1 shared result)
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- Reflexion — Reflexion: language agents with verbal reinforcement learning (NeurIPS 2023) · better on 5 of 6 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in LLM multi-agent decision making
How can teams of LLM agents decide and coordinate better than one agent, at a cost and risk worth paying?
- Only small teams and cooperative or text-only settings. · 25 papers state it
- Multi-agent coordination costs many extra tokens. · 23 papers state it
- Topologies, roles and agent counts stay fixed. · 14 papers state it
Closest papers by meaning
- MAS²: Self-Generative, Self-Configuring, Self-Rectifying Multi-Agent Systems (ICLR 2026 · similarity 0.89)
- Generalizable End-to-End Tool-Use RL with Synthetic CodeGym (ICLR 2026 · similarity 0.89)
- Collab: Controlled Decoding using Mixture of Agents for LLM Alignment (ICLR 2025 · similarity 0.88)
- PACE: Two-Timescale Self-Evolution for Small Language Model Agents (NeurIPS 2026 · similarity 0.88)
- WorldCoder, a Model-Based LLM Agent: Building World Models by Writing Code and Interacting with the Environment (NeurIPS 2024 · similarity 0.88)
- Latent Collaboration in Multi-Agent Systems (ICML 2026 · similarity 0.88)
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.