First Align, then Predict: Understanding the Cross-Lingual Ability of Multilingual BERT

Benjamin Muller, Yanai Elazar, Benoît Sagot, Djamé Seddah
1/26/2021
cs.CL

Official code: benjamin-mlr/first-align-then-predict (2 stars, Python, last commit 2022-06-03).

Abstract

Multilingual pretrained language models have demonstrated remarkable zero-shot cross-lingual transfer capabilities. Such transfer emerges by fine-tuning on a task of interest in one language and evaluating on a distinct language, not seen during the fine-tuning.

Show full abstract

Despite promising results, we still lack a proper understanding of the source of this transfer. Using a novel layer ablation technique and analyses of the model's internal representations, we show that multilingual BERT, a popular multilingual language model, can be viewed as the stacking of two sub-networks: a multilingual encoder followed by a task-specific language-agnostic predictor. While the encoder is crucial for cross-lingual transfer and remains mostly unchanged during fine-tuning, the task predictor has little importance on the transfer and can be reinitialized during fine-tuning. We present extensive experiments with three distinct tasks, seventeen typologically diverse languages and multiple domains to support our hypothesis.

View on arXivView PDF

Code Implementations(1)

20Python, ShellJan 24, 20214 years ago

Similar Papers

Cite this paper

@article{muller2021first,
  title  = {First Align, then Predict: Understanding the Cross-Lingual Ability of Multilingual BERT},
  author = {Benjamin Muller and Yanai Elazar and Benoît Sagot and Djamé Seddah},
  year   = {2021},
  eprint = {2101.11109},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2101.11109}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2101.11109.svg)](https://codeofpaper.com/paper/2101.11109)

Discussion