Linguistics Theory Meets LLM: Code-Switched Text Generation via Equivalence Constrained Large Language Models
Not on the map. Why?
Abstract (arXiv)
Code-switching, the phenomenon of alternating between two or more languages in a single conversation, presents unique challenges for Natural Language Processing (NLP). Most existing research focuses on either syntactic constraints or neural generation, with few efforts to integrate linguistic theory with large language models (LLMs) for generating natural code-switched text. In this paper, we introduce EZSwitch, a novel framework that combines Equivalence Constraint Theory (ECT) with LLMs to produce linguistically valid and fluent code-switched text. We evaluate our method using both human judgments and automatic metrics, demonstrating a significant improvement in the quality of generated code-switching sentences compared to baseline LLMs. To address the lack of suitable evaluation metrics, we conduct a comprehensive correlation study of various automatic metrics against human scores, revealing that current metrics often fail to capture the nuanced fluency of code-switched text. Additionally, we create CSPref, a human preference dataset based on human ratings and analyze model performance across ``hard`` and ``easy`` examples. Our findings indicate that incorporating linguistic constraints into LLMs leads to more robust and human-aligned generation, paving the way for scalable code-switching text generation across diverse language pairs.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 20 of its 55 references that are in the map. First posted on arXiv 30 Oct 2024.
Builds on
20 of 55 references.
References · 20
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2020COMET: A Neural Framework for MT Evaluationcited by 1,033
- 2021Samanantar: The Largest Publicly Available Parallel Corpora Collection for 11 Indic Languagescited by 136
- 2024Aya 23: Open Weight Releases to Further Multilingual Progresscited by 123
- 2020GLUECoS : An Evaluation Benchmark for Code-Switched NLPcited by 102
- 2020Syntactic Structure from Deep Learningcited by 99
- 2020LinCE: A Centralized Benchmark for Linguistic Code-switching Evaluationcited by 93
- 2019BERTs of a feather do not generalize together: Large variability in generalization across models with similar test set performancecited by 89
- 2019A Survey of Code-switched Speech and Language Processingcited by 75
- 2022NusaX: Multilingual Parallel Sentiment Dataset for 10 Indonesian Local Languagescited by 68
- 2022One Country, 700+ Languages: NLP Challenges for Underrepresented Languages and Dialects in Indonesiacited by 66
- 2023Multilingual Large Language Models Are Not (Yet) Code-Switcherscited by 65
8 more
- 2021Are Multilingual Models Effective in Code-Switching?cited by 56
- 2019Code-Switched Language Models Using Neural Based Synthetic Data from Parallel Sentencescited by 55
- 2023Prompting Multilingual Large Language Models to Generate Code-Mixed Texts: The Case of South East Asian Languagescited by 51
- 2024WorldCuisines: A Massive-Scale Benchmark for Multilingual and Multicultural Visual Question Answering on Global Cuisinescited by 39
- 2021HinGE: A Dataset for Generation and Evaluation of Code-Mixed Hinglish Textcited by 28
- 2024MetaMetrics: Calibrating Metrics For Generation Tasks Using Human Preferencescited by 15
- 2016Grammatical Constraints on Intra-sentential Code-Switching: From Theories to Working Modelscited by 10
- 2024Code-Mixed Probes Show How Pre-Trained Models Generalise On Code-Switched Textcited by 7
Built on by
Citing papers per year: 2025: 2; 2026: 4.
6 papers.
- 2025SwitchLingua: The First Large-Scale Multilingual and Multi-Ethnic Code-Switching Datasetcited by 14
- 2026Can Large Language Models Understand, Reason About, and Generate Code-Switched Text?cited by 5
- 2026Bringing Up a Bilingual BabyLM: Investigating Multilingual Language Acquisition Using Small-Scale Modelscited by 5
- 2025SASFT: Sparse Autoencoder-guided Supervised Finetuning to Mitigate Unexpected Code-Switching in LLMscited by 2
- 2026Think Multilingual, Not Harder: A Data-Efficient Framework for Teaching Reasoning Models to Code-Switchcited by 2
- 2026Code Mixologist : A Practitioner's Guide to Building Code-Mixed LLMscited by 0
- 2026Think Multilingual, Not Harder: A Data-Efficient Framework for Teaching Reasoning Models to Code-Switch16 Apr 2026
- 2026Bringing Up a Bilingual BabyLM: Investigating Multilingual Language Acquisition Using Small-Scale Models31 Mar 2026
- 2026Code Mixologist : A Practitioner's Guide to Building Code-Mixed LLMs21 Jan 2026
- 2026Can Large Language Models Understand, Reason About, and Generate Code-Switched Text?12 Jan 2026
- 2025SASFT: Sparse Autoencoder-guided Supervised Finetuning to Mitigate Unexpected Code-Switching in LLMs20 Jul 2025
- 2025SwitchLingua: The First Large-Scale Multilingual and Multi-Ethnic Code-Switching Dataset30 May 2025
Similar, not cited
Close in wording, no citation either way
- 2026OLA: Output Language Alignment in Code-Switched LLM Interactions
- 2024Can Code-Switched Texts Activate a Knowledge Switch in LLMs? A Case Study on English-Korean Code-Switching
- 2024Sample-Efficient Human Evaluation of Large Language Models via Maximum Discrepancy Competition
- 2025Evaluating Multilingual and Code-Switched Alignment in LLMs via Synthetic Natural Language Inference
- 2023Aligning Large Language Models with Human: A Survey
- 2024A Systematic Evaluation of Large Language Models for Natural Language Generation Tasks
- 2024CodeUltraFeedback: An LLM-as-a-Judge Dataset for Aligning Large Language Models to Coding Preferences
- 2023Prompting Large Language Models for Counterfactual Generation: An Empirical Study