mlsanityData to 13 Oct 2026

A Pair Programming Framework for Code Generation via Multi-Plan Exploration and Feedback-Driven Refinement

arXiv 2409.05001 ↗First posted 8 Sep 2024cs.SE cs.AIcited by 21

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

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,205
  2. 2022Large Language Models are Zero-Shot Reasonerscited by 4,348
  3. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,156
  4. 2021Program Synthesis with Large Language Modelscited by 3,573
  5. 2019The Curious Case of Neural Text Degenerationcited by 2,893
  6. 2023Code Llama: Open Foundation Models for Codecited by 2,130
  7. 2022Competition-Level Code Generation with AlphaCodecited by 1,445
  8. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,362
  9. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,173
  10. 2023Large Language Models Cannot Self-Correct Reasoning Yetcited by 983
  11. 2023ChatDev: Communicative Agents for Software Developmentcited by 901
  12. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 731
21 more
  1. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 497
  2. 2022CodeT: Code Generation with Generated Testscited by 377
  3. 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 298
  4. 2023Self-collaboration Code Generation via ChatGPTcited by 257
  5. 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 235
  6. 2023Is Self-Repair a Silver Bullet for Code Generation?cited by 194
  7. 2022Multi-lingual Evaluation of Code Generation Modelscited by 159
  8. 2022Natural Language to Code Translation with Executioncited by 123
  9. 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 123
  10. 2023Self-Edit: Fault-Aware Code Editor for Code Generationcited by 111
  11. 2023Can Large Language Models Really Improve by Self-critiquing Their Own Plans?cited by 108
  12. 2024Code Generation with AlphaCodium: From Prompt Engineering to Flow Engineeringcited by 101
  13. 2023Studying the effect of AI Code Generators on Supporting Novice Learners in Introductory Programmingcited by 88
  14. 2023Batch Prompting: Efficient Inference with Large Language Model APIscited by 85
  15. 2022Coder Reviewer Reranking for Code Generationcited by 84
  16. 2023Large Language Models are Few-Shot Summarizers: Multi-Intent Comment Generation via In-Context Learningcited by 72
  17. 2024Exploring and Unleashing the Power of Large Language Models in Automated Code Translationcited by 57
  18. 2023ClarifyGPT: Empowering LLM-based Code Generation with Intention Clarificationcited by 37
  19. 2023CodeCoT: Tackling Code Syntax Errors in CoT Reasoning for Code Generationcited by 29
  20. 2023INTERVENOR: Prompting the Coding Ability of Large Language Models with the Interactive Chain of Repaircited by 18
  21. 2023From Misuse to Mastery: Enhancing Code Generation with Knowledge-Driven AI Chainingcited by 15

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2025: 9; 2026: 12.

21 papers.

Sort:

By area:

  1. 2025Agent READMEs: An Empirical Study of Context Files for Agentic Codingcited by 23
  2. 2025CoCoEvo: Co-Evolution of Programs and Test Cases to Enhance Code Generationcited by 14
  3. 2026LLM-Based Agentic Systems for Software Engineering: Challenges and Opportunitiescited by 7
  4. 2025OpsAgent: An Evolving Multi-agent System for Incident Management in Microservicescited by 5
  5. 2025Curiosity by Design: An LLM-based Coding Assistant Asking Clarification Questionscited by 4
  6. 2025Towards Engineering Multi-Agent LLMs: A Protocol-Driven Approachcited by 4
  7. 2025Understanding and Bridging the Planner-Coder Gap: A Systematic Study on the Robustness of Multi-Agent Systems for Code Generationcited by 3
  8. 2026Atomizer: An LLM-based Collaborative Multi-Agent Framework for Intent-Driven Commit Untanglingcited by 3
  9. 2025Effective LLM Code Refinement via Property-Oriented and Structurally Minimal Feedbackcited by 2
  10. 2026Agentic Framework for Epidemiological Modelingcited by 2
  11. 2026To Diff or Not to Diff? Structure-Aware and Adaptive Output Formats for Efficient LLM-based Code Editingcited by 2
  12. 2026CuBridge: An LLM-Based Framework for Understanding and Reconstructing High-Performance Attention Kernelscited by 2
9 more
  1. 2026PaT: Planning-after-Trial for Efficient Test-Time Code Generationcited by 2
  2. 2025Collaborative Agents for Automated Program Repair in Rubycited by 1
  3. 2026CAM: A Causality-based Analysis Framework for Multi-Agent Code Generation Systemscited by 1
  4. 2026Bridging the Knowledge Void: Inference-time Acquisition of Unfamiliar Programming Languages for Coding Taskscited by 1
  5. 2026Self-Improving Code Generation via Semantic Entropy and Behavioral Consensuscited by 1
  6. 2025Knowledge-Guided Multi-Agent Framework for Application-Level Software Code Generationcited by 0
  7. 2026From Helpful to Trustworthy: LLM Agents for Pair Programmingcited by 0
  8. 2026CollabCoder: Plan-Code Co-Evolution via Collaborative Decision-Making for Efficient Code Generationcited by 0
  9. 2026MARS: Multi-Specialist LLM Relay System for Competitive Programmingcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025Towards Advancing Code Generation with Large Language Models: A Research Roadmap
  2. 2025Enhancing LLM Code Generation: A Systematic Evaluation of Multi-Agent Collaboration and Runtime Debugging for Improved Accuracy, Reliability, and Latency
  3. 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solving
  4. 2024Planning-Driven Programming: A Large Language Model Programming Workflow
  5. 2025Guided Code Generation with LLMs: A Multi-Agent Framework for Complex Code Tasks
  6. 2025CodeVisionary: An Agent-based Framework for Evaluating Large Language Models in Code Generation
  7. 2025AdaCoder: An Adaptive Planning and Multi-Agent Framework for Function-Level Code Generation
  8. 2024Enhancing Code Generation Performance of Smaller Models by Distilling the Reasoning Ability of LLMs