TL;DR
This paper introduces CommonLID, a new benchmark for language identification (LID) specifically designed for noisy web data and covering 109 languages, many of which are under-served. They demonstrate that existing LID models often overestimate their performance on web data, highlighting the need for more robust evaluation.
What Problem Does This Paper Address?
Language identification (LID) is crucial for building multilingual datasets, but current LID models struggle with the messy, diverse nature of web text, especially for less common languages. This poor performance limits the development of language technologies for a wider range of speakers. Existing evaluation datasets often use cleaner, more formal text, leading to an overestimation of real-world LID accuracy. The paper aims to address this by creating a more representative benchmark and re-evaluating current LID models.
Methods
The researchers developed CommonLID through a community-driven, multi-step process. They sampled web data from Common Crawl and MADLAD-400, then recruited NLP community members as annotators. Annotations were collected via a custom interface, often during hackathons. The data preparation involved line-level labeling, cleaning, and filtering to ensure quality and handle complexities like multiple languages per line. They also conducted a comprehensive evaluation of eight popular LID models on CommonLID and other datasets, analyzing their performance across different domains and language coverages.
Datasets
- CommonLID: A newly introduced, human-annotated LID benchmark for web data, covering 109 languages. It's designed to be more representative of real-world web text.
- Training Data: Samples were drawn from Common Crawl (WET files from CC-MAIN-2024-22 and CC-MAIN-2025-05 crawls) and MADLAD-400 (clean and noisy splits).
- Evaluation Datasets:
- FLORES+ (multilingual machine translation benchmark)
- UDHR-LID (Universal Declaration of Human Rights translations)
- SmolSent (English sentences translated into under-served languages)
- Bible (Bible translations in many languages)
- Social Media (a curated dataset of informal social media text)
Key Insights and Ideas
- Web data is a unique challenge: Existing LID models, trained on cleaner data, often fail to generalize well to the noisy and heterogeneous nature of web text.
- Overestimation of accuracy: Current evaluation practices, using datasets that don't fully represent web data, lead to an overestimation of LID model performance, particularly for under-served languages.
- Community-driven annotation is valuable: Leveraging the NLP community for annotation, with incentives like co-authorship, can lead to high-quality data and foster ethical collaboration.
- Language coverage vs. specialization: There's a trade-off between models that cover many languages and those that specialize in a few. Neither approach is universally superior, and the "best" model depends on the application.
Key Results
- CommonLID proved to be a challenging benchmark, with most tested LID models achieving only in-the-60s F1 scores on average over the languages they cover.
- When evaluated on CommonLID, existing LID models often showed significantly lower performance compared to their scores on cleaner datasets like FLORES+ or Bible.
- GlotLID and CLD2 were identified as strong performers, with GlotLID showing high coverage and good performance, though at the cost of slower inference.
- Large Language Models (LLMs) like GPT-4 and GPT-5, while showing promise, were generally outperformed by specialized LID models like GlotLID, especially for core languages.
Limitations and Future Work
- Data Bias: The sampling method for CommonLID, using existing LID models for pre-annotation, means the dataset might be biased towards languages and genres already recognized by these models.
- Annotation Complexity: Challenges like multiple languages per line and macro/micro language distinctions complicate annotation, even for native speakers.
- Inter-annotator Agreement: Due to the difficulty of finding multiple native speakers for many under-served languages, a full inter-annotator agreement study was not feasible.
- Potential Harms: The use of Common Crawl data means there's a potential for personally identifiable information or other harmful content, though mitigation steps were taken.
- Future Work: The authors hope to collaborate further with native speakers to collect more textual resources for under-served languages and to develop better LID models that work effectively on web data. They also emphasize the need for more diverse, independent evaluation datasets for long-tail languages.
Summary updated