PreprintCited by 8Natural Language Processing TechniquesTopic ModelingSpeech Recognition and Synthesis

HumanEval-XL: A Multilingual Code Generation Benchmark for Cross-lingual Natural Language Generalization

Open access
Peng, Qiwei, Chai, Yekun, Li, Xuhong·2024·arXiv

Abstract

Large language models (LLMs) have made significant progress in generating codes from textual prompts. However, existing benchmarks have mainly concentrated on translating English prompts to multilingual codes or have been constrained to very limited natural languages (NLs). These benchmarks have overlooked the vast landscape of massively multilingual NL to multilingual code, leaving a critical gap in the evaluation of multilingual LLMs. In response, we introduce HumanEval-XL, a massively multilingual code generation benchmark specifically crafted to address this deficiency. HumanEval-XL establishes connections between 23 NLs and 12 programming languages (PLs), and comprises of a collection of 22,080 prompts with an average of 8.33 test cases. By ensuring parallel data across multiple NLs and PLs, HumanEval-XL offers a comprehensive evaluation platform for multilingual LLMs, allowing the assessment of the understanding of different NLs. Our work serves as a pioneering step towards filling the void in evaluating NL generalization in the area of multilingual code generation. We make our evaluation code and data publicly available at \url{https://github.com/FloatAI/humaneval-xl}.

Integrity signals

Registry

DataCite · 10.48550/arxiv.2402.16694

Cites

16 of 18 references verified0 citation errors · 2 not checkable

Statistics

Nothing to recompute.

Claims the paper makes

3 of 9 cited sources checked · 2 supported · 0 flagged · accuracy not yet measured

  • Findingnone given

    The benchmark's construction uses an iterative process inspired by back-translation to create a robust benchmark spanning 12 programming languages and 23 natural languages.

    “Drawing inspiration from back-translation, we have devised an iterative process that enables the creation of a robust benchmark spanning 12 PLs and 23 NLs.”
    Quote in the paperSubstantial claim
  • Findingown data

    The experimental results show clear disparities in performance across different natural languages.

    “From Figure 2, we can observe clear disparities in performance across different NLs.”
    Quote in the paperSubstantial claim
  • Findingreasoning

    CodeT5+ (2B) struggles to solve problems across most scenarios.

    “CodeT5+ (2B), despite its specialization in code generation, struggles to solve problems across most scenarios.”
    Quote in the paperSubstantial claim
  • Findingown data

    Class 3 languages consistently demonstrate lower performance across different models.

    “The difference in pass@1 among categorized groups is not large yet consistent, with class 3 consistently demonstrating lower performance across different models.”
    Quote in the paperNot a substantial claim
  • Findingown data

    LLMs within the same family but with different parameter scales exhibit high correlation across different levels of language resources.

    “Interestingly, we observe from Table 3 that LLMs within the same family, but possessing different parameter scales, exhibit a high correlation across different levels of language resources.”
    Quote in the paperSubstantial claim
  • May combine two claims. 15
  • Classified as probably not a substantial claim. 8
  • May combine two claims.

    Premisecitation

    ODEX introduced a dataset with 4 natural languages and Python, averaging 1.8 test cases.

    “ODEX (Wang et al., 2022) introduced a dataset comprising 4 NLs and Python, albeit with a limited average of 1.8 test cases.”
    Quote in the paperNot a substantial claim1 of 1 sources checked
    • cites Wang et al., 2022 source
  • May combine two claims.

    Premisecitation

    Existing code generation benchmarks focus mainly on English prompts to multilingual code or cover only a small number of natural languages.

    “However, existing benchmarks have mainly concentrated on translating English prompts to multilingual codes or have been constrained to very limited natural languages (NLs).”
    Quote in the paperSubstantial claim1 of 3 sources checked
    • cites Wang et al., 2022 source

      The Related Work section says ODEX uniquely draws on StackOverflow forums in various languages, and the Abstract says its prompts span English, Spanish, Japanese, and Russian. This supports the point that earlier benchmarks had limited natural-language coverage, but the passages do not establish that existing benchmarks mainly translate English prompts into multiple programming languages. (LLM, conf=0.72)

      Experimental — accuracy not yet measured
    • cites Chai et al., 2023

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites Scao et al., 2022

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • May combine two claims.

    Interpretationcitation

    Scaling laws persist while maintaining a consistent landscape of capabilities across a wide range of linguistic structures.

    “This finding underscores the persistence of scaling laws (Hoffmann et al., 2022) while maintaining a consistent landscape of capabilities across a wide range of linguistic structures.”
    Quote in the paperSubstantial claim1 of 1 sources checked
    • cites Hoffmann et al., 2022 source
  • May combine two claims.

    Findingown data

    HumanEval-XL connects 23 natural languages and 12 programming languages.

    “HumanEval-XL establishes connections between 23 NLs and 12 programming languages (PLs)”
    • Also stated in: § 1. Introduction · plain
      “incorporating parallel coding problems across 23 NLs and 12 PLs.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data

    HumanEval-XL contains 22,080 prompts with an average of 8.33 test cases.

    “comprises of a collection of 22,080 prompts with an average of 8.33 test cases.”
    • Also stated in: § 3.2. Dataset Construction · plain
      “In total, this benchmark includes 22,080 coding problems.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S4 (based).

    Findingnone given

    The trends observed in the experimental results remain consistent across different model scales for each model.

    “Due to page limits, we put all experimental results in appendix and only report different models with largest parameters in the main context, as the observed trends remain consistent across different scales for each model.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data

    The difference in pass@1 among categorized groups is not large yet consistent.

    “The difference in pass@1 among categorized groups is not large yet consistent, with class 3 consistently demonstrating lower performance across different models.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data

    After filtering, HumanEval-XL consists of 80 parallel coding problems spanning 12 programming languages and 23 natural languages.

    “After filtering and discarding poorquality examples, we result in the HumanEval-XL benchmark, consisting of 80 parallel coding problems spanning 12 PLs and 23 NLs.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data

    The Pearson correlation between CodeGen2-3.7B and CodeGen2-16B is 0.8, and between GPT-3.5 and GPT-4 is 0.87.

    “For instance, the Pearson correlation between CodeGen2-3.7B and 16B is 0.8, and between GPT-3.5 and GPT-4, it stands at 0.87.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data

    GPT-4 consistently demonstrates superior performance across different programming languages and natural languages, except C#, outperforming all other models significantly.

    “Notably, GPT-4 consistently demonstrates superior performance across different PLs and NLs (except C#), outperforming all other models significantly.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Premisereasoning

    Existing benchmarks lack evaluation of massively multilingual natural-language-to-multilingual-code, leaving a critical gap.

    “These benchmarks have overlooked the vast landscape of massively multilingual NL to multilingual code, leaving a critical gap in the evaluation of multilingual LLMs.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Interpretationreasoning

    The benchmark's parallel data across multiple natural languages and programming languages enables comprehensive evaluation of multilingual LLMs and assessment of understanding of different natural languages.

    “By ensuring parallel data across multiple NLs and PLs, HumanEval-XL offers a comprehensive evaluation platform for multilingual LLMs, allowing the assessment of the understanding of different NLs.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisecitation

    ERNIE-Code was pre-trained across 116 natural languages and 6 programming languages.

    “ERNIE-Code (Chai et al., 2023) pioneered multilingual LLMs by pre-training across 116 NLs and 6 PLs.”
    Quote in the paperNot a substantial claim0 of 1 sources checked
    • cites Chai et al., 2023

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • Classified as probably not a substantial claim.

    Interpretationreasoning

    The study underscores the persistent challenge in achieving effective cross-lingual natural language generalization.

    “Our study underscores the persistent challenge in achieving effective cross-lingual NL generalization, highlighting a key area for future research.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Premisecitation

    BLOOM was pre-trained on data in 46 natural languages and 13 programming languages but did not produce competitive results in Python code generation.

    “BLOOM (Scao et al., 2022) was pretrained on data in 46 NLs and 13 PLs.However, it did not produce competitive results in Python code generation.”
    Quote in the paperNot a substantial claim0 of 1 sources checked
    • cites Scao et al., 2022

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Study design and conductcitation

    Only the first generated function was kept as stopping criteria following Athiwaratkun et al. (2023).

    “Following Athiwaratkun et al. ( 2023), we keep only the first generated function as our stopping criteria.”
    Quote in the paperNot a substantial claim0 of 1 sources checked
    • cites Athiwaratkun et al., 2023

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • Classified as probably not a substantial claim. May combine two claims.

    Study design and conductcitation

    Translations with BERTScore similarity above 0.95 were retained; those below were re-translated up to three times and discarded if still below.

    “If the similarity score exceeds 0.95, indicating a high-quality translation, it is retained for further processing.In cases where the score falls below this threshold, above process is iteratively repeated up to a predefined limit (set to 3 in this work).If the score is still below the threshold, we will discard this example.”
    Quote in the paperSubstantial claim0 of 1 sources checked
    • cites Zhang et al., 2019 source
  • Classified as probably not a substantial claim. May combine two claims.

    Study design and conductreasoning

    The study evaluated models with top-p sampling of 0.95 and temperature 0.2, ensuring comparability across models.

    “The specific parameters for the sampling process were set to a top-p value of 0.95 and a temperature of 0.2.This uniform approach ensures comparability of results across different models.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Study design and conductown data

    Due to constrained computing resources, the study reports pass@1 for all experiments.

    “Due to constrained computing resources, we report pass@1 for all experiments.”
    Quote in the paperNot a substantial claim
  • Classified as probably not a substantial claim. May combine two claims.

    Study design and conductnone given

    Remaining translated texts underwent heuristic quality checks, with manual checking of randomly sampled examples and corrections.

    “Subsequently, the remaining translated texts undergo heuristic quality checks.We have manually checked randomly sampled examples and make corrections if the translation is problematic.”
    Quote in the paperSubstantial claim
20 of 20

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

Each contradiction between two passages listed here was confirmed by an independent check.

  • GPT-3.5 does not trail CodeGen2-16B on every non-Python language

    Major

    The Ruby results contradict the claimed exception pattern. For English Ruby prompts, GPT-3.5 scores 5.00 while CodeGen2-16B scores 0.00.

  • Class 5 CodeT5+ average does not match its language scores

    Major

    The six Class 5 Python scores in Table 5 average 1.67, not the 0.63 reported in Table 3. This affects the paper's comparison of performance across resource classes.

    Reported 0.63 · recomputed 1.666667

  • Class 3 is not lower for every model in Table 3

    Minor

    The stated pattern has a counterexample in Table 3: CodeT5+ scores 0.83 for Class 3 and 0.63 for Class 5. CodeGen2 (16B) also scores higher on Class 3 than Class 4.

3 of 3

Cites

Flagged first, then by citations

3 of the 21 references couldn’t be matched to a known paper.

Research works printed but not linked: 1

  1. PMLR.

Cited by

Sorted by citations

Authors
Peng, Q., Chai, Y., & Li, X.
Affiliations
  • University of Copenhagen (DK)
  • Baidu (China) (CN)
Venue
arXiv
Publisher
arXiv
Published
2024
ISSN
2331-8422 (ISSN-L)
OpenAlex
W4392223004
Cited by
4
References
21
Citations by year
2025: 2 · 2024: 2
Type
posted content
Language
en
Open access
Locations
  • arXiv (Cornell University) (submittedVersion, other-oa)
  • Research at the University of Copenhagen (University of Copenhagen) (submittedVersion, other-oa)
  • arXiv (Cornell University)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
  • Physical Sciences › Computer Science › Artificial Intelligence › Speech Recognition and Synthesis
Keywords
multilingual code generation, code generation benchmarks, multilingual large language models, natural language to code translation, programming languages, natural language understanding

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Claims read by deepseek-v4.1-flash under definition version 3 (extract-v3) on 2026-10-05.

Classified by jev-1.13-20260917 (gold-guideline-v0.2) on 2026-10-05.

Cited sources are checked by gpt-6-sol.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review