Cross-Lingual Ability of Multilingual Masked Language Models: A Study of Language Structure

Yuan Chai, Yaobo Liang, Nan Duan

This paper investigates a fascinating mystery in modern NLP: why do multilingual models like mBERT and XLM-R work so well across different languages, even when they haven't been trained on parallel data? By systematically breaking and rearranging language structures, the authors reveal that the "secret sauce" isn't word order or shared vocabulary, but rather the hierarchical way languages compose meaning.

TL;DR

Multilingual models transfer knowledge across languages by exploiting a universal "compositional" structure—the hierarchical way words group into phrases—rather than relying on specific word orders or shared vocabularies. While scrambling word order has a negligible impact on transfer, destroying the hierarchical tree structure causes performance to collapse.

What Problem Does This Paper Address?

Multilingual pre-trained models have shown an uncanny "zero-shot" ability: you can train them on English tasks, and they suddenly work on Hindi or Turkish without ever seeing a translation. Early theories suggested this was due to shared "anchor words" (like names or numbers) across languages. However, later research showed transfer still happens even when languages share zero vocabulary.

This leaves us with a fundamental question: what is the commonality between languages that these models are actually learning? The authors hypothesize that the answer lies in language structure, which they decompose into three parts:

  1. Constituent Order: The specific sequence of words (e.g., Verb-Object vs. Object-Verb).
  2. Composition: The hierarchical grouping of words into phrases and sentences (the "tree" structure).
  3. Word Co-occurrence: Which words tend to appear together in the same sentence.

Methods

The researchers used a "control variable" approach. They took English (the source) and created several "artificial" versions of it by modifying one structural property at a time while keeping everything else constant.

  • Order Modification: They used WALS (World Atlas of Language Structures) features to flip specific rules. For example, they changed English from "Verb-Object" to "Object-Verb" to see if matching the target language's order improved transfer.
  • Constituent Shuffle: To isolate the importance of hierarchy, they randomly shuffled the order of words within their phrase groups. This destroys the global word order but preserves the hierarchical "composition" (the tree structure).
  • Word Shuffle: They randomly shuffled all words in a sentence, destroying both order and composition, leaving only word co-occurrence information.
  • Ablation of Composition: They progressively removed "nodes" from the grammatical tree to see how much hierarchy is needed for transfer to succeed.
Figure 1: Example of two sentences in different lan- guages, which are different in constituent order, but are very similar in constituent tree. Note that we simplify the constituent tree for better understanding.

Datasets

  • Pre-training: The models were pre-trained on the entire Wikipedia corpus for each language.
  • Evaluation: The authors tested on two major benchmarks:
  • XNLI: A natural language inference task (determining if one sentence entails another).
  • Tatoeba: A sentence retrieval task (finding the translation of a sentence in a large pool).
  • Target Languages: Six diverse languages were used for testing: Spanish, Russian, Hindi, Turkish, Thai, and Vietnamese.

Key Insights and Ideas

  • Hierarchy is the Bridge: The most striking finding is that even when word order is completely scrambled (Constituent Shuffle), the model still transfers knowledge effectively. This suggests that the "unordered tree" of how concepts combine is a universal feature that models use to bridge languages.
  • Order is a Minor Detail: We often think of word order as a defining feature of a language. However, the authors found that manually aligning the source language's order to the target language only improved performance by about 1%.
  • Composition is Essential: When the hierarchical structure is removed (Word Shuffle), cross-lingual transfer performance drops to near-random levels. While the model can still learn some monolingual patterns from a "bag of words," it cannot transfer that knowledge to another language.
Figure 3: Example of constituent shuffle by disordering children of each intermediate node in constituent tree.

Key Results

  • Order vs. Transfer: Modifying constituent order (e.g., flipping Adjective-Noun order) resulted in very limited changes, typically within 1% on XNLI.
  • The Power of Trees: In the "Constituent Shuffle" experiment, where order was destroyed but hierarchy was kept, the model only lost about 2-3% in performance on XNLI.
  • The Collapse: In the "Word Shuffle" experiment (no hierarchy), performance on the target language plummeted from ~70-78% down to ~35-39% (random guess is 33.33%).
  • Robustness: The authors found that even retaining just 25% of the compositional structure allowed for significantly better-than-random transfer, proving that models are highly efficient at picking up on these hierarchical cues.

Limitations and Future Work

The study primarily focuses on Masked Language Models (MLMs) and classification/retrieval tasks. The authors acknowledge that the importance of word order might be much higher for generative tasks (like machine translation), where the model must produce a correctly ordered sequence.

Future work could explore how to explicitly bake this "compositional" awareness into models to make them even more efficient at learning low-resource languages where structural data is scarce.

Summary updated

BibTeX
@inproceedings{chai2022cross,
  author = {Yuan Chai and Yaobo Liang and Nan Duan},
  title = {{Cross-Lingual Ability of Multilingual Masked Language Models: A Study of Language Structure}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  url = {https://openreview.net/forum?id=YakKoCze_8},
}
Figure