Exploring Multi-Lingual Bias of Large Code Models in Code Generation
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
Citing papers per year: 2024: 4; 2025: 8; 2026: 5.
17 papers.
Sort:
By area:
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2025Large Language Models for Code Generation: A Comprehensive Survey of Challenges, Techniques, Evaluation, and Applicationscited by 26
- 2024DOMAINEVAL: An Auto-Constructed Benchmark for Multi-Domain Code Generationcited by 21
- 2025A Study of LLMs' Preferences for Libraries and Programming Languagescited by 20
- 2024API-guided Dataset Synthesis to Finetune Large Code Modelscited by 11
- 2025Differentiation-Based Extraction of Proprietary Data from Fine-Tuned LLMscited by 6
- 2026SEAD: Self-Evolving Agent for Multi-Turn Service Dialoguecited by 6
- 2025RAG or Fine-tuning? A Comparative Study on LCMs-based Code Completion in Industrycited by 4
- 2025Reasoning as a Resource: Optimizing Fast and Slow Thinking in Code Generation Modelscited by 3
- 2024CODECLEANER: Elevating Standards with A Robust Data Contamination Mitigation Toolkitcited by 2
- 2025A Qualitative Investigation into LLM-Generated Multilingual Code Comments and Automatic Evaluation Metricscited by 2
- 2025SEER: Enhancing Chain-of-Thought Code Generation through Self-Exploring Deep Reasoningcited by 2
5 more
- 2025TREAT: A Code LLMs Trustworthiness / Reliability Evaluation and Testing Frameworkcited by 1
- 2026From If-Statements to ML Pipelines: Revisiting Bias in Code-Generationcited by 0
- 2026LangChoiceBench: Measuring and Explaining Programming-Language Choice in LLMscited by 0
- 2026Terminal-Bench-LILT: Multilingual Agentic Coding Benchmark Grounded in Language, Region, and Culturecited by 0
- 2026CRJudgeBench: Can AI Detect Plausible but Invalid Code Reviews?cited by 0
- 2026CRJudgeBench: Can AI Detect Plausible but Invalid Code Reviews?29 Sep 2026
- 2026Terminal-Bench-LILT: Multilingual Agentic Coding Benchmark Grounded in Language, Region, and Culture11 Aug 2026
- 2026LangChoiceBench: Measuring and Explaining Programming-Language Choice in LLMs6 Aug 2026
- 2026From If-Statements to ML Pipelines: Revisiting Bias in Code-Generation23 Apr 2026
- 2026SEAD: Self-Evolving Agent for Multi-Turn Service Dialogue3 Feb 2026
- 2025TREAT: A Code LLMs Trustworthiness / Reliability Evaluation and Testing Framework20 Oct 2025
- 2025SEER: Enhancing Chain-of-Thought Code Generation through Self-Exploring Deep Reasoning20 Oct 2025
- 2025Differentiation-Based Extraction of Proprietary Data from Fine-Tuned LLMs20 Jun 2025
- 2025Reasoning as a Resource: Optimizing Fast and Slow Thinking in Code Generation Models11 Jun 2025
- 2025A Qualitative Investigation into LLM-Generated Multilingual Code Comments and Automatic Evaluation Metrics21 May 2025
- 2025RAG or Fine-tuning? A Comparative Study on LCMs-based Code Completion in Industry21 May 2025
- 2025A Study of LLMs' Preferences for Libraries and Programming Languages21 Mar 2025
5 more
- 2025Large Language Models for Code Generation: A Comprehensive Survey of Challenges, Techniques, Evaluation, and Applications3 Mar 2025
- 2024CODECLEANER: Elevating Standards with A Robust Data Contamination Mitigation Toolkit16 Nov 2024
- 2024DOMAINEVAL: An Auto-Constructed Benchmark for Multi-Domain Code Generation23 Aug 2024
- 2024API-guided Dataset Synthesis to Finetune Large Code Models15 Aug 2024
- 2024A Survey on Large Language Models for Code Generation1 Jun 2024
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2025Large Language Models for Code Generation: A Comprehensive Survey of Challenges, Techniques, Evaluation, and Applicationscited by 26
- 2024DOMAINEVAL: An Auto-Constructed Benchmark for Multi-Domain Code Generationcited by 21
- 2025A Study of LLMs' Preferences for Libraries and Programming Languagescited by 20
- 2024API-guided Dataset Synthesis to Finetune Large Code Modelscited by 11
- 2024CODECLEANER: Elevating Standards with A Robust Data Contamination Mitigation Toolkitcited by 2
- 2025A Qualitative Investigation into LLM-Generated Multilingual Code Comments and Automatic Evaluation Metricscited by 2
- 2025TREAT: A Code LLMs Trustworthiness / Reliability Evaluation and Testing Frameworkcited by 1
- 2026From If-Statements to ML Pipelines: Revisiting Bias in Code-Generationcited by 0
- 2026LangChoiceBench: Measuring and Explaining Programming-Language Choice in LLMscited by 0
- 2026CRJudgeBench: Can AI Detect Plausible but Invalid Code Reviews?cited by 0
- 2026CRJudgeBench: Can AI Detect Plausible but Invalid Code Reviews?29 Sep 2026
- 2026LangChoiceBench: Measuring and Explaining Programming-Language Choice in LLMs6 Aug 2026
- 2026From If-Statements to ML Pipelines: Revisiting Bias in Code-Generation23 Apr 2026
- 2025TREAT: A Code LLMs Trustworthiness / Reliability Evaluation and Testing Framework20 Oct 2025
- 2025A Qualitative Investigation into LLM-Generated Multilingual Code Comments and Automatic Evaluation Metrics21 May 2025
- 2025A Study of LLMs' Preferences for Libraries and Programming Languages21 Mar 2025
- 2025Large Language Models for Code Generation: A Comprehensive Survey of Challenges, Techniques, Evaluation, and Applications3 Mar 2025
- 2024CODECLEANER: Elevating Standards with A Robust Data Contamination Mitigation Toolkit16 Nov 2024
- 2024DOMAINEVAL: An Auto-Constructed Benchmark for Multi-Domain Code Generation23 Aug 2024
- 2024API-guided Dataset Synthesis to Finetune Large Code Models15 Aug 2024
- 2024A Survey on Large Language Models for Code Generation1 Jun 2024