Lightweight Model Editing for LLMs to Correct Deprecated API Recommendations
Guancheng Lin, Xiao Yu, Jacky Keung, Xing Hu, Xin Xia, Alex X. Liu

TL;DR
This paper systematically evaluates lightweight model editing techniques to update deprecated API knowledge in large language models, introducing a new benchmark and proposing a method to improve editing specificity without retraining the entire model.
Contribution
It provides the first comprehensive study of model editing for deprecated APIs, introduces EDAPIBench benchmark, and proposes AdaLoRA-L to enhance editing specificity in LLMs.
Findings
AdaLoRA achieves the best overall performance in updating APIs.
AdaLoRA-L significantly improves specificity of edits.
Lightweight editing methods can effectively update API knowledge with targeted modifications.
Abstract
Pre-trained or fine-tuned on large code corpora, Large Language Models (LLMs) have demonstrated strong performance in code completion tasks. However, their embedded knowledge is constrained by the timeliness of training data, which often includes code using deprecated APIs. Consequently, LLMs frequently generate deprecated APIs that will no longer be supported in future versions of third-party libraries. While retraining LLMs on updated codebases could refresh their API knowledge, this approach is computationally expensive. Recently, lightweight model editing methods have emerged to efficiently correct specific knowledge in LLMs. However, it remains unclear whether these methods can effectively update deprecated API knowledge and enable edited models to generate up-to-date APIs. To address this gap, we conduct the first systematic study applying 10 state-of-the-art model editing…
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.
Taxonomy
TopicsSoftware Engineering Research · Natural Language Processing Techniques · Topic Modeling
