Finding Universal Grammatical Relations in Multilingual BERT

Ethan A. Chi, John Hewitt, Christopher D. Manning · DOI

TL;DR

This paper investigates whether Multilingual BERT (mBERT) learns a shared, cross-lingual representation of syntactic structure. By using a "structural probe," they demonstrate that mBERT indeed captures universal grammatical relations, with learned syntactic subspaces showing significant overlap across languages, even without explicit supervision on dependency labels.

What Problem Does This Paper Address?

Large multilingual language models like mBERT have shown impressive cross-lingual transfer capabilities, but the underlying reasons remain unclear. Specifically, researchers want to understand if these models develop a shared linguistic representation that transcends individual languages, particularly for grammatical structures like syntax. Previous work has shown that models like BERT can learn syntactic structure in a single language, but extending this to a multilingual setting and understanding how this structure is shared is a key open question. This paper aims to bridge this gap by probing mBERT's internal representations to see if it learns universal syntactic patterns.

Methods

The core of this paper's methodology is the structural probe, an unsupervised technique developed by Hewitt and Manning (2019). This probe works by finding a linear transformation of a model's word representations such that the distance between transformed word vectors approximates the distance between those words in their syntactic dependency parse tree.

Key aspects of their method include:

  • Syntactic Subspace: The linear transformation defines a "syntactic subspace" within the model's larger representation space. This subspace is optimized to capture tree distances, not specific dependency labels.
  • Zero-Shot Transfer: They train probes on one language and evaluate their ability to reconstruct syntax in other languages, testing for cross-lingual transfer.
  • Unsupervised Analysis of Representations: Crucially, they go beyond just measuring probe performance. They analyze the transformed word vectors themselves within the learned syntactic subspace. By visualizing these vectors (using t-SNE), they can observe how mBERT clusters different types of syntactic dependencies.
  • Hold-out and Joint Subspaces: They also train probes on subsets of languages (hold-out) or all languages combined (joint) to investigate the existence of a single, shared cross-lingual syntactic subspace.

Datasets

The paper uses Universal Dependencies v2 (UD) corpora for training and evaluation. They specifically probe mBERT on 11 languages: Arabic, Chinese, Czech, English, Farsi, Finnish, French, German, Indonesian, Latvian, and Spanish. The UD formalism provides a standardized way to represent syntactic dependency structures across languages.

Key Insights and Ideas

  • mBERT Learns Universal Syntax: The most significant insight is that mBERT's syntactic subspaces are not language-specific. They show substantial overlap across languages, suggesting the model learns universal grammatical relations.
  • Syntactic Subspaces are Small but Powerful: While the syntactic subspace is a small part of mBERT's overall representation (dimension 768), it's highly effective at capturing syntactic structure, performing significantly better than baselines.
  • Unsupervised Discovery of Dependency Labels: By visualizing the head-dependent difference vectors in the syntactic subspace, the authors observe clusters that largely align with Universal Dependencies labels, even though the probe was never trained on these labels. This suggests mBERT implicitly learns these distinctions.
  • Cross-Lingual Transfer is Strong: Probes trained on one language can effectively reconstruct syntax in others (zero-shot transfer), and training on multiple languages further improves this capability.
  • Nuanced Linguistic Distinctions: mBERT's learned distinctions sometimes differ from UD, offering a view into the model's "own" linguistic intuitions, which can be more fine-grained or influenced by word order.

Key Results

  • In-Language Performance: Structural probes trained on a single language achieve significantly higher UUAS (Undirected Unlabeled Attachment Score) and DSpr. (Distance Spearman Correlation) compared to baselines, demonstrating their effectiveness in extracting syntax. For example, UUAS improvements over baselines are substantial across all languages.
  • Cross-Lingual Transfer:
    • Direct Transfer: On average, transfer from a best source language achieved a 14-point UUAS improvement over baselines.
  • Hold-out Transfer: Training on all languages except the target language yielded a 16-point UUAS improvement.
  • Joint Transfer: Training on all languages together resulted in a 19-point UUAS improvement.
  • Subspace Similarity: The average principal angle between syntactic subspaces of different languages is relatively small, correlating strongly with cross-lingual transfer performance (Spearman correlation of 0.78 for UUAS).
  • Qualitative Findings: t-SNE visualizations reveal distinct clusters for various dependency types (e.g., nsubj, obj, amod), which largely align with UD labels but also show some unique groupings and splits (e.g., separating prenominal and postnominal adjectives).

Limitations and Future Work

  • Causality: The authors acknowledge that their method shows correlation between representations and syntax, but not necessarily causal influence on the model's decisions. The probe's linear transformation might highlight aspects that are not causally critical for the model.
  • Subword Overlap: It's difficult to definitively disentangle whether cross-lingual transfer is due to shared parameters or shared subword tokens (as suggested by prior work).
  • Qualitative vs. Quantitative: While the visualization of dependency clusters is qualitative, the authors suggest future work could extend this to quantitative agreement with UD.
  • Other Multilingual Models: Future work could explore other multilingual models like XLM and XLM-ROBERTa to see if similar universal syntactic structures emerge.
  • Interpretability of t-SNE: The authors acknowledge the potential for t-SNE to be sensitive to hyperparameters and include multiple visualizations to mitigate this.

Summary updated

BibTeX
@inproceedings{chi2020finding,
  author = {Ethan A. Chi and John Hewitt and Christopher D. Manning},
  title = {{Finding Universal Grammatical Relations in Multilingual BERT}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.493},
}
Figure