Minimal Pair-Based Evaluation of Code-Switching

Igor Sterner, Simone Teufel
6/2/2025
cs.CL

No official code found. Best implementation: igorsterner/acs (1 star, last commit 2025-07-23).

Abstract

There is a lack of an evaluation methodology that estimates the extent to which large language models (LLMs) use code-switching (CS) in the same way as bilinguals. Existing methods do not have wide language coverage, fail to account for the diverse range of CS phenomena, or do not scale. We propose an intervention based on minimal pairs of CS. Each minimal pair contains one naturally occurring CS sentence and one minimally manipulated variant. We collect up to 1,000 such pairs each for 11 language pairs. Our human experiments show that, for every language pair, bilinguals consistently prefer the naturally occurring CS sentence. Meanwhile our experiments with current LLMs show that the larger the model, the more consistently it assigns higher probability to the naturally occurring CS sentence than to the variant. In accordance with theoretical claims, the largest probability differences arise in those pairs where the manipulated material consisted of closed-class words.

View on arXivView PDF

Code Implementations(1)

igorsterner/acsCommunity64%

Project page for our paper "Minimal Pair-Based Evaluation of Code-Switching"

10Python, Jupyter NotebookMay 30, 20251 years agoNOASSERTION

Similar Papers

Cite this paper

@article{sterner2025minimal,
  title  = {Minimal Pair-Based Evaluation of Code-Switching},
  author = {Igor Sterner and Simone Teufel},
  year   = {2025},
  eprint = {2506.01840},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.01840v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.01840.svg)](https://codeofpaper.com/paper/2506.01840)

Discussion