CODESYNC: Synchronizing Large Language Models with Dynamic Code Evolution at Scale
On the map: LLM alignment / RLHF / preference optimisation → Process reward models for reasoning
Abstract (arXiv)
Large Language Models (LLMs) have exhibited exceptional performance in software engineering yet face challenges in adapting to continually evolving code knowledge, particularly regarding the frequent updates of third-party library APIs. This limitation, stemming from static pre-training datasets, often results in non-executable code or implementations with suboptimal safety and efficiency. To this end, this paper introduces CODESYNC, a data engine for identifying outdated code patterns and collecting real-time code knowledge updates from Python third-party libraries. Building upon CODESYNC, we develop CODESYNCBENCH, a comprehensive benchmark for assessing LLMs' ability to stay synchronized with code evolution, which covers real-world updates for 220 APIs from six Python libraries. Our benchmark offers 3,300 test cases across three evaluation tasks and an update-aware instruction tuning dataset consisting of 2,200 training samples. Extensive experiments on 14 state-of-the-art LLMs reveal that they struggle with dynamic code evolution, even with the support of advanced knowledge updating methods (e.g., DPO, ORPO, and SimPO). We believe that our benchmark can offer a strong foundation for the development of more effective methods for real-time code knowledge updating in the future. The experimental code and dataset are publicly available at: https://github.com/Lucky-voyage/Code-Sync.
Key facts. Cited by 8 papers in the map (data through 13 Oct 2026). Placed in Process reward models for reasoning, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 57 of its 91 references that are in the map. First posted on arXiv 23 Feb 2025.
Builds on
57 of 91 references.
References · 57
- 2017Proximal Policy Optimization Algorithmscited by 14,592
- 2024The Llama 3 Herd of Modelscited by 14,486
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,221
- 2021Evaluating Large Language Models Trained on Codecited by 8,205
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,986
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,247
- 2022Locating and Editing Factual Associations in GPTcited by 2,650
- 2023Code Llama: Open Foundation Models for Codecited by 2,130
- 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,450
- 2024Qwen2.5-Coder Technical Reportcited by 1,179
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,173
- 2022Mass-Editing Memory in a Transformercited by 990
38 more
- 2024SimPO: Simple Preference Optimization with a Reference-Free Rewardcited by 954
- 2023StarCoder: may the source be with you!cited by 797
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 743
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 731
- 2023Instruction Tuning with GPT-4cited by 681
- 2024A Survey on Large Language Models for Code Generationcited by 656
- 2021Knowledge Neurons in Pretrained Transformerscited by 597
- 2024ORPO: Monolithic Preference Optimization without Reference Modelcited by 558
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 497
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 475
- 2024MLLM-as-a-Judge: Assessing Multimodal LLM-as-a-Judge with Vision-Language Benchmarkcited by 365
- 2024Justice or Prejudice? Quantifying Biases in LLM-as-a-Judgecited by 359
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 333
- 2024TrustLLM: Trustworthiness in Large Language Modelscited by 284
- 2022Aging with GRACE: Lifelong Model Editing with Discrete Key-Value Adaptorscited by 270
- 2018code2vec: Learning Distributed Representations of Codecited by 250
- 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 243
- 2017Learning to Represent Programs with Graphscited by 220
- 2021Generating Datasets with Pretrained Language Modelscited by 193
- 2018code2seq: Generating Sequences from Structured Representations of Codecited by 179
- 2023AugGPT: Leveraging ChatGPT for Text Data Augmentationcited by 128
- 2023Increasing Diversity While Maintaining Accuracy: Text Data Generation with Large Language Models and Human Interventionscited by 125
- 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 100
- 2016A Convolutional Attention Network for Extreme Summarization of Source Codecited by 91
- 2015Gated Feedback Recurrent Neural Networkscited by 54
- 2023Controlled Text Generation via Language Model Arithmeticcited by 51
- 2023Faithful Persona-based Conversational Dataset Generation with Large Language Modelscited by 47
- 2024Iterative Refinement of Project-Level Code Context for Precise Code Generation with Compiler Feedbackcited by 45
- 2023Exploring the Potential of ChatGPT in Automated Code Refinement: An Empirical Studycited by 44
- 2016Deep API Learningcited by 41
- 2019Multi-Modal Attention Network Learning for Semantic Source Code Retrievalcited by 41
- 2020Synthetic Data Augmentation for Zero-Shot Cross-Lingual Question Answeringcited by 41
- 2024Task Me Anythingcited by 29
- 2021How could Neural Networks understand Programs?cited by 26
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2024Interleaved Scene Graphs for Interleaved Text-and-Image Generation Assessmentcited by 21
- 2024AutoBench-V: Can Large Vision-Language Models Benchmark Themselves?cited by 20
- 2024CodeUpdateArena: Benchmarking Knowledge Editing on API Updatescited by 19
50 most cited of 57 All 57 (JSON)
Built on by
Citing papers per year: 2025: 2; 2026: 6.
8 papers.
- 2026Quantifying the Gap between Understanding and Generation within Unified Multimodal Modelscited by 11
- 2025Scrub It Out! Erasing Sensitive Memorization in Code Language Models via Machine Unlearningcited by 7
- 2026To See is Not to Master: Teaching LLMs to Use Private Libraries for Code Generationcited by 3
- 2026Environment-in-the-Loop: Rethinking Code Migration with LLM-based Agentscited by 2
- 2025Understanding Robustness of Model Editing in Code LLMscited by 1
- 2026KCoEvo: A Knowledge Graph Augmented Framework for Evolutionary Code Generationcited by 1
- 2026Diagnosing Knowledge Gaps in LLM Tool Use: An Agentic Benchmark for Novel API Acquisitioncited by 0
- 2026ORCA: Evaluating LLMs on Data Science Code Translationcited by 0
- 2026ORCA: Evaluating LLMs on Data Science Code Translation25 Sep 2026
- 2026Diagnosing Knowledge Gaps in LLM Tool Use: An Agentic Benchmark for Novel API Acquisition2 Jun 2026
- 2026To See is Not to Master: Teaching LLMs to Use Private Libraries for Code Generation16 Mar 2026
- 2026KCoEvo: A Knowledge Graph Augmented Framework for Evolutionary Code Generation8 Mar 2026
- 2026Environment-in-the-Loop: Rethinking Code Migration with LLM-based Agents10 Feb 2026
- 2026Quantifying the Gap between Understanding and Generation within Unified Multimodal Models2 Feb 2026
- 2025Understanding Robustness of Model Editing in Code LLMs5 Nov 2025
- 2025Scrub It Out! Erasing Sensitive Memorization in Code Language Models via Machine Unlearning17 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2026Code2LoRA: Hypernetwork-Generated Adapters for Code Language Models under Software Evolution
- 2026When LLMs Lag Behind: Knowledge Conflicts from Evolving APIs in Code Generation
- 2025RustEvo^2: An Evolving Benchmark for API Evolution in LLM-based Rust Code Generation
- 2026Multi-LCB: Extending LiveCodeBench to Multiple Programming Languages
- 2024EvoCodeBench: An Evolving Code Generation Benchmark Aligned with Real-World Code Repositories
- 2025GitChameleon 2.0: Evaluating AI Code Generation Against Python Library Version Incompatibilities
- 2026AdaptEval: A Benchmark for Evaluating Large Language Models on Code Snippet Adaptation
- 2025ReCode: Updating Code API Knowledge with Reinforcement Learning