arXiv:2610.11618cs.SEOct 2026

Manuscript Offprint

arXiv:2610.11618

PolyCodeEval: Benchmarking Multilingual Code Generation from Functions to Repositories

Bowen Yang, Jiajun Jiang, Luxue Yu, Yihao Wang, Fengjie Li, Dong Wang

POLYCODEVAL: Benchmarking Multilingual Code Generation from Functions to Repositories

BOWEN YANG, Tianjin University, China

JIAJUN JIANG*, Tianjin University, China

LUXUE YU, Tianjin University, China

YIHAO WANG, Tianjin University, China

FENGJIE LI, Tianjin University, China

DONG WANG, Tianjin University, China

As large language models increasingly move toward repository-level software engineering, existing code-generation benchmarks remain fragmented across language coverage, task granularity, and evaluation protocols, impeding systematic comparison. To address this gap, we present POLYCODEVAL, a unified multilingual and multi-granularity benchmark for code generation. It comprises 2,590 code generation tasks spanning functions to repositories, derived from 58 real, executable open-source repositories in five programming languages. All tasks are evaluated under a unified execution-based protocol with integration procedures tailored to their generation targets. Building on this benchmark, we evaluate frontier large language models, state-of-the-art specialized methods, and general coding agents. Our results show that existing approaches still struggle to correctly generate complete code fragments across granularities and languages. Specifically, the studied methods generate at most 71.7%, 76.7%, and 31.0% correct functions, files, and repositories, respectively, with performance varying widely across languages. Paired experiments further show that implementation context from related functions in the same file improves the executable correctness of function generation. Method rankings also vary across task granularities and programming languages, highlighting the importance of multilingual, multi-granularity evaluation for comprehensively assessing code generation capabilities.

CCS Concepts: • Software and its engineering → Automatic programming; Software prototyping.

Additional Key Words and Phrases: Code generation, Benchmark, Empirical study

ACM Reference Format:

Bowen Yang, Jiajun Jiang, Luxue Yu, Yihao Wang, Fengjie Li, and Dong Wang. 2026. POLYCODEVAL: Benchmarking Multilingual Code Generation from Functions to Repositories. J. ACM 37, 4, Article 111 (October 2026), 22 pages. https://doi.org/XXXXXXX.XXXXXXX

References (16)