paper-with-me

홈 › Papers

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

2024-09-08 · huan zhang, Wei Cheng, Yuhan Wu, Wei Hu

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.

📄 PDF Abstract BibTeX arXiv:2409.05001

Code (1)

nju-websoft/paircoder 공식 구현

Tasks

Code Generation

Similar Papers 제목 키워드 기반

The Vault: A Comprehensive Multilingual Dataset for Advancing Code Understanding and Generation

2023-05-09 · Dung Nguyen Manh, Nam Le Hai, Anh T. V. Dau, Anh Minh Nguyen 외

We present The Vault, a dataset of high-quality code-text pairs in multiple programming languages for training large language models to understand and generate code. We present methods for thoroughly extracting samples t…

Code GenerationCode SearchCode Summarization

Is AI the better programming partner? Human-Human Pair Programming vs. Human-AI pAIr Programming

2023-06-08 · Qianou Ma, Tongshuang Wu, Kenneth Koedinger

The emergence of large-language models (LLMs) that excel at code generation and commercial products such as GitHub's Copilot has sparked interest in human-AI pair programming (referred to as "pAIr programming") where an …

Code Generation

PairCoder++: Pair Programming as a Universal Paradigm for Verified Code-Driven Multimodal and Structured-Artifact Generation

2026-07-02 · Junhao Chen, Xiang Li, Mingjin Chen, Boran Zhang 외 arxiv

Code is the medium through which large language models generate structured artifacts: charts, scientific figures, vector graphics, CAD models, 3D scenes, and hardware designs are all produced by writing programs. In this…

Peer-aided Repairer: Empowering Large Language Models to Repair Advanced Student Assignments

2024-04-02 · Qianhui Zhao, Fang Liu, Li Zhang, Yang Liu 외

Automated generation of feedback on programming assignments holds significant benefits for programming education, especially when it comes to advanced assignments. Automated Program Repair techniques, especially Large La…

Language ModellingLarge Language ModelProgram Repair

Incorporating External Knowledge through Pre-training for Natural Language to Code Generation

2020-04-20 · ACL 2020 6 · Frank F. Xu, Zhengbao Jiang, Pengcheng Yin, Bogdan Vasilescu 외

Open-domain code generation aims to generate code in a general-purpose programming language (such as Python) from natural language (NL) intents. Motivated by the intuition that developers usually retrieve resources on th…

Code GenerationData AugmentationRetrieval