DICT-MLM: Improved Multilingual Pre-Training using Bilingual Dictionaries

Aditi Chaudhary, Karthik Raman, Krishna Srinivasan, Jiecao ChenarXiv 2020

Abstract

Multilingual pre-trained models like mBERT often struggle with zero-shot cross-lingual transfer because their training objective, Masked Language Modeling (MLM), encourages language-specific representations. This paper introduces DICT-MLM, a novel pre-training method that leverages bilingual dictionaries to force models to learn language-agnostic semantic spaces. By training the model to predict cross-lingual synonyms for masked tokens, DICT-MLM achieves significant improvements across various benchmarks, including a 20%+ gain in semantic sentence retrieval and enhanced performance in named entity recognition and natural language inference.

Introduction

Current state-of-the-art multilingual models typically rely on standard MLM, where a model predicts a masked word based on its monolingual context. This approach inherently ties internal representations to the input language; predicting a Spanish word in an English sentence is penalized, even if the meaning is identical. Consequently, "zero-shot" transfer—applying a model trained on one language to another—is hindered because the model fails to align semantically equivalent words across languages. DICT-MLM addresses this by modifying the pre-training objective using bilingual dictionaries (e.g., the MUSE dataset).

Methods

DICT-MLM tweaks the pre-training objective to encourage cross-lingual alignment through two primary mechanisms:

Cross-Lingual Synonym Prediction

During pre-training on monolingual Wikipedia corpora, a portion of masked words are assigned target labels from a different language. For instance, if "life" is masked in an English sentence, the model might be tasked with predicting "vida" (Spanish) or "ζωή" (Greek) based on dictionary mappings.

Architectural Enhancements

To support this cross-lingual task, the authors introduced several modifications:

  • Language Embeddings: Input tokens are augmented with embeddings indicating their source language.
  • Conditioning Dense Layer: A specialized layer before the final softmax concatenates the hidden state with a target language embedding. This allows the model to map a language-agnostic semantic representation to a specific target vocabulary.
  • Whole-Word Masking (WWM): Masking entire words ensures the task focuses on semantic meaning rather than sub-word fragments.
The DICT-MLM architecture incorporates language embeddings and a conditioning dense layer to facilitate cross-lingual synonym prediction.

Evaluation and Results

The model was pre-trained on 104 languages and evaluated on the XTREME benchmark. DICT-MLM consistently outperformed mBERT baselines across the board:

  • TATOEBA (Retrieval): Observed a 20%+ improvement in accuracy, indicating much stronger semantic alignment across languages.
  • NER: Improved by +2.4 F1 points (averaged across languages).
  • POS Tagging: Improved by +3.7 accuracy points.

Language Agnosticism in Deep Layers

A key insight of the paper is that standard mBERT performance often drops in deeper layers as they become specialized to the input language. DICT-MLM maintains high accuracy across these layers, suggesting it successfully decouples "meaning" from "language."

Comparison of accuracy across Transformer layers shows that DICT-MLM variants maintain higher performance in deeper layers than standard mBERT.

Discussion and Limitations

The success of DICT-MLM highlights that bilingual dictionaries provide a "cheap" yet effective form of supervision compared to expensive parallel corpora. Furthermore, the model exhibited a "halo effect," where even languages not present in the dictionaries showed performance gains due to the overall improvement in the model's global embedding space.

However, limitations remain. The use of context-free dictionaries can lead to morphological mismatches (e.g., predicting singular instead of plural) or incorrect word senses. Future work may involve refining lexicons for better grammatical matching or utilizing multilingual word embeddings for richer supervision.

Conclusion

DICT-MLM demonstrates that explicitly training for cross-lingual synonymy significantly enhances the zero-shot capabilities of multilingual models. By breaking the language-specific constraints of standard MLM, it paves the way for more robust and truly language-agnostic AI systems.

Summary updated

BibTeX
@misc{chaudhary2020dict,
  author = {Aditi Chaudhary and Karthik Raman and Krishna Srinivasan and Jiecao Chen},
  title = {{DICT-MLM: Improved Multilingual Pre-Training using Bilingual Dictionaries}},
  year = {2020},
  eprint = {2010.12566},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.12566},
}
Figure