A Reproducibility Study on Quantifying Language Similarity: The Impact of Missing Values in the URIEL Knowledge Base

Hasti Toossi, Guo Qing Huai, Jinyu Liu, Eric Khiu, A. Seza Dogruöz, En-Shiun Annie LeearXiv 2024 · DOI

Abstract

The URIEL Knowledge Base and its associated tool, lang2vec, have become foundational resources in multilingual Natural Language Processing (NLP) for quantifying linguistic distance. However, the internal mechanisms for handling missing data and calculating distance metrics remain largely undocumented. This study presents a reproducibility audit of URIEL, revealing that over 31% of represented languages lack typological information entirely. By reverse-engineering the database's distance metrics, we uncover undocumented heuristics that treat missing data as informative signals, potentially leading to misleading similarity scores. We conclude with recommendations for improved data transparency and error handling in linguistic knowledge bases.

Introduction

In multilingual NLP, language similarity metrics are critical for cross-lingual transfer, machine translation, and supporting low-resource languages. The URIEL Knowledge Base aggregates data from diverse sources—including WALS, SSWL, PHOIBLE, Ethnologue, and Glottolog—into high-dimensional vectors. Despite its widespread adoption, URIEL often functions as a "black box." Researchers frequently rely on its pre-computed distance scores without a clear understanding of how the database handles the pervasive issue of missing values. This paper investigates the reproducibility of URIEL’s distance metrics and the integrity of its underlying data.

Methodology

To evaluate the reliability of URIEL, a two-part investigation was conducted:

  1. Reproducibility Audit: The authors attempted to replicate URIEL’s pre-computed distance values using raw feature vectors. This involved testing various combinations of aggregation methods (Union, Average, $k$-Nearest Neighbors), distance metrics (Cosine vs. Regularized Angular distance), and missing value treatments (imputing zeros vs. ones).
  2. Literature Review: An analysis of 198 papers citing URIEL/lang2vec was performed to determine how the community utilizes these metrics in tasks such as speech recognition and zero-shot transfer.

The study encompasses the full set of 4,005 languages in URIEL, with specific focus on the top 200 most spoken languages to assess whether data coverage improves for high-resource languages.

The Data Coverage Crisis

The audit revealed a significant "empty vector" problem. A staggering 31.24% of languages in URIEL contain zero linguistic feature information. While these languages exist as entries in the database, their underlying typological vectors are entirely empty.

Coverage gaps vary significantly across linguistic categories:

  • Syntax: 43.32% of languages have empty syntax vectors.
  • Phonology: 72.76% of languages have empty phonology vectors.
  • Inventory: Phonological inventory data (from PHOIBLE) is the most complete, as it typically provides full IPA charts rather than sparse typological features.

Critically, even among the top 200 most spoken languages, substantial gaps in typological data persist, suggesting that "popularity" does not guarantee data integrity in URIEL.

Reverse-Engineering Undocumented Heuristics

Through iterative testing, the researchers successfully reproduced URIEL’s pre-computed distances with 93-99% accuracy. However, this was only possible by adopting a specific, previously undocumented logic for handling missing values (represented as -- in the database):

  • Global Missingness: If a vector is entirely missing, URIEL treats it as a vector of all 1s.
  • Partial Missingness: If a vector is only partially missing, the missing features are treated as 0s.
  • Metric Selection: The study identified Regularized Angular Distance combined with Union Aggregation as the most likely method used by URIEL.

These arbitrary choices have profound implications. Because missing values are often replaced with zeros, two languages may appear "similar" not because they share linguistic traits, but because they are both missing the same information. This "similarity by omission" can lead researchers to draw false conclusions about language relationships, particularly for low-resource languages where data is most sparse.

Discussion and Recommendations

The findings suggest that URIEL’s current architecture can inadvertently mask data scarcity. To improve the utility of language similarity metrics, the authors propose several shifts in practice:

  1. Explicit Error Handling: Rather than returning a distance score based on imputed values, URIEL should return NaN (Not a Number) when data is missing. This would prevent the propagation of misleading similarity scores in downstream NLP tasks.
  2. Alternative Metrics: There is a need for similarity measurements that do not rely solely on binary typological features. "Conceptual distance" or other embeddings may offer more robust alternatives for under-studied languages.
  3. Community Standards: The NLP community must establish clear guidelines for what constitutes an acceptable level of missing data before a similarity metric is considered valid for research.

Conclusion

While URIEL remains a vital resource, its current handling of missing data poses a risk to the reproducibility of multilingual research. By uncovering the undocumented heuristics used to calculate language distances, this study highlights the need for greater transparency and more rigorous data validation in the tools we use to bridge the gap between the world's languages.

Summary updated

BibTeX
@misc{toossi2024reproducibility,
  author = {Hasti Toossi and Guo Qing Huai and Jinyu Liu and Eric Khiu and A. Seza Dogruöz and En-Shiun Annie Lee},
  title = {{A Reproducibility Study on Quantifying Language Similarity: The Impact of Missing Values in the URIEL Knowledge Base}},
  year = {2024},
  eprint = {2405.11125},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.11125},
}
Figure