mlsanityData to 14 Oct 2026

Linguistics Theory Meets LLM: Code-Switched Text Generation via Equivalence Constrained Large Language Models

arXiv 2410.22660 ↗First posted 30 Oct 2024cs.CLcited by 6

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

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2020COMET: A Neural Framework for MT Evaluationcited by 1,033
  3. 2021Samanantar: The Largest Publicly Available Parallel Corpora Collection for 11 Indic Languagescited by 136
  4. 2024Aya 23: Open Weight Releases to Further Multilingual Progresscited by 123
  5. 2020GLUECoS : An Evaluation Benchmark for Code-Switched NLPcited by 102
  6. 2020Syntactic Structure from Deep Learningcited by 99
  7. 2020LinCE: A Centralized Benchmark for Linguistic Code-switching Evaluationcited by 93
  8. 2019BERTs of a feather do not generalize together: Large variability in generalization across models with similar test set performancecited by 89
  9. 2019A Survey of Code-switched Speech and Language Processingcited by 75
  10. 2022NusaX: Multilingual Parallel Sentiment Dataset for 10 Indonesian Local Languagescited by 68
  11. 2022One Country, 700+ Languages: NLP Challenges for Underrepresented Languages and Dialects in Indonesiacited by 66
  12. 2023Multilingual Large Language Models Are Not (Yet) Code-Switcherscited by 65
8 more
  1. 2021Are Multilingual Models Effective in Code-Switching?cited by 56
  2. 2019Code-Switched Language Models Using Neural Based Synthetic Data from Parallel Sentencescited by 55
  3. 2023Prompting Multilingual Large Language Models to Generate Code-Mixed Texts: The Case of South East Asian Languagescited by 51
  4. 2024WorldCuisines: A Massive-Scale Benchmark for Multilingual and Multicultural Visual Question Answering on Global Cuisinescited by 39
  5. 2021HinGE: A Dataset for Generation and Evaluation of Code-Mixed Hinglish Textcited by 28
  6. 2024MetaMetrics: Calibrating Metrics For Generation Tasks Using Human Preferencescited by 15
  7. 2016Grammatical Constraints on Intra-sentential Code-Switching: From Theories to Working Modelscited by 10
  8. 2024Code-Mixed Probes Show How Pre-Trained Models Generalise On Code-Switched Textcited by 7

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 4.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026OLA: Output Language Alignment in Code-Switched LLM Interactions
  2. 2024Can Code-Switched Texts Activate a Knowledge Switch in LLMs? A Case Study on English-Korean Code-Switching
  3. 2024Sample-Efficient Human Evaluation of Large Language Models via Maximum Discrepancy Competition
  4. 2025Evaluating Multilingual and Code-Switched Alignment in LLMs via Synthetic Natural Language Inference
  5. 2023Aligning Large Language Models with Human: A Survey
  6. 2024A Systematic Evaluation of Large Language Models for Natural Language Generation Tasks
  7. 2024CodeUltraFeedback: An LLM-as-a-Judge Dataset for Aligning Large Language Models to Coding Preferences
  8. 2023Prompting Large Language Models for Counterfactual Generation: An Empirical Study