Massively Multilingual Transfer for NER

Afshin Rahimi, Yuan Li, Trevor Cohn

TL;DR

This paper introduces a "massive" approach to cross-lingual Named Entity Recognition (NER), transferring knowledge from 40 source languages to a low-resource target. By treating transfer models like unreliable annotators in a crowdsourcing task, the authors use Bayesian inference to automatically identify and weight the most reliable source languages, significantly outperforming standard ensembling and rivaling the best possible single-source selection.

What Problem Does This Paper Address?

Supervised learning for NLP requires massive amounts of annotated data, which simply doesn't exist for the vast majority of the world's 6,000+ languages. Cross-lingual transfer learning attempts to bridge this gap by using a model trained on a high-resource language (like English) to label a low-resource one.

However, most researchers previously focused on using just one or a few carefully chosen source languages. The authors ask: What happens if we use dozens of source languages at once? While this provides a wealth of information, it also introduces significant noise—a model trained on English might be a terrible "annotator" for a language like Persian or Bulgarian. Simple strategies like "majority voting" fail because the noise from distant languages often drowns out the signal from the few related ones.

Methods

The authors propose two main techniques to handle this "massive" transfer setting:

  1. BEA (Bayesian Ensemble Aggregation): This is an unsupervised (zero-shot) method. Inspired by truth inference in crowdsourcing, it treats each source language model as an unreliable worker. It uses a generative Bayesian graphical model to estimate two things simultaneously: the "true" label for a token and the confusion matrix (reliability) of each source model. The key insight is that while bad models make many diverse mistakes, good models are consistently correct. The model learns to trust the consistent ones without ever seeing a single "gold" label in the target language.
  2. RaRe (Ranking and Retraining): This is a few-shot method for when a tiny amount of data (e.g., 100 sentences) is available. It ranks the source models based on their performance on this small set, distills their knowledge into a new target-language model using a weighted mixture, and finally fine-tunes that model on the 100 sentences to capture language-specific nuances (like character patterns) that transfer models might miss.

Datasets

  • WikiAnn: A large-scale NER corpus. The authors selected a subset of 41 languages across various families and scripts to test their "massive" transfer hypothesis.
  • CoNLL 2002/2003: The standard benchmark for NER, covering English, German, Dutch, and Spanish, used here to compare against prior state-of-the-art methods.

Key Insights and Ideas

  • Script Trumps Family: The authors found that sharing a script (e.g., Cyrillic vs. Latin) is often more important for transfer than being in the same language family. Slavic languages using different alphabets transferred poorly to one another compared to those sharing an alphabet.
  • The Failure of Democracy: In a massive setting, "Majority Vote" (MV) is a poor strategy. Figure 4 in the paper shows a "sawtooth" pattern for MV, where it doesn't improve as you add more source languages. In contrast, the Bayesian BEA model continues to improve as it sees more sources because it learns to ignore the "spammers."
  • Asymmetry in Transfer: Transfer isn't always a two-way street. For example, a Persian model might be great for Arabic, but a German model might actually be better for Persian than an Arabic one.
  • Entity vs. Token Granularity: Aggregating at the token level can lead to "illegal" sequences (like an 'Inside-ORG' tag following an 'Outside' tag). The authors found that performing the Bayesian inference at the entity span level (grouping tokens together) yielded better results.

Key Results

  • Zero-Shot Superiority: On the 41-language WikiAnn task, the unsupervised BEA method achieved an average F1 of 72.8, vastly outperforming the Majority Vote baseline (56.7) and even beating the "Oracle" (the best possible single source language, which averaged 71.6).
  • Few-Shot Gains: With just 100 sentences of supervision, RaRe reached an average F1 of 77.4. This is a massive jump over a standard supervised model trained only on those 100 sentences, which managed only 62.1.
  • Competitive Benchmarking: On the standard CoNLL datasets, these methods proved competitive with or superior to existing state-of-the-art unsupervised transfer methods like BWET.

Limitations and Future Work

  • Black-Box Constraint: The authors assumed a "black-box" setting where they only have access to the outputs of source models, not their internal weights or training data. While this makes the method highly flexible (you could use proprietary APIs as sources), it precludes more integrated multi-task learning.
  • Computational Overhead: Running 40+ models to label a single target language is computationally expensive, though the authors mitigate this by distilling the ensemble into a single, efficient target model (RaRe).
  • Source Selection: While BEA handles noise well, the authors suggest that future work could look at more sophisticated ways to pre-filter source languages before the Bayesian inference step to further improve efficiency and accuracy.

Summary updated

BibTeX
@inproceedings{rahimi2019massively,
  author = {Afshin Rahimi and Yuan Li and Trevor Cohn},
  title = {{Massively Multilingual Transfer for NER}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1015},
}
Figure