PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
August 19, 20240 citationsOpen Access

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

View Full Paper
MLMingda LiAMAbhijit MishraUMUtkarsh Mujumdar

Key Points

Key points are not available for this paper at this time.

Abstract

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 artetxe2019massively 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.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Li et al. (2024) studied this question.

synapsesocial.com/papers/68e5bd35b6db643587554e53https://doi.org/10.48550/arxiv.2408.09701
Ask AI
Helpful
Bookmark
Share
View Full Paper

Also Consider

Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context:

  1. 1Bridging the Gap: Dynamic Learning Strategies for Improving Multilingual Performance in LLMs2024
  2. 2Enhancing Code Translation in Language Models with Few-Shot Learning via Retrieval-Augmented Generation2024
  3. 3Exploring Multi-Lingual Bias of Large Code Models in Code Generation2024 · 2 citations
  4. 4Vibe Coding in Vernacular Contexts: A Comprehensive Study on Tamil and Global Implications for Multilingual Programming Education2025
  5. 5Multilingual Prompting for Improving LLM Generation Diversity2025