mlsanityData to 7 Oct 2026

CodeUpdateArena: Benchmarking Knowledge Editing on API Updates

arXiv 2407.06249 ↗First posted 8 Jul 2024cs.CL cs.SEcited by 18

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

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  4. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  5. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  6. 2021Program Synthesis with Large Language Modelscited by 3,509
  7. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  8. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  9. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
  10. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  11. 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,548
  12. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
38 more
  1. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  2. 2022Mass-Editing Memory in a Transformercited by 976
  3. 2017Reading Wikipedia to Answer Open-Domain Questionscited by 777
  4. 2024DeepSeek LLM: Scaling Open-Source Language Models with Longtermismcited by 621
  5. 2021Editing Factual Knowledge in Language Modelscited by 548
  6. 2022Visual Programming: Compositional visual reasoning without trainingcited by 507
  7. 2021Fast Model Editing at Scalecited by 491
  8. 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
  9. 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
  10. 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
  11. 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
  12. 2023MQuAKE: Assessing Knowledge Editing in Language Models via Multi-Hop Questionscited by 292
  13. 2022Aging with GRACE: Lifelong Model Editing with Discrete Key-Value Adaptorscited by 267
  14. 2023Physics of Language Models: Part 3.1, Knowledge Storage and Extractioncited by 264
  15. 2024MiniCheck: Efficient Fact-Checking of LLMs on Grounding Documentscited by 251
  16. 2023Evaluating the Ripple Effects of Knowledge Editing in Language Modelscited by 238
  17. 2023Transformer-Patcher: One Mistake worth One Neuroncited by 196
  18. 2023MuSR: Testing the Limits of Chain-of-thought with Multistep Soft Reasoningcited by 195
  19. 2023Knowledge Editing for Large Language Models: A Surveycited by 189
  20. 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 181
  21. 2023PMET: Precise Model Editing in a Transformercited by 170
  22. 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 166
  23. 2022DocPrompting: Generating Code by Retrieving the Docscited by 151
  24. 2021SituatedQA: Incorporating Extra-Linguistic Contexts into QAcited by 145
  25. 2023Inspecting and Editing Knowledge Representations in Language Modelscited by 140
  26. 2022Repository-Level Prompt Generation for Large Language Models of Codecited by 106
  27. 2023SatLM: Satisfiability-Aided Language Models Using Declarative Promptingcited by 100
  28. 2023Can LMs Learn New Entities from Descriptions? Challenges in Propagating Injected Knowledgecited by 66
  29. 2023Tool Documentation Enables Zero-Shot Tool-Usage with Large Language Modelscited by 66
  30. 2024Instruction-tuned Language Models are Better Knowledge Learnerscited by 54
  31. 2023ToolCoder: Teach Code Generation Models to use API search toolscited by 37
  32. 2024INSTRUCTIR: A Benchmark for Instruction Following of Information Retrieval Modelscited by 32
  33. 2024Genie: Achieving Human Parity in Content-Grounded Datasets Generationcited by 31
  34. 2023Propagating Knowledge Updates to LMs Through Distillationcited by 28
  35. 2024Propagation and Pitfalls: Reasoning-based Assessment of Knowledge Editing through Counterfactual Taskscited by 24
  36. 2024Set the Clock: Temporal Alignment of Pretrained Language Modelscited by 24
  37. 2024CodeBenchGen: Creating Scalable Execution-based Code Generation Benchmarkscited by 23
  38. 2024Deductive Closure Training of Language Models for Coherence, Accuracy, and Updatabilitycited by 22

50 most cited of 55 All 55 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 3; 2025: 8; 2026: 7.

18 papers.

Sort:

By area:

  1. 2024Can Knowledge Editing Really Correct Hallucinations?cited by 28
  2. 2024Can Editing LLMs Inject Harm?cited by 22
  3. 2025ReCode: Updating Code API Knowledge with Reinforcement Learningcited by 11
  4. 2024Model Editing for LLMs4Code: How Far are We?cited by 8
  5. 2025CODESYNC: Synchronizing Large Language Models with Dynamic Code Evolution at Scalecited by 8
  6. 2025DI-BENCH: Benchmarking Large Language Models on Dependency Inference with Testable Repositories at Scalecited by 7
  7. 2026Tracking the Limits of Knowledge Propagation: How LLMs Fail at Multi-Step Reasoning with Conflicting Knowledgecited by 7
  8. 2026DeployBench: Benchmarking LLM Agents for Research Artifact Deploymentcited by 6
  9. 2025ScienceMeter: Tracking Scientific Knowledge Updates in Language Modelscited by 3
  10. 2025PropMEND: Hypernetworks for Knowledge Propagation in LLMscited by 2
  11. 2025GitChameleon 2.0: Evaluating AI Code Generation Against Python Library Version Incompatibilitiescited by 2
  12. 2025Understanding Robustness of Model Editing in Code LLMscited by 1
6 more
  1. 2026Correct Code, Vulnerable Dependencies: A Large Scale Measurement Study of LLM-Specified Library Versionscited by 1
  2. 2026Knowledge boundary probing and demand-guided intervention for LLM-based power system code generationcited by 1
  3. 2025ADS-Edit: A Multimodal Knowledge Editing Dataset for Autonomous Driving Systemscited by 0
  4. 2026Conflict-Resolving and Sharpness-Aware Minimization for Generalized Knowledge Editing with Multiple Updatescited by 0
  5. 2026Diagnosing Knowledge Gaps in LLM Tool Use: An Agentic Benchmark for Novel API Acquisitioncited by 0
  6. 2026LibEvoBench: Probing Temporal Knowledge Stratification in Code Generation Modelscited by 0