TY - JOUR
T1 - Towards multi-language repository-level code generation
T2 - From-scratch to guided tasks
AU - Liu, Jingjing
AU - Li, Silin
AU - Liu, Zeming
AU - Cheng, Zihao
AU - Guo, Yuhang
AU - Guo, Yuanfang
AU - Wang, Yunhong
AU - Wang, Haifeng
N1 - Publisher Copyright:
© 2026 Elsevier B.V.
PY - 2026/5/28
Y1 - 2026/5/28
N2 - Repository-level code generation constitutes a fundamental building block for automated software development. Consequently, numerous benchmarks have been proposed to evaluate the capabilities of large language models (LLMs) in this domain. However, existing benchmarks are largely limited to a single programming language and a fixed granularity level. To address these two challenges, we introduce ReCode-bench, a multi-language benchmark covering 7 widely-used programming languages and comprising three repository-level code generation tasks. These tasks are designed around varying levels of requirement granularity and include full project creation from scratch as well as guided development based on structural or functional specifications. In the latter, intentionally introduced requirements are treated as positive noise to better reflect realistic development scenarios. To enhance LLM robustness across these tasks, we propose RepoGenesis, a GRPO-based reinforcement learning framework that incorporates 3 distinct reward signals: structural similarity to human-written repositories, syntactic correctness verified through abstract syntax tree analysis, and functional validity confirmed via unit test execution. We evaluated 8 LLMs on ReCode-bench and found that even Claude-Sonnet-4—currently among the strongest code generation models—achieves an average pass@1 score of less than 4% across the three tasks. However, after training with RepoGenesis, Qwen2.5-coder-7B-Instruct attains performance comparable to Claude-Sonnet-4 (>100B).
AB - Repository-level code generation constitutes a fundamental building block for automated software development. Consequently, numerous benchmarks have been proposed to evaluate the capabilities of large language models (LLMs) in this domain. However, existing benchmarks are largely limited to a single programming language and a fixed granularity level. To address these two challenges, we introduce ReCode-bench, a multi-language benchmark covering 7 widely-used programming languages and comprising three repository-level code generation tasks. These tasks are designed around varying levels of requirement granularity and include full project creation from scratch as well as guided development based on structural or functional specifications. In the latter, intentionally introduced requirements are treated as positive noise to better reflect realistic development scenarios. To enhance LLM robustness across these tasks, we propose RepoGenesis, a GRPO-based reinforcement learning framework that incorporates 3 distinct reward signals: structural similarity to human-written repositories, syntactic correctness verified through abstract syntax tree analysis, and functional validity confirmed via unit test execution. We evaluated 8 LLMs on ReCode-bench and found that even Claude-Sonnet-4—currently among the strongest code generation models—achieves an average pass@1 score of less than 4% across the three tasks. However, after training with RepoGenesis, Qwen2.5-coder-7B-Instruct attains performance comparable to Claude-Sonnet-4 (>100B).
KW - GRPO
KW - Large language model
KW - Multi-language
KW - RepoGenesis
KW - Repository-level code generation
UR - https://www.scopus.com/pages/publications/105031783124
U2 - 10.1016/j.neucom.2026.133204
DO - 10.1016/j.neucom.2026.133204
M3 - Article
AN - SCOPUS:105031783124
SN - 0925-2312
VL - 679
JO - Neurocomputing
JF - Neurocomputing
M1 - 133204
ER -