CODESYNC: Synchronizing Large Language Models with Dynamic Code Evolution at Scale

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Wang, Chenlong, Chu, Zhaoyang, Cheng, Zhengxiang, Yang, Xuyi, Qiu, Kaiyue, Wan, Yao, Zhao, Zhou, Shi, Xuanhua, Chen, Dongping
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866915349709979648
author Wang, Chenlong
Chu, Zhaoyang
Cheng, Zhengxiang
Yang, Xuyi
Qiu, Kaiyue
Wan, Yao
Zhao, Zhou
Shi, Xuanhua
Chen, Dongping
author_facet Wang, Chenlong
Chu, Zhaoyang
Cheng, Zhengxiang
Yang, Xuyi
Qiu, Kaiyue
Wan, Yao
Zhao, Zhou
Shi, Xuanhua
Chen, Dongping
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2502_16645
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle CODESYNC: Synchronizing Large Language Models with Dynamic Code Evolution at Scale
Wang, Chenlong
Chu, Zhaoyang
Cheng, Zhengxiang
Yang, Xuyi
Qiu, Kaiyue
Wan, Yao
Zhao, Zhou
Shi, Xuanhua
Chen, Dongping
Computation and Language
Artificial Intelligence
Software Engineering
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.
title CODESYNC: Synchronizing Large Language Models with Dynamic Code Evolution at Scale
topic Computation and Language
Artificial Intelligence
Software Engineering
url https://arxiv.org/abs/2502.16645