paper-with-me

Papers

Toward Executable Repository-Level Code Generation via Environment Alignment

2026-04-04 · Ruwei Pan, Junlei Shen, Linhao Wu, Yueheng Zhu, Zixiong Yang, Yakun Zhang, Lu Zhang, Hongyu Zhang 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, success is determined not by the plausibility of isolated code fragments, but by whether a generated multi-file repository can be successfully installed, have its dependencies and internal references resolved, be launched, and be validated in a real execution environment. To address this challenge, we propose EnvGraph, a framework for repository-level code generation that formulates repository executability as an environment alignment problem. EnvGraph jointly models two coupled conditions for successful repository execution, namely external dependency satisfaction and repository-internal reference resolution. It maintains a dual-layer environment representation, uses execution evidence to perform execution-evidence-based attribution, and guides repository generation through a unified targeted revision mechanism within an iterative alignment loop. We evaluate EnvGraph on repository-level code generation with three representative backbone LLMs and compare it against representative environment-aware and repository-level baselines. Experimental results show that EnvGraph consistently achieves the best performance on these repository-level benchmarks. In particular, it outperforms the strongest non-EnvGraph baseline by an absolute margin of 5.72--5.87 percentage points in Functional Correctness and 4.58--8.66 percentage points in Non-Functional Quality.

📄 PDF Abstract BibTeX arXiv:2604.03622

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

CodeSpecBench: Benchmarking LLMs for Executable Behavioral Specification Generation

2026-04-14 · Zaoyu Chen, Jianbo Dai, Boyu Zhu, Jingdong Wang 외 arxiv

Large language models (LLMs) can generate code from natural language, but the extent to which they capture intended program behavior remains unclear. Executable behavioral specifications, defined via preconditions and po…

Code Generation

Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approaches

2025-10-06 · Yicheng Tao, Yuante Li, Yao Qin, Yepang Liu arxiv

Recent advances in large language models (LLMs) have significantly improved automated code generation. While existing approaches have achieved strong performance at the function and file levels, real-world software engin…

Code Generation

SWE-Hub: A Unified Production System for Scalable, Executable Software Engineering Tasks

2026-02-28 · Yucheng Zeng, Shupeng Li, Daxiang Dong, Ruijie Xu 외 arxiv

Progress in software-engineering agents is increasingly constrained by the scarcity of executable, scalable, and realistic data for training and evaluation. This scarcity stems from three fundamental challenges in existi…

On the Impacts of Contexts on Repository-Level Code Generation

2024-06-17 · Nam Le Hai, Dung Manh Nguyen, Nghi D. Q. Bui

CodeLLMs have gained widespread adoption for code generation tasks, yet their capacity to handle repository-level code generation with complex contextual dependencies remains underexplored. Our work underscores the criti…

Code Generation

Change2Task: From Repository Changes to Executable Coding Agent Tasks and Environments

2026-07-30 · Haomin Qi, Xingliang Wang, Xuanqi Gao, Baihui Sang 외 arxiv

Scaling coding agents requires a continuing supply of executable data for training, benchmarking, and continuous evaluation. Each task must couple a realistic software state with a specification, development tools, and r…