mlsanityData to 7 Oct 2026

Bridging the Language Gap: Enhancing Multilingual Prompt-Based Code Generation in LLMs via Zero-Shot Cross-Lingual Transfer

arXiv 2408.09701 ↗First posted 19 Aug 2024cs.CLcited by 1

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

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2023Visual Instruction Tuningcited by 7,792
  5. 2021Program Synthesis with Large Language Modelscited by 3,509
  6. 2023Mistral 7Bcited by 3,065
  7. 2023A Survey of Large Language Modelscited by 2,537
  8. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  9. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
  10. 2024Gemma: Open Models Based on Gemini Research and Technologycited by 889
  11. 2015Improving Neural Machine Translation Models with Monolingual Datacited by 784
  12. 2024PaliGemma: A versatile 3B VLM for transfercited by 679
26 more
  1. 2022PAL: Program-aided Language Modelscited by 635
  2. 2022Language Models are Multilingual Chain-of-Thought Reasonerscited by 518
  3. 2018Massively Multilingual Sentence Embeddings for Zero-Shot Cross-Lingual Transfer and Beyondcited by 434
  4. 2023MEGA: Multilingual Evaluation of Generative AIcited by 291
  5. 2023ChatGPT Beyond English: Towards a Comprehensive Evaluation of Large Language Models in Multilingual Learningcited by 203
  6. 2023Not All Languages Are Created Equal in LLMs: Improving Multilingual Capability by Cross-Lingual-Thought Promptingcited by 163
  7. 2023Self-Alignment with Instruction Backtranslationcited by 149
  8. 2022Lifting the Curse of Multilinguality by Pre-training Modular Transformerscited by 145
  9. 2024CodeGemma: Open Code Models Based on Gemmacited by 145
  10. 2023Prompting Large Language Models with Speech Recognition Abilitiescited by 139
  11. 2022Automatic Generation of Programming Exercises and Code Explanations using Large Language Modelscited by 124
  12. 2022Programming Is Hard -- Or at Least It Used to Be: Educational Opportunities And Challenges of AI Code Generationcited by 97
  13. 2023Cross-lingual Prompting: Improving Zero-shot Chain-of-Thought Reasoning across Languagescited by 96
  14. 2022Execution-Based Evaluation for Open-Domain Code Generationcited by 89
  15. 2024HumanEval-XL: A Multilingual Code Generation Benchmark for Cross-lingual Natural Language Generalizationcited by 84
  16. 2023Monolingual or Multilingual Instruction Tuning: Which Makes a Better Alpacacited by 60
  17. 2021Discrete and Soft Prompting for Multilingual Modelscited by 49
  18. 2022Bitext Mining Using Distilled Sentence Representations for Low-Resource Languagescited by 48
  19. 2021Consistency Regularization for Cross-Lingual Fine-Tuningcited by 41
  20. 2022ERNIE-Code: Beyond English-Centric Cross-lingual Pretraining for Programming Languagescited by 29
  21. 2022Zero-shot Cross-lingual Transfer of Prompt-based Tuning with a Unified Multilingual Promptcited by 25
  22. 2022BigScience: A Case Study in the Social Construction of a Multilingual Large Language Modelcited by 11
  23. 2024Getting More from Less: Large Language Models are Good Spontaneous Multilingual Learnerscited by 11
  24. 2023Bridging Code Semantic and LLMs: Semantic Chain-of-Thought Prompting for Code Generationcited by 6
  25. 2022Bootstrapping Multilingual Semantic Parsers using Large Language Modelscited by 2
  26. 2020Evaluating Cross-Lingual Transfer Learning Approaches in Multilingual Conversational Agent Modelscited by 1

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.