mlsanityData to 7 Oct 2026

Exploring Multi-Lingual Bias of Large Code Models in Code Generation

arXiv 2404.19368 ↗First posted 30 Apr 2024cs.SEcited by 17

Not on the map. Why?

Abstract (arXiv)

Code generation aims to synthesize code and fulfill functional requirements based on natural language (NL) specifications, which can greatly improve development efficiency. In the era of large language models (LLMs), large code models (LCMs) have been recently proposed to generate source code. LCMs can generate highly feasible solutions for programming problems described in natural language. Despite the effectiveness, we observe a noticeable multilingual bias in the generation performance of LCMs. Specifically, LCMs demonstrate proficiency in generating solutions when provided with instructions in English, yet may falter when faced with semantically equivalent instructions in other NLs such as Chinese. Moreover, the ability of LCMs to generate code exhibits variety across different programming languages (PLs), such as Python and C++. The observed phenomenon indicates the presence of multi-lingual bias within the generative capabilities of LCMs, which has remained unexplored. In this paper, we aim to investigate the multi-lingual bias that exists in current LCMs. First, we initiate our investigation by constructing the first multi-lingual evaluation benchmark X-HumanEval-X, enabling us to systematically evaluate the extent of multi-lingual bias that exists in current LCMs. In our large-scale experiments on nine popular LCMs, we observe a pronounced multi-lingual bias of LCMs in code generation, including multi-NL and multi-PL bias. Specifically, when using Chinese instructions, the code generation capabilities of LCMs decrease by at least 13% in terms of the Pass@1 metric. Furthermore, LCMs perform variously across different programming languages, e.g., the performance gap between Python and C++ reaches as high as 20.9%. ...

Key facts. Cited by 17 papers in the map (data through 7 Oct 2026). First posted on arXiv 30 Apr 2024.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 4; 2025: 8; 2026: 5.

17 papers.

Sort:

By area:

  1. 2024A Survey on Large Language Models for Code Generationcited by 646
  2. 2025Large Language Models for Code Generation: A Comprehensive Survey of Challenges, Techniques, Evaluation, and Applicationscited by 26
  3. 2024DOMAINEVAL: An Auto-Constructed Benchmark for Multi-Domain Code Generationcited by 21
  4. 2025A Study of LLMs' Preferences for Libraries and Programming Languagescited by 20
  5. 2024API-guided Dataset Synthesis to Finetune Large Code Modelscited by 11
  6. 2025Differentiation-Based Extraction of Proprietary Data from Fine-Tuned LLMscited by 6
  7. 2026SEAD: Self-Evolving Agent for Multi-Turn Service Dialoguecited by 6
  8. 2025RAG or Fine-tuning? A Comparative Study on LCMs-based Code Completion in Industrycited by 4
  9. 2025Reasoning as a Resource: Optimizing Fast and Slow Thinking in Code Generation Modelscited by 3
  10. 2024CODECLEANER: Elevating Standards with A Robust Data Contamination Mitigation Toolkitcited by 2
  11. 2025A Qualitative Investigation into LLM-Generated Multilingual Code Comments and Automatic Evaluation Metricscited by 2
  12. 2025SEER: Enhancing Chain-of-Thought Code Generation through Self-Exploring Deep Reasoningcited by 2
5 more
  1. 2025TREAT: A Code LLMs Trustworthiness / Reliability Evaluation and Testing Frameworkcited by 1
  2. 2026From If-Statements to ML Pipelines: Revisiting Bias in Code-Generationcited by 0
  3. 2026LangChoiceBench: Measuring and Explaining Programming-Language Choice in LLMscited by 0
  4. 2026Terminal-Bench-LILT: Multilingual Agentic Coding Benchmark Grounded in Language, Region, and Culturecited by 0
  5. 2026CRJudgeBench: Can AI Detect Plausible but Invalid Code Reviews?cited by 0