KCoEvo: A Knowledge Graph Augmented Framework for Evolutionary Code Generation
Not on the map. Why?
Abstract (arXiv)
Code evolution is inevitable in modern software development. Changes to third-party APIs frequently break existing code and complicate maintenance, posing practical challenges for developers. While large language models (LLMs) have shown promise in code generation, they struggle to reason without a structured representation of these evolving relationships, often leading them to produce outdated APIs or invalid outputs. In this work, we propose a knowledge graph-augmented framework that decomposes the migration task into two synergistic stages: evolution path retrieval and path-informed code generation. Our approach constructs static and dynamic API graphs to model intra-version structures and cross-version transitions, enabling structured reasoning over API evolution. Both modules are trained with synthetic supervision automatically derived from real-world API diffs, ensuring scalability and minimal human effort. Extensive experiments across single-package and multi-package benchmarks demonstrate that our framework significantly improves migration accuracy, controllability, and execution success over standard LLM baselines. The source code and datasets are available at: https://github.com/kangjz1203/KCoEvo.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 19 of its 26 references that are in the map. First posted on arXiv 8 Mar 2026.
Builds on
19 of 26 references.
References · 19
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2024Qwen2.5 Technical Reportcited by 4,713
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
- 2024CodexGraph: Bridging Large Language Models and Code Repositories via Code Graph Databasescited by 62
- 2024LLMs Meet Library Evolution: Evaluating Deprecated API Usage in LLM-based Code Completioncited by 29
- 2020A Toolkit for Generating Code Knowledge Graphscited by 17
- 2024VersiCode: Towards Version-controllable Code Generationcited by 14
7 more
- 2024Towards LifeSpan Cognitive Systemscited by 13
- 2025ReCode: Updating Code API Knowledge with Reinforcement Learningcited by 11
- 2025QuCo-RAG: Quantifying Uncertainty from the Pre-training Corpus for Dynamic Retrieval-Augmented Generationcited by 10
- 2025RustEvo^2: An Evolving Benchmark for API Evolution in LLM-based Rust Code Generationcited by 9
- 2025CODESYNC: Synchronizing Large Language Models with Dynamic Code Evolution at Scalecited by 8
- 2025OneEval: Benchmarking LLM Knowledge-intensive Reasoning over Diverse Knowledge Basescited by 4
- 2026Environment-Aware Code Generation: How far are We?cited by 4
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026Ontology-Grounded Project Memory for Coding Agentscited by 0
- 2026Ontology-Grounded Project Memory for Coding Agents13 Aug 2026