Improving Language Identification for Code-Switched Utterances with Integer Linear Programming
Abstract
Automatic identification of code-switched (CS) utterances remains a challenge for language identification (LID) systems, causing such texts to be underrepresented in the training data of Large Language Models. In this paper, we revisit MaskLID, a state-of-the art approach for CS identification, which requires no training and detects arbitrary language combinations. We make three main contributions: (a) we reveal, and address, a major issue of MaskLID: its overreliance on word-level language association scores; (b) we reformulate the underlying optimization algorithm as an Integer Linear Program, enabling us to experiment with a large set of clear and interpretable constraints; (c) each of these improvements vastly improves the baseline system, as we illustrate in experiments involving 10~diverse languages, where we observe a strong boost in performance on CS benchmarks. We release our code and data for reproducibility.
Create a lesson
Metadata
- Comments
- Accepted to Findings of EMNLP 2026
Related papers
IRTIQA: Evolving in English, Evaluated in Urdu -- Does Agent Self-Evolution Transfer from English to Urdu and Code-Switched Input?
Shared title terminologycs.CLAbdullah Hashmat, Danish Javed, Usman Naseem et al.
TurEngMix: A Text Corpus and Benchmark for Turkish-English Code-Mixed Language Identification and Named Entity Recognition
Shared title terminologycs.CLIlayda Dogan, Phuong-Anh Nguyen-Le, Julia Mendelsohn
LimeTree: Linear-Memory Graph Neural Networks over Tree-Graphs for Resource-Efficient Language Modeling and Context Extrapolation
Shared title terminologycs.CLElisabeth Fink
Reinforcement Learning for improving Large Language Models' Catalan text simplification capabilities
Shared title terminologycs.CLArnau Ayguadé Domingo, Stefan Bott, Horacio Saggion
Seeing Through Conflicts: Improving Instruction Hierarchy Alignment in Vision-Language Models
Shared title terminologycs.CLNicholas Sansoterra, Zishuo Zheng, Sachin Kumar
How resampling method can help us: Improving the Delta model
Shared title terminologycs.CLJacques Savoy