LinCE: A Centralized Benchmark for Linguistic Code-switching Evaluation

Gustavo Aguilar, Sudipta Kar, Thamar Solorio

TL;DR

LinCE (Linguistic Code-switching Evaluation) is a new centralized benchmark designed to standardize how we evaluate NLP models on code-switched text—sentences where speakers alternate between two or more languages. By providing a unified platform with ten datasets across four language pairs and four distinct tasks, LinCE aims to move the field beyond fragmented, language-specific research toward generalizable multilingual models.

What Problem Does This Paper Address?

Linguistic code-switching (CS) is a common phenomenon, especially on social media, yet NLP systems often struggle with it. Until now, research in this sub-field has been highly fragmented. Researchers typically evaluate their models on a single language pair (e.g., Spanish-English) or a single task (e.g., Language Identification), making it nearly impossible to know if a specific architecture generalizes well.

Furthermore, the authors identified significant issues with existing code-switching datasets:

  1. Missing Labels: Some official data splits lacked certain classes in the test or development sets entirely.
  2. Distribution Mismatches: The label distributions in training sets often differed wildly from test sets.
  3. Lack of Standardization: There was no "GLUE-like" hub for code-switching, forcing researchers to manually replicate previous methods to compare results.

Methods

The authors' primary contribution is the creation of a centralized benchmark and a robust evaluation framework.

  • Iterative Stratification: To fix the "broken" splits in existing datasets, the authors applied a multi-label stratification technique. They balanced the new splits based on three criteria: Language Identification (LID) labels, task-specific labels (like NER tags), and sentence length. They used KL-divergence to quantitatively prove that their new splits better represent the overall corpus distribution compared to the original ones.
  • Baseline Modeling: They evaluated three popular architectures to set the bar for future research:
  • Bidirectional LSTM: A standard sequence model using randomly initialized word embeddings.
  • ELMo: A model using character-level convolutions and contextualized word representations.
  • Multilingual BERT (mBERT): A Transformer-based model pre-trained on 104 languages.
  • Centralized Platform: They launched an online leaderboard at ritual.uh.edu/lince to allow real-time comparison of state-of-the-art systems.

Datasets

LinCE consolidates ten preexisting corpora covering four tasks and four language pairs:

  • Tasks: Language Identification (LID), Part-of-Speech (POS) tagging, Named Entity Recognition (NER), and Sentiment Analysis (SA).
  • Language Pairs: Spanish-English (SPA-ENG), Hindi-English (HIN-ENG), Nepali-English (NEP-ENG), and Modern Standard Arabic-Egyptian Arabic (MSA-EA).

The complexity of these datasets is quantified using the Code-Mixing Index (CMI), which measures the frequency of language alternation. As shown in the table below, pairs like Nepali-English and Hindi-English often exhibit higher mixing complexity than Spanish-English.

Overview of the LinCE language pairs and tasks

Key Insights and Ideas

  • Semantics are Harder than Syntax: Models performed relatively well on LID and POS tagging (syntactic tasks) but struggled significantly more with NER and Sentiment Analysis (semantic tasks). This suggests that while models can identify which language is being used, they struggle to grasp deep meaning when concepts are split across language boundaries.
  • The Challenge of Language Overlap: The MSA-EA (Arabic) pair proved particularly difficult for Language Identification. Because Modern Standard Arabic and Egyptian Arabic share a massive amount of vocabulary, models (and even human annotators) have a hard time distinguishing between them.
  • Pre-training Wins: Multilingual BERT (mBERT) consistently outperformed other models. The authors attribute this to its massive parameter count and the fact that it was trained on document-level data, providing better context than the sentence-level data used for ELMo's pre-training.

Key Results

The authors established strong baselines across all tasks, with mBERT emerging as the clear winner.

Model Avg Score LID (Acc) POS (Acc) NER (F1) SA (Acc)
BiLSTM 73.20 93.51* 88.32* 51.97* 45.39
ELMo 78.64 92.75* 92.36* 60.22* 49.97
ML-BERT 82.93 93.92* 93.14* 69.04* 60.20
*Average across multiple language pairs for that task.

A notable finding was the performance gap: while ELMo was competitive on LID and POS, mBERT outperformed it by ~9% on NER and a staggering ~18% on Sentiment Analysis.

Limitations and Future Work

While LinCE is a major step forward, the authors acknowledge several areas for growth:

  • Language Diversity: The benchmark currently only covers four language pairs. The authors plan to expand this to include more low-resource languages.
  • Task Variety: The benchmark focuses on core NLP tasks. Future iterations could include more complex downstream applications like Machine Translation or Question Answering in code-switched settings.
  • Monolingual Bias: Current baselines rely on models pre-trained primarily on monolingual data; developing architectures specifically designed for the fluid nature of code-switching remains an open challenge.

Summary updated

BibTeX
@inproceedings{aguilar2020lince,
  author = {Gustavo Aguilar and Sudipta Kar and Thamar Solorio},
  title = {{LinCE: A Centralized Benchmark for Linguistic Code-switching Evaluation}},
  booktitle = {LREC},
  year = {2020},
}
Figure