CoEdPilot: Recommending Code Edits with Learned Prior Edit Relevance, Project-wise Awareness, and Interactive Nature
Chenyan Liu, Yufan Cai, Yun Lin, Yuhuan Huang, Yunrui Pei, Bo Jiang,, Ping Yang, Jin Song Dong, Hong Mei

TL;DR
CoEdPilot is an LLM-based tool that recommends code edits by understanding prior relevant edits, project context, and their interactive effects, improving code editing efficiency.
Contribution
It introduces a neural transformer-based approach that identifies relevant edits, explores their interactions, and estimates ripple effects across projects, advancing code editing automation.
Findings
Achieves 70.8%-85.3% accuracy in predicting edit locations
Attains 41.8% exact match rate in edit content prediction
Reaches a BLEU4 score of 60.7 in content generation
Abstract
Recent years have seen the development of LLM-based code generation. Compared to generating code in a software project, incremental code edits are empirically observed to be more frequent. The emerging code editing approaches usually formulate the problem as generating an edit based on known relevant prior edits and context. However, practical code edits can be more complicated. First, an editing session can include multiple (ir)relevant edits to the code under edit. Second, the inference of the subsequent edits is non-trivial as the scope of its ripple effect can be the whole project. In this work, we propose CoEdPilot, an LLM-driven solution to recommend code edits by discriminating the relevant edits, exploring their interactive natures, and estimating its ripple effect in the project. Specifically, CoEdPilot orchestrates multiple neural transformers to identify what and how to edit…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
