跳到主要导航 跳到搜索 跳到主要内容

Towards multi-language repository-level code generation: From-scratch to guided tasks

  • Jingjing Liu
  • , Silin Li
  • , Zeming Liu*
  • , Zihao Cheng
  • , Yuhang Guo
  • , Yuanfang Guo
  • , Yunhong Wang
  • , Haifeng Wang
  • *此作品的通讯作者
  • Beihang University
  • Beijing Institute of Technology
  • Baidu Inc

科研成果: 期刊稿件 › 文章 › 同行评审

摘要

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).

源语言英语
期刊论文编号133204
期刊Neurocomputing
卷679
DOI
出版状态已出版 - 28 5月 2026
已对外发布是

学术指纹

探究 'Towards multi-language repository-level code generation: From-scratch to guided tasks' 的科研主题。它们共同构成独一无二的学术指纹。

引用此