Language Embeddings Sometimes Contain Typological Generalizations

Robert Östling, Murathan Kurfali

TL;DR

This paper investigates whether neural language models trained on massive multilingual datasets learn genuine linguistic generalizations or simply memorize superficial patterns. The authors find that while some models show promise, most fail to capture meaningful typological features, highlighting the critical importance of rigorous evaluation to avoid false positives. They release valuable resources to facilitate future research in this area.

What Problem Does This Paper Address?

As natural language processing (NLP) models become increasingly multilingual, a key question arises: do these models truly understand linguistic structure, or are they merely good at identifying languages and mimicking surface-level correlations? Specifically, can neural networks learn typological generalizations – broad patterns about language structure that hold across many languages, similar to those identified by human linguists? This is crucial for building truly robust and generalizable NLP systems, especially for low-resource languages. Previous work has suggested that language embeddings (vector representations of languages) can capture such generalizations, but the authors argue that these findings might be due to flawed evaluation methods that don't adequately control for language similarity.

Methods

The core of the paper involves training various neural models on a massive dataset of Bible translations in 1295 languages. The language representations (embeddings or hidden states) learned by these models are then probed to see if they encode specific typological features.

The authors employ a rigorous linguistically sound cross-validation scheme. This is crucial for avoiding "false positives" where a model appears to have learned a generalization, but has actually just learned that two languages are similar (e.g., from the same family or region) and share a feature. Their method involves:

  • Leave-one-out cross-validation: For each feature, a model is trained on all languages except one, and then tested on that held-out language.
  • Excluding related languages: The training set is carefully constructed to exclude languages that are genealogically related, geographically close, or in known contact situations with the test language.
  • Baselines: They compare their models against lexical baselines (which only capture word similarity) and use shuffled labels to establish a chance-level performance.

They train several types of models, including:

  • Word-level language model (WordLM): Predicts the next word in a multilingual embedding space.
  • Character-based language model (CharLM): Predicts the next character.
  • Multilingual reinflection models (Reinflect-Noun, Reinflect-Verb): Predict one form of a word given another form in its paradigm.
  • Word encoder model: Encodes word forms into the multilingual embedding space.
  • Neural machine translation models (NMTx2eng, NMTeng2x): Standard NMT systems.

Datasets

  • Bible Corpus: A massive dataset of Bible translations in 1295 languages, used for training neural models.
  • Typological Databases:
    • URIEL: A database derived from WALS (World Atlas of Language Structures) and Ethnologue, used as the gold standard for evaluation.
  • Projected Features: Novel quantitative syntactic and morphological features derived through annotation projection from the Bible corpus. These are used for training classifiers and as a complementary evaluation source.
  • ASJP Database: A lexical database used for a lexical similarity baseline.

Key Insights and Ideas

  • Rigorous evaluation is paramount: The paper strongly emphasizes that without careful control for language similarity (genealogy, geography, contact), it's easy to get misleading results suggesting models have learned generalizations when they've only learned superficial correlations.
  • WordLM shows promise for word order: The WordLM model, trained on word embeddings, is the only model that consistently achieves high accuracy in predicting word order features, suggesting it captures some syntactic structure.
  • Most models fail to generalize: Despite training on vast amounts of data, most of the tested models (including previous work) do not show clear evidence of encoding meaningful typological generalizations beyond what can be explained by lexical similarity or chance.
  • Reinflection models capture broad morphological tendencies: The reinflection models can predict general tendencies of prefixing vs. suffixing, but struggle to distinguish specific affix positions for grammatical categories.
  • The "aha moment" is often a false positive: The authors demonstrate how seemingly good results can be explained by models learning correlated features (e.g., predicting word order by learning affix position).

Key Results

  • Word Order: The WordLM model achieved high F1 scores (around 0.8-0.9) for predicting object/verb order and adposition/noun order when using gold-standard labels. This performance is comparable to hand-crafted methods.
  • Morphology: Reinflection models achieved moderate F1 scores (around 0.7-0.8) for predicting prefixing vs. suffixing tendencies.
  • Other Features: For most other typological features investigated (including adjective/noun order, numeral/noun order, and various morphological features), classification accuracy was only slightly better than chance, even for the WordLM model.
  • Previous Work: The authors found that language representations from previous studies often performed poorly under their rigorous evaluation setup, suggesting their findings might have been influenced by less strict validation.
  • Resource Release: The paper introduces several new resources: language representations, multilingual word embeddings, projected features, and software for evaluation.

Limitations and Future Work

  • Limited Scope of Generalizations: The study primarily focuses on features already identified by linguists. The authors acknowledge that models might be learning new typological generalizations that human linguists haven't discovered yet, which would be an interesting area for future research.
  • Model Complexity: The authors suggest that more complex models or different training objectives might be needed to capture a wider range of linguistic features.
  • Data Sparsity: For some features, the evaluation set had too few languages, leading to the exclusion of those features from analysis.
  • Future Work: The authors propose investigating models that predict word embeddings directly, rather than forms, and exploring how to extract encoded lexical information from embeddings. They also suggest further research into whether models can discover novel typological generalizations.

Summary updated

BibTeX
@inproceedings{ostling2023language,
  author = {Robert Östling and Murathan Kurfali},
  title = {{Language Embeddings Sometimes Contain Typological Generalizations}},
  booktitle = {Comput. Linguistics},
  year = {2023},
  url = {https://openreview.net/forum?id=P9wrbYnkbP},
}
Figure