A Pair Programming Framework for Code Generation via Multi-Plan Exploration and Feedback-Driven Refinement
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have achieved impressive performance on code generation. Although prior studies enhanced LLMs with prompting techniques and code refinement, they still struggle with complex programming problems due to rigid solution plans. In this paper, we draw on pair programming practices to propose PairCoder, a novel LLM-based framework for code generation. PairCoder incorporates two collaborative LLM agents, namely a Navigator agent for high-level planning and a Driver agent for specific implementation. The Navigator is responsible for proposing promising solution plans, selecting the current optimal plan, and directing the next iteration round based on execution feedback. The Driver follows the guidance of Navigator to undertake initial code generation, code testing, and refinement. This interleaved and iterative workflow involves multi-plan exploration and feedback-based refinement, which mimics the collaboration of pair programmers. We evaluate PairCoder with both open-source and closed-source LLMs on various code generation benchmarks. Extensive experimental results demonstrate the superior accuracy of PairCoder, achieving relative pass@1 improvements of 12.00%-162.43% compared to prompting LLMs directly.
Key facts. Cited by 21 papers in the map (data through 13 Oct 2026). Builds on 33 of its 52 references that are in the map. First posted on arXiv 8 Sep 2024.
Builds on
33 of 52 references.
References · 33
- 2021Evaluating Large Language Models Trained on Codecited by 8,205
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,348
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,156
- 2021Program Synthesis with Large Language Modelscited by 3,573
- 2019The Curious Case of Neural Text Degenerationcited by 2,893
- 2023Code Llama: Open Foundation Models for Codecited by 2,130
- 2022Competition-Level Code Generation with AlphaCodecited by 1,445
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,362
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,173
- 2023Large Language Models Cannot Self-Correct Reasoning Yetcited by 983
- 2023ChatDev: Communicative Agents for Software Developmentcited by 901
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 731
21 more
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 497
- 2022CodeT: Code Generation with Generated Testscited by 377
- 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 298
- 2023Self-collaboration Code Generation via ChatGPTcited by 257
- 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 235
- 2023Is Self-Repair a Silver Bullet for Code Generation?cited by 194
- 2022Multi-lingual Evaluation of Code Generation Modelscited by 159
- 2022Natural Language to Code Translation with Executioncited by 123
- 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 123
- 2023Self-Edit: Fault-Aware Code Editor for Code Generationcited by 111
- 2023Can Large Language Models Really Improve by Self-critiquing Their Own Plans?cited by 108
- 2024Code Generation with AlphaCodium: From Prompt Engineering to Flow Engineeringcited by 101
- 2023Studying the effect of AI Code Generators on Supporting Novice Learners in Introductory Programmingcited by 88
- 2023Batch Prompting: Efficient Inference with Large Language Model APIscited by 85
- 2022Coder Reviewer Reranking for Code Generationcited by 84
- 2023Large Language Models are Few-Shot Summarizers: Multi-Intent Comment Generation via In-Context Learningcited by 72
- 2024Exploring and Unleashing the Power of Large Language Models in Automated Code Translationcited by 57
- 2023ClarifyGPT: Empowering LLM-based Code Generation with Intention Clarificationcited by 37
- 2023CodeCoT: Tackling Code Syntax Errors in CoT Reasoning for Code Generationcited by 29
- 2023INTERVENOR: Prompting the Coding Ability of Large Language Models with the Interactive Chain of Repaircited by 18
- 2023From Misuse to Mastery: Enhancing Code Generation with Knowledge-Driven AI Chainingcited by 15
Built on by
Citing papers per year: 2025: 9; 2026: 12.
21 papers.
Sort:
By area:
- 2025Agent READMEs: An Empirical Study of Context Files for Agentic Codingcited by 23
- 2025CoCoEvo: Co-Evolution of Programs and Test Cases to Enhance Code Generationcited by 14
- 2026LLM-Based Agentic Systems for Software Engineering: Challenges and Opportunitiescited by 7
- 2025OpsAgent: An Evolving Multi-agent System for Incident Management in Microservicescited by 5
- 2025Curiosity by Design: An LLM-based Coding Assistant Asking Clarification Questionscited by 4
- 2025Towards Engineering Multi-Agent LLMs: A Protocol-Driven Approachcited by 4
- 2025Understanding and Bridging the Planner-Coder Gap: A Systematic Study on the Robustness of Multi-Agent Systems for Code Generationcited by 3
- 2026Atomizer: An LLM-based Collaborative Multi-Agent Framework for Intent-Driven Commit Untanglingcited by 3
- 2025Effective LLM Code Refinement via Property-Oriented and Structurally Minimal Feedbackcited by 2
- 2026Agentic Framework for Epidemiological Modelingcited by 2
- 2026To Diff or Not to Diff? Structure-Aware and Adaptive Output Formats for Efficient LLM-based Code Editingcited by 2
- 2026CuBridge: An LLM-Based Framework for Understanding and Reconstructing High-Performance Attention Kernelscited by 2
9 more
- 2026PaT: Planning-after-Trial for Efficient Test-Time Code Generationcited by 2
- 2025Collaborative Agents for Automated Program Repair in Rubycited by 1
- 2026CAM: A Causality-based Analysis Framework for Multi-Agent Code Generation Systemscited by 1
- 2026Bridging the Knowledge Void: Inference-time Acquisition of Unfamiliar Programming Languages for Coding Taskscited by 1
- 2026Self-Improving Code Generation via Semantic Entropy and Behavioral Consensuscited by 1
- 2025Knowledge-Guided Multi-Agent Framework for Application-Level Software Code Generationcited by 0
- 2026From Helpful to Trustworthy: LLM Agents for Pair Programmingcited by 0
- 2026CollabCoder: Plan-Code Co-Evolution via Collaborative Decision-Making for Efficient Code Generationcited by 0
- 2026MARS: Multi-Specialist LLM Relay System for Competitive Programmingcited by 0
- 2026MARS: Multi-Specialist LLM Relay System for Competitive Programming24 Aug 2026
- 2026PaT: Planning-after-Trial for Efficient Test-Time Code Generation8 May 2026
- 2026CuBridge: An LLM-Based Framework for Understanding and Reconstructing High-Performance Attention Kernels6 May 2026
- 2026To Diff or Not to Diff? Structure-Aware and Adaptive Output Formats for Efficient LLM-based Code Editing30 Apr 2026
- 2026CollabCoder: Plan-Code Co-Evolution via Collaborative Decision-Making for Efficient Code Generation15 Apr 2026
- 2026From Helpful to Trustworthy: LLM Agents for Pair Programming11 Apr 2026
- 2026Self-Improving Code Generation via Semantic Entropy and Behavioral Consensus31 Mar 2026
- 2026CAM: A Causality-based Analysis Framework for Multi-Agent Code Generation Systems2 Feb 2026
- 2026Agentic Framework for Epidemiological Modeling30 Jan 2026
- 2026Bridging the Knowledge Void: Inference-time Acquisition of Unfamiliar Programming Languages for Coding Tasks16 Jan 2026
- 2026LLM-Based Agentic Systems for Software Engineering: Challenges and Opportunities14 Jan 2026
- 2026Atomizer: An LLM-based Collaborative Multi-Agent Framework for Intent-Driven Commit Untangling3 Jan 2026
9 more
- 2025Agent READMEs: An Empirical Study of Context Files for Agentic Coding17 Nov 2025
- 2025Collaborative Agents for Automated Program Repair in Ruby6 Nov 2025
- 2025OpsAgent: An Evolving Multi-agent System for Incident Management in Microservices28 Oct 2025
- 2025Knowledge-Guided Multi-Agent Framework for Application-Level Software Code Generation22 Oct 2025
- 2025Towards Engineering Multi-Agent LLMs: A Protocol-Driven Approach14 Oct 2025
- 2025Understanding and Bridging the Planner-Coder Gap: A Systematic Study on the Robustness of Multi-Agent Systems for Code Generation12 Oct 2025
- 2025Curiosity by Design: An LLM-based Coding Assistant Asking Clarification Questions28 Jul 2025
- 2025Effective LLM Code Refinement via Property-Oriented and Structurally Minimal Feedback23 Jun 2025
- 2025CoCoEvo: Co-Evolution of Programs and Test Cases to Enhance Code Generation15 Feb 2025
- 2025Agent READMEs: An Empirical Study of Context Files for Agentic Codingcited by 23
- 2026LLM-Based Agentic Systems for Software Engineering: Challenges and Opportunitiescited by 7
- 2025Towards Engineering Multi-Agent LLMs: A Protocol-Driven Approachcited by 4
- 2025Understanding and Bridging the Planner-Coder Gap: A Systematic Study on the Robustness of Multi-Agent Systems for Code Generationcited by 3
- 2026Atomizer: An LLM-based Collaborative Multi-Agent Framework for Intent-Driven Commit Untanglingcited by 3
- 2026Agentic Framework for Epidemiological Modelingcited by 2
- 2025Collaborative Agents for Automated Program Repair in Rubycited by 1
- 2026CAM: A Causality-based Analysis Framework for Multi-Agent Code Generation Systemscited by 1
- 2025Knowledge-Guided Multi-Agent Framework for Application-Level Software Code Generationcited by 0
- 2026From Helpful to Trustworthy: LLM Agents for Pair Programmingcited by 0
- 2026From Helpful to Trustworthy: LLM Agents for Pair Programming11 Apr 2026
- 2026CAM: A Causality-based Analysis Framework for Multi-Agent Code Generation Systems2 Feb 2026
- 2026Agentic Framework for Epidemiological Modeling30 Jan 2026
- 2026LLM-Based Agentic Systems for Software Engineering: Challenges and Opportunities14 Jan 2026
- 2026Atomizer: An LLM-based Collaborative Multi-Agent Framework for Intent-Driven Commit Untangling3 Jan 2026
- 2025Agent READMEs: An Empirical Study of Context Files for Agentic Coding17 Nov 2025
- 2025Collaborative Agents for Automated Program Repair in Ruby6 Nov 2025
- 2025Knowledge-Guided Multi-Agent Framework for Application-Level Software Code Generation22 Oct 2025
- 2025Towards Engineering Multi-Agent LLMs: A Protocol-Driven Approach14 Oct 2025
- 2025Understanding and Bridging the Planner-Coder Gap: A Systematic Study on the Robustness of Multi-Agent Systems for Code Generation12 Oct 2025
- 2025CoCoEvo: Co-Evolution of Programs and Test Cases to Enhance Code Generationcited by 14
- 2025OpsAgent: An Evolving Multi-agent System for Incident Management in Microservicescited by 5
- 2025Curiosity by Design: An LLM-based Coding Assistant Asking Clarification Questionscited by 4
- 2025Effective LLM Code Refinement via Property-Oriented and Structurally Minimal Feedbackcited by 2
- 2026To Diff or Not to Diff? Structure-Aware and Adaptive Output Formats for Efficient LLM-based Code Editingcited by 2
- 2026CuBridge: An LLM-Based Framework for Understanding and Reconstructing High-Performance Attention Kernelscited by 2
- 2026Bridging the Knowledge Void: Inference-time Acquisition of Unfamiliar Programming Languages for Coding Taskscited by 1
- 2026CollabCoder: Plan-Code Co-Evolution via Collaborative Decision-Making for Efficient Code Generationcited by 0
- 2026MARS: Multi-Specialist LLM Relay System for Competitive Programmingcited by 0
- 2026MARS: Multi-Specialist LLM Relay System for Competitive Programming24 Aug 2026
- 2026CuBridge: An LLM-Based Framework for Understanding and Reconstructing High-Performance Attention Kernels6 May 2026
- 2026To Diff or Not to Diff? Structure-Aware and Adaptive Output Formats for Efficient LLM-based Code Editing30 Apr 2026
- 2026CollabCoder: Plan-Code Co-Evolution via Collaborative Decision-Making for Efficient Code Generation15 Apr 2026
- 2026Bridging the Knowledge Void: Inference-time Acquisition of Unfamiliar Programming Languages for Coding Tasks16 Jan 2026
- 2025OpsAgent: An Evolving Multi-agent System for Incident Management in Microservices28 Oct 2025
- 2025Curiosity by Design: An LLM-based Coding Assistant Asking Clarification Questions28 Jul 2025
- 2025Effective LLM Code Refinement via Property-Oriented and Structurally Minimal Feedback23 Jun 2025
- 2025CoCoEvo: Co-Evolution of Programs and Test Cases to Enhance Code Generation15 Feb 2025
Similar, not cited
Close in wording, no citation either way
- 2025Towards Advancing Code Generation with Large Language Models: A Research Roadmap
- 2025Enhancing LLM Code Generation: A Systematic Evaluation of Multi-Agent Collaboration and Runtime Debugging for Improved Accuracy, Reliability, and Latency
- 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solving
- 2024Planning-Driven Programming: A Large Language Model Programming Workflow
- 2025Guided Code Generation with LLMs: A Multi-Agent Framework for Complex Code Tasks
- 2025CodeVisionary: An Agent-based Framework for Evaluating Large Language Models in Code Generation
- 2025AdaCoder: An Adaptive Planning and Multi-Agent Framework for Function-Level Code Generation
- 2024Enhancing Code Generation Performance of Smaller Models by Distilling the Reasoning Ability of LLMs