LINSPECTOR: Multilingual Probing Tasks for Word Representations

Gözde Gül Sahin, Clara Vania, Ilia Kuznetsov, Iryna Gurevych

TL;DR

LINSPECTOR is a new multilingual framework for "probing" word embeddings to uncover the specific linguistic features they capture. By introducing 15 standardized tasks across 24 languages, the authors demonstrate that simple morphological tests can effectively predict a model's performance on complex downstream NLP tasks like parsing and semantic role labeling.

What Problem Does This Paper Address?

In the world of Natural Language Processing (NLP), we have a plethora of word representation models (like word2vec, fastText, and ELMo), but we often treat them as "black boxes." While we know they work, we don't always understand what they've learned about language.

Most existing evaluation methods focus on English, which is a "morphologically poor" outlier. In English, meaning is often derived from word order. However, many other languages are morphologically rich, encoding complex information—like tense, case, or possession—directly into the structure of the word itself.

Examples of case marking in Russian and Turkish, showing how grammatical roles are encoded within word forms.

The authors argue that we need a standardized, multilingual way to peek inside these representations to see if they are capturing these crucial subword cues without having to run expensive, resource-heavy downstream experiments every time.

Methods

The researchers utilize probing tasks (also known as diagnostic classifiers). The idea is simple: take a pre-trained, "frozen" word embedding and train a very simple classifier (a Multi-Layer Perceptron with one hidden layer) to predict a specific linguistic feature. If the classifier succeeds, the information must be present in the embedding.

The paper introduces two types of probing:

  1. Type-Level Probing: Probing words in isolation using dictionary-based data. This is context-independent and avoids biases found in running text (like domain or frequency bias).
  2. Token-Level Probing: Probing words within their sentence context. This is better suited for contextual embeddings like ELMo.

They tested 15 features, including superficial ones (word length), morphosyntactic ones (case, gender, tense, number), and psycholinguistic ones (detecting "pseudowords"—fake words that follow a language's phonological rules).

Datasets

The authors built their probing suite using several key resources:

  • UniMorph 2.0: The primary source for inflection paradigms and morphological features across 24 languages.
  • Wikipedia: Used to extract word frequency lists, ensuring the probing sets reflect actual language use.
  • Wuggy: A tool used to generate the pseudoword datasets.
  • Universal Dependencies (UD): Used for token-level data and downstream evaluation tasks like POS tagging and dependency parsing.
  • XNLI, PropBank, and WikiNER: Standard benchmarks used for extrinsic (downstream) evaluation.
A table showing the diversity of case marking across different languages, highlighting the range covered by the LINSPECTOR suite.

Key Insights and Ideas

  • Morphology Matters: For morphologically rich languages, type-level probing is a powerful indicator of model quality. In languages like Finnish or Turkish, a single word can convey as much information as a whole English phrase.
  • Probing as a Proxy: There is a significant positive correlation between probing task accuracy and downstream performance (especially for SRL and Dependency Parsing). This means researchers can use LINSPECTOR as a "cheap" diagnostic tool during model development.
  • Agglutinative vs. Fusional: The framework reveals that agglutinative languages (like Finnish), which have clear one-to-one mappings between markers and meaning, show stronger correlations between probing and downstream tasks than fusional languages (like German or Russian).
  • Subword Models Win: Models that look at subword information (fastText, BPE-based GloVe, and ELMo) consistently outperform word-level models (word2vec) at capturing morphological nuances.

Key Results

  • D-ELMo (Decontextualized ELMo) emerged as the strongest representation across nearly all probing tasks and languages, likely due to its character-level CNN architecture and high dimensionality (1024).
  • Correlation Findings: In Finnish, almost every probing task (except SameFeat) showed a statistically significant correlation with downstream tasks like POS tagging and SRL.
  • Diagnostic Power: In a case study on Semantic Role Labeling (SRL), the authors showed they could track how a model "learns" features like Case and Tense epoch-by-epoch just by probing its internal layers.

Limitations and Future Work

The authors acknowledge that type-level probing requires removing ambiguous words to ensure fair testing, which might simplify the linguistic reality. Furthermore, their correlation studies were limited by the number of available multilingual embedding models (only five were compared).

Future work could involve expanding the suite to even more languages and developing "deeper" semantic probing tasks that go beyond morphology to capture how models represent complex sentence-level logic.

The LINSPECTOR framework and datasets have been released at: https://github.com/UKPLab/linspector.

Summary updated

BibTeX
@article{sahin2020linspector,
  author = {Gözde Gül Sahin and Clara Vania and Ilia Kuznetsov and Iryna Gurevych},
  title = {{LINSPECTOR: Multilingual Probing Tasks for Word Representations}},
  journal = {Comput. Linguistics},
  year = {2020},
  doi = {10.1162/coli\_a\_00376},
}
Figure