CODESYNC: Synchronizing Large Language Models with Dynamic Code Evolution at Scale
Abstract
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.
Community
This paper introduces CODESYNC, a data engine for identifying outdated code patterns and collecting real-time API knowledge updates from Python third-party libraries.
The experimental code and dataset are publicly available at: this https URL.
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- CodeIF: Benchmarking the Instruction-Following Capabilities of Large Language Models for Code Generation (2025)
- RefineCoder: Iterative Improving of Large Language Models via Adaptive Critique Refinement for Code Generation (2025)
- SolEval: Benchmarking Large Language Models for Repository-level Solidity Code Generation (2025)
- ConvCodeWorld: Benchmarking Conversational Code Generation in Reproducible Feedback Environments (2025)
- SURGE: On the Potential of Large Language Models as General-Purpose Surrogate Code Executors (2025)
- Focused-DPO: Enhancing Code Generation Through Focused Preference Optimization on Error-Prone Points (2025)
- DeepRTL: Bridging Verilog Understanding and Generation with a Unified Representation Model (2025)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper