cs.CLSep 4, 2026

Improving Language Identification for Code-Switched Utterances with Integer Linear Programming

Authors: Joanna Radoła, Josep Maria Crego, François Yvon

Organizations: Sorbonne Université, CNRS, ISIR, Paris, France · SYSTRAN by ChapsVision, Paris, France

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.

Figures & tables

Appendix figures & tables8 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Code-Switching Spoken Language Identification as Multi-Label Set Prediction

    Oct 1, 2026Shunsuke Mitsumori, Matthew Wiesner, Shigeo Morishima +1Multi-Label ClassificationLanguage Identification

  2. MixLID: Token-Level Language Identification in Mixed-Language Text

    Oct 12, 2026Seongtae Hong, Youngjoon Jang, Seungyoon Lee +2Language Identification

  3. CS-YODAS: A Mined Dataset of In-the-Wild Code-Switched Speech

    Jun 9, 2026Brian Yan, Qingzheng Wang, Matthew Wiesner +9Code-SwitchingSpeech Processing