Understanding Robustness of Model Editing in Code LLMs
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) for code are increasingly used in software development, but they remain static after pretraining while APIs and software libraries continue to evolve. Model editing offers a lightweight alternative to retraining for incorporating API updates, yet it remains unclear whether existing editing methods can induce correct API migration, generalize that behavior to unseen tasks, and preserve performance on tasks involving unmodified APIs. We present a controlled benchmark for evaluating model editing under API updates in code LLMs, built from HumanEval, MBPP, and APPS, with 2,040 problems spanning 140 unique synthetic API modifications, together with an execution sandbox that enforces edited APIs under standard Python semantics. We evaluate several state-of-the-art editing methods on three code LLMs under both single-edit and successive-edit regimes using execution-based metrics that distinguish successful API adoption from workaround-based task completion. Under single edits, edited models generalize poorly to unseen uses of the modified API, and many apparent successes are workaround-based rather than true API migrations. Performance on tasks involving unmodified APIs also degrades, although memory-based methods and fine-tuning preserve specificity better than locate-then-edit methods. Under successive edits, most method-model combinations collapse to near-zero Pass@k on both generalization and specificity, revealing substantial interference beyond the target edits. A two-factor Shapley decomposition further shows that single-edit failures on generalization include a substantial compilation component, whereas specificity failures are more often post-compilation. Under successive edits, failures become predominantly compilation-driven.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 25 of its 37 references that are in the map. First posted on arXiv 5 Nov 2025.
Builds on
25 of 37 references.
References · 25
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
- 2023Qwen Technical Reportcited by 3,344
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2022Mass-Editing Memory in a Transformercited by 1,001
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2022Aging with GRACE: Lifelong Model Editing with Discrete Key-Value Adaptorscited by 271
- 2023Does Localization Inform Editing? Surprising Differences in Causality-Based Localization vs. Knowledge Editing in Language Modelscited by 243
- 2020Modifying Memories in Transformer Modelscited by 224
13 more
- 2023PMET: Precise Model Editing in a Transformercited by 173
- 2023EasyEdit: An Easy-to-use Knowledge Editing Framework for Large Language Modelscited by 98
- 2024Model Editing at Scale leads to Gradual and Catastrophic Forgettingcited by 93
- 2023Massive Editing for Large Language Models via Meta Learningcited by 63
- 2024LLMs Meet Library Evolution: Evaluating Deprecated API Usage in LLM-based Code Completioncited by 32
- 2024CodeUpdateArena: Benchmarking Knowledge Editing on API Updatescited by 19
- 2024Model Editing for LLMs4Code: How Far are We?cited by 10
- 2025CODESYNC: Synchronizing Large Language Models with Dynamic Code Evolution at Scalecited by 8
- 2023Neuron Patching: Semantic-based Neuron-level Language Model Repair for Code Generationcited by 5
- 2025CREME: Robustness Enhancement of Code LLMs via Layer-Aware Model Editingcited by 5
- 2020Automatic Android Deprecated-API Usage Update by Learning from Single Updated Examplecited by 3
- 2020AndroEvolve: Automated Update for Android Deprecated-API Usagescited by 2
- 2024Automated Update of Android Deprecated API Usages with Large Language Modelscited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.