Model Editing for LLMs4Code: How Far are We?
Xiaopeng Li, Shangwen Wang, Shasha Li, Jun Ma, Jie Yu, Xiaodong Liu,, Jing Wang, Bin Ji, Weimin Zhang

TL;DR
This paper systematically evaluates state-of-the-art model editing techniques for Large Language Models for Code, introducing a new benchmark and proposing an improved method to enhance knowledge correction in code-related tasks.
Contribution
It introduces CLMEEval, a comprehensive benchmark for model editing in LLMs4Code, and provides a thorough comparison of six editing techniques across multiple models, including an enhanced version of GRACE.
Findings
GRACE achieves the best effectiveness and specificity.
Generalization remains a significant challenge.
A-GRACE improves semantic understanding through contrastive learning.
Abstract
Large Language Models for Code (LLMs4Code) have been found to exhibit outstanding performance in the software engineering domain, especially the remarkable performance in coding tasks. However, even the most advanced LLMs4Code can inevitably contain incorrect or outdated code knowledge. Due to the high cost of training LLMs4Code, it is impractical to re-train the models for fixing these problematic code knowledge. Model editing is a new technical field for effectively and efficiently correcting erroneous knowledge in LLMs, where various model editing techniques and benchmarks have been proposed recently. Despite that, a comprehensive study that thoroughly compares and analyzes the performance of the state-of-the-art model editing techniques for adapting the knowledge within LLMs4Code across various code-related tasks is notably absent. To bridge this gap, we perform the first systematic…
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.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsReal-time simulation and control systems · Model-Driven Software Engineering Techniques
MethodsContrastive Learning
