paper-with-me

홈 › Papers

KCoEvo: A Knowledge Graph Augmented Framework for Evolutionary Code Generation

2026-03-08 · Jiazhen Kang, Yuchen Lu, Chen Jiang, Jinrui Liu, Tianhao Zhang, Bo Jiang, Ningyuan Sun, Tongtong Wu, Guilin Qi 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.

📄 PDF Abstract BibTeX arXiv:2603.07581

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

Agentic-KGR: Co-evolutionary Knowledge Graph Construction through Multi-Agent Reinforcement Learning

2025-10-10 · Jing Li, Zhijie Sun, Zhicheng Zhou, Suming Qiu 외 arxiv

Current knowledge-enhanced large language models (LLMs) rely on static, pre-constructed knowledge bases that suffer from coverage gaps and temporal obsolescence, limiting their effectiveness in dynamic information enviro…

Multi-agent Reinforcement LearningKnowledge Graphs

Toward Personalizing Quantum Computing Education: An Evolutionary LLM-Powered Approach

2025-04-24 · Iizalaarab Elhaimeur, Nikos Chrisochoides

Quantum computing education faces significant challenges due to its complexity and the limitations of current tools; this paper introduces a novel Intelligent Teaching Assistant for quantum computing education and detail…

HallucinationLarge Language ModelTAG

Prism: An Evolutionary Memory Substrate for Multi-Agent Open-Ended Discovery

2026-04-08 · Suyash Mishra arxiv

We introduce \prism{} (\textbf{P}robabilistic \textbf{R}etrieval with \textbf{I}nformation-\textbf{S}tratified \textbf{M}emory), an evolutionary memory substrate for multi-agent AI systems engaged in open-ended discovery…

Information Retrieval

A Tool for the Procedural Generation of Shaders using Interactive Evolutionary Algorithms

2023-12-29 · Elio Sasso, Daniele Loiacono, Pier Luca Lanzi

We present a tool for exploring the design space of shaders using an interactive evolutionary algorithm integrated with the Unity editor, a well-known commercial tool for video game development. Our framework leverages t…

Evolutionary AlgorithmsUnity

Learning to Encode Evolutionary Knowledge for Automatic Commenting Long Novels

2020-04-21 · Canxiang Yan, Jianhao Yan, Yangyin Xu, Cheng Niu 외

Static knowledge graph has been incorporated extensively into sequence-to-sequence framework for text generation. While effectively representing structured context, static knowledge graph failed to represent knowledge ev…

Comment GenerationGraph-to-SequenceText Generation