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

Joanna Radoła, Josep Maria Crego, François Yvon
9/4/2026
cs.CL

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{radoa2026improving,
  title  = {Improving Language Identification for Code-Switched Utterances with Integer Linear Programming},
  author = {Joanna Radoła and Josep Maria Crego and François Yvon},
  year   = {2026},
  eprint = {2609.05099},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.05099v1}
}

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/2609.05099.svg)](https://codeofpaper.com/paper/2609.05099)

Discussion