Skip to main content
QUICK REVIEW

[Paper Review] A Fast, Compact, Accurate Model for Language Identification of Codemixed Text

Yuan Zhang, Jason Riesa|arXiv (Cornell University)|Oct 9, 2018
Natural Language Processing TechniquesComputer Science16 references4 citations
TL;DR

This paper proposes CMX, a fast, compact, and accurate model for fine-grained language identification in codemixed text, using a feed-forward network with a globally constrained decoder to predict language per token across 100 languages. It achieves a 19.5% absolute accuracy gain on codemixed datasets and 800x speedup over prior models, with robustness to informal text via selective grouped dropout and synthetic training data.

ABSTRACT

We address fine-grained multilingual language identification: providing a language code for every token in a sentence, including codemixed text containing multiple languages. Such text is prevalent online, in documents, social media, and message boards. We show that a feed-forward network with a simple globally constrained decoder can accurately and rapidly label both codemixed and monolingual text in 100 languages and 100 language pairs. This model outperforms previously published multilingual approaches in terms of both accuracy and speed, yielding an 800x speed-up and a 19.5% averaged absolute gain on three codemixed datasets. It furthermore outperforms several benchmark systems on monolingual language identification.

Motivation & Objective

  • To address the challenge of fine-grained, token-level language identification in codemixed text, which is prevalent in social media and user-generated content but underexplored in prior models.
  • To develop a model that maintains high accuracy and speed across 100 languages and 100 language pairs, including monolingual and codemixed inputs.
  • To overcome data scarcity for token-level annotations by generating synthetic codemixed examples based on linguistic patterns.
  • To improve robustness to informal text, including misspellings, transliterations, and abbreviations, through a novel feature dropout strategy.
  • To design a globally constrained decoding mechanism that reduces over-prediction of language switches while preserving speed.

Proposed method

  • A feed-forward neural network with character n-gram, script, and lexicon features is used to predict per-token language distributions independently.
  • A globally constrained decoder applies language switch penalties and enforces bilingual constraints across the entire sentence to improve label consistency.
  • Selective, grouped dropout is applied to balance character-level and word-level features, preventing word-level features from overwhelming n-gram features in informal text.
  • Synthetic codemixed training data is generated by mixing monolingual sentences from 100 languages using real-world code-mixing patterns, creating 2 million examples.
  • A new real-world codemixed corpus of 25,000 sentences (330k tokens) is annotated for evaluation, covering English-Spanish, English-Hindi, and English-Indonesian mixes.
  • The model is trained end-to-end and evaluated on three codemixed datasets (GY-Mix, Twitter-Mix, Web-Mix6) and a monolingual corpus (KB-Mono56).

Experimental results

Research questions

  • RQ1Can a single model achieve high accuracy and speed for fine-grained language identification across 100 languages and 100 language pairs, including codemixed and monolingual text?
  • RQ2How effective is a globally constrained decoder in reducing over-prediction of language switches compared to baseline decoding strategies?
  • RQ3To what extent does selective grouped dropout improve robustness to informal text with misspellings and transliterations?
  • RQ4How much does synthetic training data contribute to generalization on unseen language pairs not present in real-annotated data?
  • RQ5Can a compact variant of the model maintain competitive performance with significantly reduced memory usage?

Key findings

  • CMX achieves a 19.5% absolute accuracy gain on three codemixed datasets compared to prior state-of-the-art models, with the largest gains observed on shorter, more ambiguous inputs.
  • On monolingual text, CMX improves accuracy by 1.1% absolute (24% error reduction) over the benchmark, demonstrating strong generalization.
  • The model runs 800x faster than existing token-level language ID systems, with decoding speed of 206k characters per second.
  • The globally constrained decoder reduces the average number of predicted languages per sentence from 1.5 to 1.27, addressing over-prediction while only increasing runtime by 7%.
  • With 50% feature dropout, the model achieves 95.3% accuracy on misspelled tokens, compared to 72.1% without dropout, showing strong robustness to informal text.
  • The compact variant of CMX reduces memory usage from 30M to 0.9M parameters while maintaining competitive performance, enabling deployment in resource-constrained settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.