MaskLID: Code-Switching Language Identification through Iterative Masking
Not on the map. Why?
Abstract (arXiv)
We present MaskLID, a simple, yet effective, code-switching (CS) language identification (LID) method. MaskLID does not require any training and is designed to complement current high-performance sentence-level LIDs. Sentence-level LIDs are classifiers trained on monolingual texts to provide single labels, typically using a softmax layer to turn scores into probabilities. However, in cases where a sentence is composed in both L1 and L2 languages, the LID classifier often only returns the dominant label L1. To address this limitation, MaskLID employs a strategy to mask text features associated with L1, allowing the LID to classify the text as L2 in the next round. This method uses the LID itself to identify the features that require masking and does not rely on any external resource. In this work, we explore the use of MaskLID for two open-source LIDs (GlotLID and OpenLID), that are both based on the FastText architecture. Code and demo are available at https://github.com/cisnlp/MaskLID.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Builds on 15 of its 46 references that are in the map. First posted on arXiv 10 Jun 2024.
Builds on
15 of 46 references.
References · 15
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,040
- 2016Enriching Word Vectors with Subword Informationcited by 1,578
- 2022No Language Left Behind: Scaling Human-Centered Machine Translationcited by 1,290
- 2020LinCE: A Centralized Benchmark for Linguistic Code-switching Evaluationcited by 92
- 2019A Survey of Code-switched Speech and Language Processingcited by 73
- 2023A Survey of Code-switching: Linguistic and Social Perspectives for Language Technologiescited by 59
- 2023An Open Dataset and Model for Language Identificationcited by 49
- 2021ASCEND: A Spontaneous Chinese-English Dataset for Code-switching in Multi-turn Conversationcited by 43
- 2020Mapping Languages: The Corpus of Global Language Usecited by 42
- 2018Automatic Language Identification in Texts: A Surveycited by 40
- 2022AfroLID: A Neural Language Identification Tool for African Languagescited by 38
- 2019Overview for the Second Shared Task on Language Identification in Code-Switched Datacited by 33
3 more
Built on by
Citing papers per year: 2024: 1; 2025: 5; 2026: 4.
10 papers.
- 2025SciReplicate-Bench: Benchmarking LLMs in Agent-driven Algorithmic Reproduction from Research Paperscited by 42
- 2024GlotCC: An Open Broad-Coverage CommonCrawl Corpus and Pipeline for Minority Languagescited by 15
- 2025Beyond Monolingual Assumptions: A Survey of Code-Switched NLP in the Era of Large Language Models across Modalitiescited by 4
- 2025DIVERS-Bench: Evaluating Language Identification Across Domain Shifts and Code-Switchingcited by 3
- 2026Mending the Holes: Mitigating Reward Hacking in Reinforcement Learning for Multilingual Translationcited by 3
- 2025Adapting Language Balance in Code-Switching Speechcited by 2
- 2025Token Masking Improves Transformer-Based Text Classificationcited by 0
- 2026Improving Language Identification for Code-Switched Utterances with Integer Linear Programmingcited by 0
- 2026TurEngMix: A Text Corpus and Benchmark for Turkish-English Code-Mixed Language Identification and Named Entity Recognitioncited by 0
- 2026Does CoT-Pass@k Really Check the CoT? A Multilingual Mathematical Auditcited by 0
- 2026Does CoT-Pass@k Really Check the CoT? A Multilingual Mathematical Audit26 Sep 2026
- 2026TurEngMix: A Text Corpus and Benchmark for Turkish-English Code-Mixed Language Identification and Named Entity Recognition7 Sep 2026
- 2026Improving Language Identification for Code-Switched Utterances with Integer Linear Programming4 Sep 2026
- 2026Mending the Holes: Mitigating Reward Hacking in Reinforcement Learning for Multilingual Translation13 Mar 2026
- 2025Adapting Language Balance in Code-Switching Speech21 Oct 2025
- 2025Beyond Monolingual Assumptions: A Survey of Code-Switched NLP in the Era of Large Language Models across Modalities8 Oct 2025
- 2025DIVERS-Bench: Evaluating Language Identification Across Domain Shifts and Code-Switching22 Sep 2025
- 2025Token Masking Improves Transformer-Based Text Classification16 May 2025
- 2025SciReplicate-Bench: Benchmarking LLMs in Agent-driven Algorithmic Reproduction from Research Papers31 Mar 2025
- 2024GlotCC: An Open Broad-Coverage CommonCrawl Corpus and Pipeline for Minority Languages31 Oct 2024