atlas

Research map / Large language models / Agents, code and math

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

ICML 2025 · Large language models › Agents, code and math · approach: Software engineering agents · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces CodeSync, a data engine that mines real API signature updates and GitHub invocations, and CodeSyncBench, a 3,300-case benchmark plus 2,200-sample update-aware training set, showing LLMs struggle to sync with API evolution even after DPO/ORPO/SimPO/SFT-LoRA.

Problem

LLMs trained on static data generate outdated third-party Python library API invocations after APIs change, producing non-executable or suboptimal code; there is no authentic real-world benchmark for updating LLMs to API changes.

Approach

Automatically track API signature changes across real library versions, retrieve real GitHub invocations via AST-based localization, and use DeepSeek-V3 to synthesize paired legacy/updated invocations, forming a benchmark and update-aware training data for knowledge-updating methods.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
apply knowledge updating methods instead of using the original modelOpen-source LLMs evaluated on CodeSyncBench · CodeSyncBench CCT and ECTBLEUHelped
fine-tune DeepSeek-Coder-6.7B-InstructDeepSeek-Coder-6.7B-Instruct · CodeSyncBench MCQP@1: 31.25 -> 7.88Hurt
combine SFT with RAGQwen2.5-Coder-7B-Instruct · CodeSyncBench CCTCodeBLEU: 31.17 -> 40.70Helped
combine SFT with RAGQwen2.5-Coder-7B-Instruct · CodeSyncBench ECTCodeBLEU: 36.00 -> 51.35Helped
increase training examples from 5 to 10 per APIQwen2.5-7B-Instruct · CodeSyncBench CCTAPI update recallHelped
increase training examples beyond 10 per APIQwen2.5-7B-Instruct · CodeSyncBench CCTperformanceNo clear effect
train on updated method APIs rather than function or initializer APIsQwen2.5-7B-Instruct using knowledge updating methods · CodeSyncBench CCTperformanceHurt
apply knowledge updating methodsDeepSeek-Coder-6.7B-Instruct · HumanEvalP@1: 72.56 -> 71.34; 72.56 -> 70.12; 72.56 -> 68.29Mixed

Surprising findings

Limitations

Experimental setup

Datasets: GitHub Code Search retrieved Python invocations DeepSeek-V3 synthesized legacy-updated invocation pairs HumanEval

Benchmarks: CodeSyncBench HumanEval

Metrics: BLEU ROUGE-L Relative Edit Distance CodeBLEU Pass@k

Baselines: SFT-LoRA DPO ORPO SimPO RAG GPT-4o Claude-3.5-Sonnet Gemini-1.5-Pro DeepSeek-V3 DeepSeek-R1

Builds on: DPO ORPO SimPO

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy