Bridging the Language Gap: Enhancing Multilingual Prompt-Based Code Generation in LLMs via Zero-Shot Cross-Lingual Transfer
Not on the map. Why?
Abstract (arXiv)
The use of Large Language Models (LLMs) for program code generation has gained substantial attention, but their biases and limitations with non-English prompts challenge global inclusivity. This paper investigates the complexities of multilingual prompt-based code generation. Our evaluations of LLMs, including CODELLAMA and CODEGEMMA, reveal significant disparities in code quality for non-English prompts; we also demonstrate the inadequacy of simple approaches like prompt translation, bootstrapped data augmentation, and fine-tuning. To address this, we propose a zero-shot cross-lingual approach using a neural projection technique, integrating a cross-lingual encoder like LASER to map multilingual embeddings from it into the LLM's token space. This method requires training only on English data and scales effectively to other languages. Results on a translated and quality-checked MBPP dataset show substantial improvements in code quality. This research promotes a more inclusive code generation landscape by empowering LLMs with multilingual capabilities to support the diverse linguistic spectrum in programming.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 38 of its 47 references that are in the map. First posted on arXiv 19 Aug 2024.
Builds on
38 of 47 references.
References · 38
- 2023GPT-4 Technical Reportcited by 18,132
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2023Visual Instruction Tuningcited by 7,792
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023Mistral 7Bcited by 3,065
- 2023A Survey of Large Language Modelscited by 2,537
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
- 2024Gemma: Open Models Based on Gemini Research and Technologycited by 889
- 2015Improving Neural Machine Translation Models with Monolingual Datacited by 784
- 2024PaliGemma: A versatile 3B VLM for transfercited by 679
26 more
- 2022PAL: Program-aided Language Modelscited by 635
- 2022Language Models are Multilingual Chain-of-Thought Reasonerscited by 518
- 2018Massively Multilingual Sentence Embeddings for Zero-Shot Cross-Lingual Transfer and Beyondcited by 434
- 2023MEGA: Multilingual Evaluation of Generative AIcited by 291
- 2023ChatGPT Beyond English: Towards a Comprehensive Evaluation of Large Language Models in Multilingual Learningcited by 203
- 2023Not All Languages Are Created Equal in LLMs: Improving Multilingual Capability by Cross-Lingual-Thought Promptingcited by 163
- 2023Self-Alignment with Instruction Backtranslationcited by 149
- 2022Lifting the Curse of Multilinguality by Pre-training Modular Transformerscited by 145
- 2024CodeGemma: Open Code Models Based on Gemmacited by 145
- 2023Prompting Large Language Models with Speech Recognition Abilitiescited by 139
- 2022Automatic Generation of Programming Exercises and Code Explanations using Large Language Modelscited by 124
- 2022Programming Is Hard -- Or at Least It Used to Be: Educational Opportunities And Challenges of AI Code Generationcited by 97
- 2023Cross-lingual Prompting: Improving Zero-shot Chain-of-Thought Reasoning across Languagescited by 96
- 2022Execution-Based Evaluation for Open-Domain Code Generationcited by 89
- 2024HumanEval-XL: A Multilingual Code Generation Benchmark for Cross-lingual Natural Language Generalizationcited by 84
- 2023Monolingual or Multilingual Instruction Tuning: Which Makes a Better Alpacacited by 60
- 2021Discrete and Soft Prompting for Multilingual Modelscited by 49
- 2022Bitext Mining Using Distilled Sentence Representations for Low-Resource Languagescited by 48
- 2021Consistency Regularization for Cross-Lingual Fine-Tuningcited by 41
- 2022ERNIE-Code: Beyond English-Centric Cross-lingual Pretraining for Programming Languagescited by 29
- 2022Zero-shot Cross-lingual Transfer of Prompt-based Tuning with a Unified Multilingual Promptcited by 25
- 2022BigScience: A Case Study in the Social Construction of a Multilingual Large Language Modelcited by 11
- 2024Getting More from Less: Large Language Models are Good Spontaneous Multilingual Learnerscited by 11
- 2023Bridging Code Semantic and LLMs: Semantic Chain-of-Thought Prompting for Code Generationcited by 6
- 2022Bootstrapping Multilingual Semantic Parsers using Large Language Modelscited by 2
- 2020Evaluating Cross-Lingual Transfer Learning Approaches in Multilingual Conversational Agent Modelscited by 1
Built on by
Citing papers per year: 2025: 1.
1 paper.