Improving Informally Romanized Language Identification

Adrian Benton, Alexander Gutkin, Christo Kirov, Brian Roark

TL;DR

This paper tackles the challenge of identifying languages written in the Latin script but originating from non-Latin scripts (informal romanization), a common but difficult scenario for language identification (LID) systems. They achieve state-of-the-art results by improving synthetic training data generation, specifically by introducing natural spelling variations, which significantly boosts LID accuracy, even for simpler models.

What Problem Does This Paper Address?

Web crawls are a rich source of multilingual data, but aggressive filtering based on language identification (LID) confidence often removes text from less common or ambiguously written languages. Informal romanization, where languages with non-Latin native scripts are written using the Latin script (e.g., Hindi, Urdu), is a prime example of such text. This informal writing leads to high spelling variability, making it difficult to distinguish between languages that are otherwise easily identifiable. Existing LID systems struggle with this type of data, and current datasets often lack sufficient examples. This paper aims to improve LID performance specifically for this challenging domain of informally romanized text.

Methods

The core of this work lies in improving the synthesis of training data for LID models. Instead of relying solely on existing, often sparse, naturally occurring romanized text, the authors focus on generating synthetic data that better mimics real-world informal writing.

  • Synthetic Data Generation: They leverage transliteration models (specifically, pair n-gram models trained on lexicons) to convert native script text into romanized text.
  • Introducing Spelling Variation: Crucially, they move beyond simply using the "best" transliteration for each word. Instead, they sample from multiple possible transliterations (the "k-best" outputs) to introduce natural spelling variations. This is akin to simulating the diverse ways people might write the same word informally.
  • Data Augmentation: They also explore combining independently synthesized datasets and augmenting the training data with multiple copies of sampled romanizations.
  • Harvested Natural Examples: The authors also incorporate naturally occurring, albeit sparse, romanized text from datasets like MADLAD-400 and GlotCC as a form of distant supervision.
  • Classifiers: They evaluate two types of LID classifiers: fastText linear models (lightweight and efficient) and pretrained transformer-based mT5 models (more expressive).

Datasets

  • Bhasha-Abhijnaanam (B-A) Benchmark: This is the primary dataset used for evaluation. It provides native script training data and a baseline synthetic romanized training set for 20 Indic languages. The B-A test set consists of human-romanized text.
  • Dakshina Dataset: Used for training transliteration models and as a source for human-romanized development data. It includes single-word romanization lexicons, native script Wikipedia text, and human-romanized full sentences.
  • Aksharantar Dataset: Also used for training transliteration models. It contains mined single-word native/Latin script pairs in romanization lexicons for 21 South Asian languages.
  • MADLAD-400: A filtered subset of Common Crawl used as a source of harvested natural romanized text.
  • GlotCC: A corpus of web documents identified by the GlotLID model, also used as a source of harvested natural romanized text.

Key Insights and Ideas

  • Spelling Variation is Key: The most significant insight is that introducing natural spelling variations into synthetic training data is far more impactful than simply using the "best" transliteration or relying on higher-capacity models. This highlights that the diversity of informal writing is what LID models need to learn.
  • Lightweight Models Shine: Surprisingly, the improvements from better synthetic data are largely realized by simple linear models like fastText. This suggests that the problem is less about model complexity and more about the quality and representativeness of the training data.
  • Harvested Data is Useful but Sparse: While naturally occurring text is valuable for validation and can boost performance, its scarcity for many languages makes it less of a primary solution compared to improved synthetic data generation.
  • Label Quality Matters: The performance on harvested data is highly sensitive to label quality, with noisy data potentially being harmful.

Key Results

  • State-of-the-Art Performance: The best system achieved an F1 score of 88.2% on the B-A test set, a significant improvement over the previously reported 74.7% (using a pretrained neural model).
  • Synthetic Data Dominance: Training solely on synthetic data with spelling variations (using a fastText linear classifier) achieved an F1 of 85.4%, outperforming previous neural models.
  • Significant Error Reduction: The best system reduced the previously reported error rate by over 60%.
  • Specific Language Improvements: Languages that were initially poorly classified, like Hindi and Urdu, saw remarkable improvements of over 17.9% absolute F1 score.
  • Sampling vs. 1-Best: Sampling from multiple transliterations (k-best) significantly outperformed using only the 1-best transliteration, especially for the fastText models.

Limitations and Future Work

  • Limited Language Scope: The current work focuses on a specific set of Indic languages, primarily from Indo-Aryan, Dravidian, and Tibeto-Burman families. Extending these approaches to other language families and scripts (e.g., Perso-Arabic, Devanagari) is a key future direction.
  • Focus on Dedicated LID Systems: The study concentrates on lightweight, dedicated LID systems and does not examine the performance of large commercial language models like ChatGPT or Gemini.
  • Scarcity of Harvested Data: The sparsity of naturally occurring, high-quality romanized text for many languages remains a challenge. Identifying and incorporating more such data is a promising avenue.
  • Feature Set Analysis: Further analysis of feature sets for LID models could lead to additional improvements.
  • Beyond South Asia: Investigating informal romanization in other regions (e.g., Arabic) is also suggested.

Summary updated

BibTeX
@inproceedings{benton2025improving,
  author = {Adrian Benton and Alexander Gutkin and Christo Kirov and Brian Roark},
  title = {{Improving Informally Romanized Language Identification}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
}
Figure