paper-with-me

홈 › Papers

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

2024-08-19 · Mingda Li, Abhijit Mishra, Utkarsh Mujumdar

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.

📄 PDF Abstract BibTeX arXiv:2408.09701

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationCross-Lingual TransferData AugmentationmbppZero-Shot Cross-Lingual Transfer

Similar Papers 제목 키워드 기반

LVP-M3: Language-aware Visual Prompt for Multilingual Multimodal Machine Translation

2022-10-19 · Hongcheng Guo, Jiaheng Liu, Haoyang Huang, Jian Yang 외

Multimodal Machine Translation (MMT) focuses on enhancing text-only translation with visual features, which has attracted considerable attention from both natural language processing and computer vision communities. Rece…

Machine TranslationMultimodal Machine TranslationTranslation

Bridging Language Gaps: Enhancing Few-Shot Language Adaptation

2025-08-26 · Philipp Borchert, Jochen De Weerdt, Marie-Francine Moens arxiv

The disparity in language resources poses a challenge in multilingual NLP, with high-resource languages benefiting from extensive data, while low-resource languages lack sufficient data for effective training. Our Contra…

Natural Language UnderstandingNatural Language InferenceCross-Lingual TransferContrastive Learning

Bridging the Gap: Dynamic Learning Strategies for Improving Multilingual Performance in LLMs

2024-05-28 · Somnath Kumar, Vaibhav Balloli, Mercy Ranjit, Kabir Ahuja 외

Large language models (LLMs) are at the forefront of transforming numerous domains globally. However, their inclusivity and effectiveness remain limited for non-Latin scripts and low-resource languages. This paper tackle…

Question AnsweringRAGRetrieval-augmented Generation

ERNIE-Code: Beyond English-Centric Cross-lingual Pretraining for Programming Languages

2022-12-13 · Yekun Chai, Shuohuan Wang, Chao Pang, Yu Sun 외

Software engineers working with the same programming language (PL) may speak different natural languages (NLs) and vice versa, erecting huge barriers to communication and working efficiency. Recent studies have demonstra…

Code SummarizationLanguage ModelingLanguage ModellingText Generation+1

Prompt Learning to Mitigate Catastrophic Forgetting in Cross-lingual Transfer for Open-domain Dialogue Generation

2023-05-12 · Lei Liu, Jimmy Xiangji Huang

Dialogue systems for non-English languages have long been under-explored. In this paper, we take the first step to investigate few-shot cross-lingual transfer learning (FS-XLT) and multitask learning (MTL) in the context…

Cross-Lingual TransferDialogue GenerationLanguage ModelingLanguage Modelling+2