The Language of Evidence: Robustness and Bias in Code-Switched RAG

Medha Hira, Joel Mire, Maarten Sap


Abstract
Many people code-switch, mixing multiple languages within a single conversation, text or both in everyday communication and increasingly in interactions with AI systems. While prior work has examined how code-switching affects LLM outputs, its impact on RAG systems remains largely unexplored. We present a systematic study of multilingual retrieval under code-switched queries. First, we introduce a retrieval evaluation framework jointly measuring ranking accuracy, language alignment, and bilingual coverage, revealing language preferences that standard metrics obscure. In particular, the strongest relevance-performing retrievers tend to exhibit an English preference. Second, we propose Language-Targeted Contrastive Training to mitigate this retrieval bias, but find a fundamental trade-off: improving alignment reduces exposure to relevant content across languages. Third, controlled RAG experiments show that generation quality depends on retrieval language, with the preferred evidence language varying across query languages. Together, our findings expose tensions between retrieval accuracy, language coverage, and fairness in multilingual RAG, arguing for evaluation protocols that account for query-language coverage.
Anthology ID:
2026.emnlp-main.1830
Volume:
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Hung-Yi Lee, Sunipa Dev, Jessy Li, Desmond Elliott
Venue:
EMNLP
SIG:
SIGDAT
Publisher:
Association for Computational Linguistics
Note:
Pages:
41664–41685
Language:
URL:
https://aclanthology.org/2026.emnlp-main.1830/
DOI:
Bibkey:
Cite (ACL):
Medha Hira, Joel Mire, and Maarten Sap. 2026. The Language of Evidence: Robustness and Bias in Code-Switched RAG. In Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing, pages 41664–41685, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
The Language of Evidence: Robustness and Bias in Code-Switched RAG (Hira et al., EMNLP 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.emnlp-main.1830.pdf