Skip to content
Preprint

PolyCodeEval: Benchmarking Multilingual Code Generation from Functions to Repositories

Oct 2026 · 0 citations · 44 references
Computer Science

TL;DR

It is shown that existing approaches still struggle to correctly generate complete code fragments across granularities and languages, and method rankings also vary across task granularities and programming languages, highlighting the importance of multilingual, multi-granularity evaluation for comprehensively assessing code generation capabilities.

Abstract

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 PolyCodeEval, 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.

View source

Similar papers

Preprint Sep 2026

Multi-SWT-Bench: A Multilingual Benchmark for Reproduction Test Generation

Reproduction test generation translates a natural-language issue description into executable tests that fail on the original code and pass after the issue is resolved, providing executable evidence for verifying candidate patches. Existing benchmarks are constructed for individual programming languages, preventing a un...

Kazuki Kusama, Sota Nakashima, Haruka Tokumasu et al. · 0 citations
Book Open access Oct 2026

Code Generation Beyond Mainstream Languages

Large Language Models (LLMs) have transformed software engineering through automated code generation, yet their performance varies widely across target languages, specifically between mainstream (e.g., Python) and niche languages (e.g., OCL). Key challenges are determining which LLMs and prompting techniques can most e...

David Delgado · 0 citations
Open access Nov 2026

Beyond synthetic benchmarks: evaluating LLM performance on real-world class-level python code generation

Large language models (LLMs) have advanced rapidly from well-studied function-level code generation to emerging repository-level approaches, yet this progression reveals a critical gap: class-level code generation, which is the fundamental building block connecting individual functions to complete repositories, remains...

Musfiqur Rahman, Sayedhassan Khatoonabadi, Emad Shihab · 1 citation
Preprint Nov 2026

DSL-Bench: Evaluating and Explaining LLM Code Generation Across Domain-Specific Languages

Large language models (LLMs) are increasingly used in software-engineering workflows, but code-generation benchmarks largely focus on general-purpose languages. Domain-specific languages (DSLs) have distinct syntax, semantics, and validation requirements, making results from individual DSL benchmarks difficult to compa...

Zi-Han Zhou, Ming-Xi Ye, Yan Gao et al. · 0 citations

E2E-SWE: Benchmarking LLMs on Building Working Codebases from Scratch

E2E-SWE is introduced, a benchmark for evaluating whether coding agents can build complete, functional software repositories end to end and finds substantial variation in end-to-end repository generation ability, providing strong model differentiation while leaving considerable headroom for future progress.

Hantian Ding, Chloe Bi, Jia-Cheng Zhu et al. · 0 citations
#natural language process... Preprint Oct 2026

DivAlgo: A systematic evaluation of algorithmic diversity for code generation models

The DivAlgo benchmark is proposed, a large-scale dataset constituting algorithmically diverse solutions to programming problems that is significantly less diverse than human solutions and introduces a lightweight similarity metric to enable large-scale evaluation.

Anubhav Jangra, S. Muresan · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.