paper-with-me

Papers

Knowledge Graph Based Repository-Level Code Generation

2025-05-20 · Mihir Athale, Vishal Vaddina

Recent advancements in Large Language Models (LLMs) have transformed code generation from natural language queries. However, despite their extensive knowledge and ability to produce high-quality code, LLMs often struggle with contextual accuracy, particularly in evolving codebases. Current code search and retrieval methods frequently lack robustness in both the quality and contextual relevance of retrieved results, leading to suboptimal code generation. This paper introduces a novel knowledge graph-based approach to improve code search and retrieval leading to better quality of code generation in the context of repository-level tasks. The proposed approach represents code repositories as graphs, capturing structural and relational information for enhanced context-aware code generation. Our framework employs a hybrid approach for code retrieval to improve contextual relevance, track inter-file modular dependencies, generate more robust code and ensure consistency with the existing codebase. We benchmark the proposed approach on the Evolutionary Code Benchmark (EvoCodeBench) dataset, a repository-level code generation benchmark, and demonstrate that our method significantly outperforms the baseline approach. These findings suggest that knowledge graph based code generation could advance robust, context-sensitive coding assistance tools.

📄 PDF Abstract BibTeX arXiv:2505.14394

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationCode SearchNatural Language QueriesRetrieval

Similar Papers 제목 키워드 기반

Toward Executable Repository-Level Code Generation via Environment Alignment

2026-04-04 · Ruwei Pan, Junlei Shen, Linhao Wu, Yueheng Zhu 외 arxiv

Large language models (LLMs) have achieved strong performance on code generation, but existing methods still struggle with repository-level code generation under executable validation. Under this evaluation setting, succ…

Code Generation

Persistent Cross-Attempt State Optimization for Repository-Level Code Generation

2026-04-04 · Ruwei Pan, Jiangshuai Wang, Qisheng Zhang, Yueheng Zhu 외 arxiv

Large language models (LLMs) have achieved substantial progress in repository-level code generation. However, solving the same repository-level task often requires multiple attempts, while existing methods still optimize…

Code Generation

In Line with Context: Repository-Level Code Generation via Context Inlining

2026-01-01 · Chao Hu, Wenhao Zeng, Yuling Shi, Beijun Shen 외 arxiv

Repository-level code generation has attracted growing attention in recent years. Unlike function-level code generation, it requires the model to understand the entire repository, reasoning over complex dependencies acro…

Code Generation

SemanticForge: Repository-Level Code Generation through Semantic Knowledge Graphs and Constraint Satisfaction

2025-11-10 · Wuyang Zhang, Chenkai Zhang, Zhen Luo, Jianming Ma 외 arxiv

Large language models (LLMs) have transformed software development by enabling automated code generation, yet they frequently suffer from systematic errors that limit practical deployment. We identify two critical failur…

Knowledge GraphsCode Generation

RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graph

2024-10-03 · Siru Ouyang, Wenhao Yu, Kaixin Ma, Zilin Xiao 외

Large Language Models (LLMs) excel in code generation yet struggle with modern AI software engineering tasks. Unlike traditional function-level or file-level coding tasks, AI software engineering requires not only basic …

Code Generation