CodeUpdateArena: Benchmarking Knowledge Editing on API Updates
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) are increasingly being used to synthesize and reason about source code. However, the static nature of these models' knowledge does not reflect the fact that libraries and API functions they invoke are continuously evolving, with functionality being added or changing. While numerous benchmarks evaluate how LLMs can generate code, no prior work has studied how an LLMs' knowledge about code API functions can be updated. To fill this gap, we present CodeUpdateArena, a benchmark for knowledge editing in the code domain. An instance in our benchmark consists of a synthetic API function update paired with a program synthesis example that uses the updated functionality; our goal is to update an LLM to be able to solve this program synthesis example without providing documentation of the update at inference time. Compared to knowledge editing for facts encoded in text, success here is more challenging: a code LLM must correctly reason about the semantics of the modified function rather than just reproduce its syntax. Our dataset is constructed by first prompting GPT-4 to generate atomic and executable function updates. Then, for each update, we generate program synthesis examples whose code solutions are prone to use the update. Our benchmark covers updates of various types to 54 functions from seven diverse Python packages, with a total of 670 program synthesis examples. Our experiments show that prepending documentation of the update to open-source code LLMs (i.e., DeepSeek, CodeLlama) does not allow them to incorporate changes for problem solving, and existing knowledge editing techniques also have substantial room for improvement. We hope our benchmark will inspire new methods for knowledge updating in code LLMs.
Key facts. Cited by 18 papers in the map (data through 7 Oct 2026). Builds on 55 of its 59 references that are in the map. First posted on arXiv 8 Jul 2024.
Builds on
55 of 59 references.
References · 55
- 2023GPT-4 Technical Reportcited by 18,132
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,548
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
38 more
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2022Mass-Editing Memory in a Transformercited by 976
- 2017Reading Wikipedia to Answer Open-Domain Questionscited by 777
- 2024DeepSeek LLM: Scaling Open-Source Language Models with Longtermismcited by 621
- 2021Editing Factual Knowledge in Language Modelscited by 548
- 2022Visual Programming: Compositional visual reasoning without trainingcited by 507
- 2021Fast Model Editing at Scalecited by 491
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
- 2023MQuAKE: Assessing Knowledge Editing in Language Models via Multi-Hop Questionscited by 292
- 2022Aging with GRACE: Lifelong Model Editing with Discrete Key-Value Adaptorscited by 267
- 2023Physics of Language Models: Part 3.1, Knowledge Storage and Extractioncited by 264
- 2024MiniCheck: Efficient Fact-Checking of LLMs on Grounding Documentscited by 251
- 2023Evaluating the Ripple Effects of Knowledge Editing in Language Modelscited by 238
- 2023Transformer-Patcher: One Mistake worth One Neuroncited by 196
- 2023MuSR: Testing the Limits of Chain-of-thought with Multistep Soft Reasoningcited by 195
- 2023Knowledge Editing for Large Language Models: A Surveycited by 189
- 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 181
- 2023PMET: Precise Model Editing in a Transformercited by 170
- 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 166
- 2022DocPrompting: Generating Code by Retrieving the Docscited by 151
- 2021SituatedQA: Incorporating Extra-Linguistic Contexts into QAcited by 145
- 2023Inspecting and Editing Knowledge Representations in Language Modelscited by 140
- 2022Repository-Level Prompt Generation for Large Language Models of Codecited by 106
- 2023SatLM: Satisfiability-Aided Language Models Using Declarative Promptingcited by 100
- 2023Can LMs Learn New Entities from Descriptions? Challenges in Propagating Injected Knowledgecited by 66
- 2023Tool Documentation Enables Zero-Shot Tool-Usage with Large Language Modelscited by 66
- 2024Instruction-tuned Language Models are Better Knowledge Learnerscited by 54
- 2023ToolCoder: Teach Code Generation Models to use API search toolscited by 37
- 2024INSTRUCTIR: A Benchmark for Instruction Following of Information Retrieval Modelscited by 32
- 2024Genie: Achieving Human Parity in Content-Grounded Datasets Generationcited by 31
- 2023Propagating Knowledge Updates to LMs Through Distillationcited by 28
- 2024Propagation and Pitfalls: Reasoning-based Assessment of Knowledge Editing through Counterfactual Taskscited by 24
- 2024Set the Clock: Temporal Alignment of Pretrained Language Modelscited by 24
- 2024CodeBenchGen: Creating Scalable Execution-based Code Generation Benchmarkscited by 23
- 2024Deductive Closure Training of Language Models for Coherence, Accuracy, and Updatabilitycited by 22
50 most cited of 55 All 55 (JSON)
Built on by
Citing papers per year: 2024: 3; 2025: 8; 2026: 7.
18 papers.
Sort:
By area:
- 2024Can Knowledge Editing Really Correct Hallucinations?cited by 28
- 2024Can Editing LLMs Inject Harm?cited by 22
- 2025ReCode: Updating Code API Knowledge with Reinforcement Learningcited by 11
- 2024Model Editing for LLMs4Code: How Far are We?cited by 8
- 2025CODESYNC: Synchronizing Large Language Models with Dynamic Code Evolution at Scalecited by 8
- 2025DI-BENCH: Benchmarking Large Language Models on Dependency Inference with Testable Repositories at Scalecited by 7
- 2026Tracking the Limits of Knowledge Propagation: How LLMs Fail at Multi-Step Reasoning with Conflicting Knowledgecited by 7
- 2026DeployBench: Benchmarking LLM Agents for Research Artifact Deploymentcited by 6
- 2025ScienceMeter: Tracking Scientific Knowledge Updates in Language Modelscited by 3
- 2025PropMEND: Hypernetworks for Knowledge Propagation in LLMscited by 2
- 2025GitChameleon 2.0: Evaluating AI Code Generation Against Python Library Version Incompatibilitiescited by 2
- 2025Understanding Robustness of Model Editing in Code LLMscited by 1
6 more
- 2026Correct Code, Vulnerable Dependencies: A Large Scale Measurement Study of LLM-Specified Library Versionscited by 1
- 2026Knowledge boundary probing and demand-guided intervention for LLM-based power system code generationcited by 1
- 2025ADS-Edit: A Multimodal Knowledge Editing Dataset for Autonomous Driving Systemscited by 0
- 2026Conflict-Resolving and Sharpness-Aware Minimization for Generalized Knowledge Editing with Multiple Updatescited by 0
- 2026Diagnosing Knowledge Gaps in LLM Tool Use: An Agentic Benchmark for Novel API Acquisitioncited by 0
- 2026LibEvoBench: Probing Temporal Knowledge Stratification in Code Generation Modelscited by 0
- 2026LibEvoBench: Probing Temporal Knowledge Stratification in Code Generation Models24 Jun 2026
- 2026DeployBench: Benchmarking LLM Agents for Research Artifact Deployment3 Jun 2026
- 2026Diagnosing Knowledge Gaps in LLM Tool Use: An Agentic Benchmark for Novel API Acquisition2 Jun 2026
- 2026Knowledge boundary probing and demand-guided intervention for LLM-based power system code generation29 May 2026
- 2026Correct Code, Vulnerable Dependencies: A Large Scale Measurement Study of LLM-Specified Library Versions7 May 2026
- 2026Conflict-Resolving and Sharpness-Aware Minimization for Generalized Knowledge Editing with Multiple Updates3 Feb 2026
- 2026Tracking the Limits of Knowledge Propagation: How LLMs Fail at Multi-Step Reasoning with Conflicting Knowledge21 Jan 2026
- 2025Understanding Robustness of Model Editing in Code LLMs5 Nov 2025
- 2025GitChameleon 2.0: Evaluating AI Code Generation Against Python Library Version Incompatibilities16 Jul 2025
- 2025ReCode: Updating Code API Knowledge with Reinforcement Learning25 Jun 2025
- 2025PropMEND: Hypernetworks for Knowledge Propagation in LLMs10 Jun 2025
- 2025ScienceMeter: Tracking Scientific Knowledge Updates in Language Models30 May 2025
6 more
- 2025ADS-Edit: A Multimodal Knowledge Editing Dataset for Autonomous Driving Systems26 Mar 2025
- 2025CODESYNC: Synchronizing Large Language Models with Dynamic Code Evolution at Scale23 Feb 2025
- 2025DI-BENCH: Benchmarking Large Language Models on Dependency Inference with Testable Repositories at Scale23 Jan 2025
- 2024Model Editing for LLMs4Code: How Far are We?11 Nov 2024
- 2024Can Knowledge Editing Really Correct Hallucinations?21 Oct 2024
- 2024Can Editing LLMs Inject Harm?29 Jul 2024
- 2024Can Editing LLMs Inject Harm?cited by 22
- 2024Can Editing LLMs Inject Harm?29 Jul 2024
- 2024Can Knowledge Editing Really Correct Hallucinations?cited by 28
- 2025ReCode: Updating Code API Knowledge with Reinforcement Learningcited by 11
- 2024Model Editing for LLMs4Code: How Far are We?cited by 8
- 2025DI-BENCH: Benchmarking Large Language Models on Dependency Inference with Testable Repositories at Scalecited by 7
- 2025ScienceMeter: Tracking Scientific Knowledge Updates in Language Modelscited by 3
- 2025PropMEND: Hypernetworks for Knowledge Propagation in LLMscited by 2
- 2025GitChameleon 2.0: Evaluating AI Code Generation Against Python Library Version Incompatibilitiescited by 2
- 2025Understanding Robustness of Model Editing in Code LLMscited by 1
- 2026Correct Code, Vulnerable Dependencies: A Large Scale Measurement Study of LLM-Specified Library Versionscited by 1
- 2026Knowledge boundary probing and demand-guided intervention for LLM-based power system code generationcited by 1
- 2026Conflict-Resolving and Sharpness-Aware Minimization for Generalized Knowledge Editing with Multiple Updatescited by 0
- 2026LibEvoBench: Probing Temporal Knowledge Stratification in Code Generation Modelscited by 0
- 2026LibEvoBench: Probing Temporal Knowledge Stratification in Code Generation Models24 Jun 2026
- 2026Knowledge boundary probing and demand-guided intervention for LLM-based power system code generation29 May 2026
- 2026Correct Code, Vulnerable Dependencies: A Large Scale Measurement Study of LLM-Specified Library Versions7 May 2026
- 2026Conflict-Resolving and Sharpness-Aware Minimization for Generalized Knowledge Editing with Multiple Updates3 Feb 2026
- 2025Understanding Robustness of Model Editing in Code LLMs5 Nov 2025
- 2025GitChameleon 2.0: Evaluating AI Code Generation Against Python Library Version Incompatibilities16 Jul 2025
- 2025ReCode: Updating Code API Knowledge with Reinforcement Learning25 Jun 2025
- 2025PropMEND: Hypernetworks for Knowledge Propagation in LLMs10 Jun 2025
- 2025ScienceMeter: Tracking Scientific Knowledge Updates in Language Models30 May 2025
- 2025DI-BENCH: Benchmarking Large Language Models on Dependency Inference with Testable Repositories at Scale23 Jan 2025
- 2024Model Editing for LLMs4Code: How Far are We?11 Nov 2024
- 2024Can Knowledge Editing Really Correct Hallucinations?21 Oct 2024