Code-Mixer Ya Nahi: Novel Approaches to Measuring Multilingual LLMs' Code-Mixing Capabilities
Not on the map. Why?
Abstract (arXiv)
Multilingual Large Language Models (LLMs) have demonstrated exceptional performance in Machine Translation (MT) tasks. However, their MT abilities in the context of code-switching (the practice of mixing two or more languages in an utterance) remain under-explored. In this paper, we introduce Rule-Based Prompting, a novel prompting technique to generate code-mixed sentences. We measure and compare the code-mixed MT abilities of 3 popular multilingual LLMs: GPT-3.5-turbo, GPT-4, and Gemini Pro across five language pairs: English-Hindi, Bengali, Gujarati, French, Spanish using k-shot prompting (k∈0, 1, 10, 20) and Rule-Based Prompting. Our findings suggest that though k-shot prompting often leads to the best results, Rule-Based prompting shows promise in generating unique code-mixed sentences that vary in their style of code-mixing. We also use k-shot prompting to gauge the code-mixed to English translation abilities of multilingual LLMs. For this purpose, we create a gold-standard code-mixed dataset spanning five language pairs: English-Hindi, Bengali, Gujarati, French, Spanish. As a real-world application of our work, we create a code-mixed chatbot.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 6 of its 18 references that are in the map. First posted on arXiv 14 Oct 2024.
Builds on
6 of 18 references.
References · 6
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023Multilingual Large Language Models Are Not (Yet) Code-Switcherscited by 65
- 2023Prompting Multilingual Large Language Models to Generate Code-Mixed Texts: The Case of South East Asian Languagescited by 50
- 2020PHINC: A Parallel Hinglish Social Media Code-Mixed Corpus for Machine Translationcited by 38
- 2021HinGE: A Dataset for Generation and Evaluation of Code-Mixed Hinglish Textcited by 28
- 2023Code-Switched Text Synthesis in Unseen Language Pairscited by 7
Built on by
Citing papers per year: 2024: 2; 2025: 3; 2026: 2.
7 papers.
- 2025Lost in the Mix: Evaluating LLM Understanding of Code-Switched Textcited by 9
- 2024CHAI for LLMs: Improving Code-Mixed Translation in Large Language Models through Reinforcement Learning with AI Feedbackcited by 5
- 2024What talking you?: Translating Code-Mixed Messaging Texts to Englishcited by 4
- 2025What Language(s) Does Aya-23 Think In? How Multilinguality Affects Internal Language Representationscited by 4
- 2025Towards Fine-Grained Code-Switch Speech Translation with Semantic Space Alignmentcited by 1
- 2026Code Mixologist : A Practitioner's Guide to Building Code-Mixed LLMscited by 0
- 2026Indi-RomCoM: Code-Mixed Benchmark for Evaluating LLMs on Romanized Indic-English Instructionscited by 0
- 2026Indi-RomCoM: Code-Mixed Benchmark for Evaluating LLMs on Romanized Indic-English Instructions29 Jun 2026
- 2026Code Mixologist : A Practitioner's Guide to Building Code-Mixed LLMs21 Jan 2026
- 2025Towards Fine-Grained Code-Switch Speech Translation with Semantic Space Alignment9 Nov 2025
- 2025What Language(s) Does Aya-23 Think In? How Multilinguality Affects Internal Language Representations27 Jul 2025
- 2025Lost in the Mix: Evaluating LLM Understanding of Code-Switched Text16 Jun 2025
- 2024CHAI for LLMs: Improving Code-Mixed Translation in Large Language Models through Reinforcement Learning with AI Feedback13 Nov 2024
- 2024What talking you?: Translating Code-Mixed Messaging Texts to English8 Nov 2024