CodeMixBench: Evaluating Code-Mixing Capabilities of LLMs Across 18 Languages
–arXiv.org Artificial Intelligence
Code-mixing, the practice of switching between languages within a conversation, poses unique challenges for traditional NLP. Existing benchmarks are limited by their narrow language pairs and tasks, failing to adequately assess large language models' (LLMs) code-mixing abilities. Despite the recognized importance of code-mixing for multilingual users, research on LLMs in this context remains sparse. Additionally, current techniques for synthesizing code-mixed data are underdeveloped to generate code-mixing. In response, we introduce CodeMixBench, a comprehensive benchmark covering eight tasks, including three specific to LLMs and five traditional NLP tasks, and 18 languages across seven language families. We also propose a new method for generating large-scale synthetic code-mixed texts by combining word substitution with GPT-4 prompting. Our evaluation reveals consistent underperformance of LLMs on code-mixed datasets involving different language families. Enhancements in training data size, model scale, and few-shot learning could improve their performance. The code and dataset are available at https://github.com/Jeromeyluck/CodeMixBench.
arXiv.org Artificial Intelligence
Sep-9-2025
- Country:
- Africa
- Asia
- China > Hong Kong (0.04)
- India > Maharashtra
- Mumbai (0.04)
- Indonesia > Bali (0.04)
- Middle East
- Jordan (0.04)
- Qatar > Ad-Dawhah
- Doha (0.04)
- Republic of Türkiye > Istanbul Province
- Istanbul (0.04)
- UAE > Abu Dhabi Emirate
- Abu Dhabi (0.04)
- Singapore (0.04)
- Europe
- Bulgaria > Sofia City Province
- Sofia (0.04)
- France > Provence-Alpes-Côte d'Azur
- Bouches-du-Rhône > Marseille (0.04)
- Greece (0.04)
- Italy > Tuscany
- Florence (0.04)
- Middle East > Republic of Türkiye
- Istanbul Province > Istanbul (0.04)
- Monaco (0.04)
- Switzerland > Zürich
- Zürich (0.04)
- Ukraine > Kyiv Oblast
- Kyiv (0.04)
- Bulgaria > Sofia City Province
- North America
- Canada > Ontario
- Toronto (0.04)
- Dominican Republic (0.04)
- United States
- Pennsylvania (0.04)
- Rhode Island (0.04)
- Texas > Travis County
- Austin (0.04)
- Canada > Ontario
- Oceania > Australia
- South America > Chile
- Genre:
- Research Report (1.00)
- Industry:
- Education > Health & Safety
- School Nutrition (0.46)
- Health & Medicine (0.93)
- Education > Health & Safety
- Technology: