Skip to main content
QUICK REVIEW

[Paper Review] Multilingual BERT Post-Pretraining Alignment

Lin Pan, Chung-Wei Hang|arXiv (Cornell University)|Oct 23, 2020
Topic ModelingComputer Science29 references5 citations
TL;DR

This paper proposes a post-pretraining alignment (PPA) method to enhance multilingual BERT's cross-lingual transferability by jointly applying self-supervised word-level alignment via a modified Translation Language Modeling (TLM) objective and sentence-level alignment using contrastive learning with MoCo. The method improves zero-shot performance on XNLI by 4.7% over mBERT and outperforms XLM-R Base with 57% fewer parameters, while using less than 18% of XLM's parallel data.

ABSTRACT

We propose a simple method to align multilingual contextual embeddings as a post-pretraining step for improved zero-shot cross-lingual transferability of the pretrained models. Using parallel data, our method aligns embeddings on the word level through the recently proposed Translation Language Modeling objective as well as on the sentence level via contrastive learning and random input shuffling. We also perform sentence-level code-switching with English when finetuning on downstream tasks. On XNLI, our best model (initialized from mBERT) improves over mBERT by 4.7% in the zero-shot setting and achieves comparable result to XLM for translate-train while using less than 18% of the same parallel data and 31% less model parameters. On MLQA, our model outperforms XLM-R_Base that has 57% more parameters than ours.

Motivation & Objective

  • To improve cross-lingual transferability of mBERT without retraining from scratch.
  • To address limitations of post-hoc alignment methods that rely on noisy word-alignment tools like FastAlign.
  • To develop a self-supervised, data-efficient alignment method using minimal parallel data.
  • To enhance performance on zero-shot and translate-train settings for multilingual NLP tasks.
  • To explore code-switching during fine-tuning as a form of alignment and data augmentation.

Proposed method

  • The method uses a modified TLM objective for word-level alignment, where source and target sentences are concatenated without resetting token positions or using language embeddings.
  • Sentence-level alignment is achieved via MoCo-based contrastive learning on [CLS] tokens, using a momentum encoder and a queue of negative samples.
  • The model is trained in a multi-task fashion with both TLM and contrastive learning objectives on parallel sentence pairs.
  • During fine-tuning on NLI and QA tasks, sentence-level code-switching between English and target languages is applied to further align representations.
  • The approach avoids dependency on pre-trained word alignment tools, reducing error propagation from noisy alignments.
  • The method is applied as a post-pretraining step to mBERT, preserving its original initialization while refining cross-lingual alignment.

Experimental results

Research questions

  • RQ1Can self-supervised word-level and sentence-level alignment improve mBERT’s zero-shot cross-lingual transfer performance?
  • RQ2Does using minimal parallel data with contrastive learning and modified TLM outperform existing post-hoc alignment methods?
  • RQ3Can code-switching during fine-tuning further enhance alignment and model performance?
  • RQ4How does the proposed method compare to XLM and XLM-R in terms of performance and resource efficiency?
  • RQ5Does the method maintain or improve performance when using significantly fewer parameters and less parallel data than state-of-the-art models?

Key findings

  • On the XNLI zero-shot benchmark, the proposed model improves mBERT’s performance by 4.7%.
  • The model achieves comparable performance to XLM on the translate-train setting while using less than 18% of XLM’s parallel data and 31% fewer parameters.
  • On MLQA, the model outperforms XLM-R Base, which has 57% more parameters than the proposed model.
  • The ablation study confirms that both word-level and sentence-level alignment components contribute significantly to performance gains.
  • The use of English-target language code-switching during fine-tuning provides additional alignment signals and improves downstream performance.
  • The method demonstrates strong efficiency, achieving state-of-the-art results with minimal parallel data and reduced model size.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.