Skip to main content
QUICK REVIEW

[Paper Review] LightMBERT: A Simple Yet Effective Method for Multilingual BERT Distillation

Xiaoqi Jiao, Yichun Yin|arXiv (Cornell University)|Mar 11, 2021
Topic ModelingComputer Science22 references5 citations
TL;DR

LightMBERT proposes a simple yet effective knowledge distillation method to transfer the cross-lingual generalization ability of multilingual BERT (mBERT) to a smaller student model. By initializing the student with mBERT's bottom layers, freezing its shared sub-word embeddings, and performing top-layer distillation on multilingual unsupervised data, LightMBERT achieves performance comparable to mBERT while being significantly more efficient for deployment on resource-limited devices.

ABSTRACT

The multilingual pre-trained language models (e.g, mBERT, XLM and XLM-R) have shown impressive performance on cross-lingual natural language understanding tasks. However, these models are computationally intensive and difficult to be deployed on resource-restricted devices. In this paper, we propose a simple yet effective distillation method (LightMBERT) for transferring the cross-lingual generalization ability of the multilingual BERT to a small student model. The experiment results empirically demonstrate the efficiency and effectiveness of LightMBERT, which is significantly better than the baselines and performs comparable to the teacher mBERT.

Motivation & Objective

  • To address the challenge of deploying large multilingual BERT models on resource-constrained devices due to high latency and memory usage.
  • To develop an efficient knowledge distillation method that preserves mBERT’s cross-lingual generalization ability in a smaller student model.
  • To investigate whether initializing the student with mBERT’s lower layers and freezing its embeddings improves distillation efficiency and performance.
  • To evaluate the effectiveness of top-layer distillation versus uniform distillation across multiple languages in a zero-shot cross-lingual setting.

Proposed method

  • Initialize the student model with the embedding layer and bottom transformer layers of the teacher mBERT to inherit initial knowledge.
  • Freeze the shared sub-word embeddings of the student model during training to preserve multilingual alignment and stabilize learning.
  • Perform knowledge distillation only on the topmost transformer layer of the student model, using attention and hidden state distillation losses.
  • Use mean squared error (MSE) loss to match the attention matrices and hidden states between teacher and student models at the top layer.
  • Train the student model on large-scale unsupervised monolingual corpora in multiple languages to enable cross-lingual transfer.
  • Apply a combined loss function: $\mathcal{L}_{\text{layer}} = \mathcal{L}_{\text{attn}} + \mathcal{L}_{\text{hidn}}$, where $\mathcal{L}_{\text{attn}}$ and $\mathcal{L}_{\text{hidn}}$ are MSE losses for attention and hidden states, respectively.

Experimental results

Research questions

  • RQ1Can initializing a student model with the lower layers of mBERT significantly improve distillation efficiency and performance in multilingual knowledge distillation?
  • RQ2Does freezing the shared sub-word embeddings during distillation enhance cross-lingual generalization and training stability?
  • RQ3Is top-layer distillation more effective than uniform distillation across all layers in a multilingual setting?
  • RQ4Can a distilled student model achieve performance close to the full mBERT teacher model on zero-shot cross-lingual tasks?

Key findings

  • LightMBERT achieves an average XNLI score of 70.3 across 15 languages, outperforming all baselines and closely matching the mBERT teacher model (70.5).
  • Freezing the shared sub-word embeddings improves performance by 0.6% on average, confirming their importance for cross-lingual alignment.
  • Top-layer distillation yields better results than uniform distillation, with a 1.7% average improvement over the uniform baseline.
  • The method significantly outperforms DistilmBERT (65.2 average score) and TinyMBERT (68.2 average score), demonstrating superior distillation efficiency.
  • Even mBERT_drop (pruned mBERT) outperforms DistilmBERT, and LightMBERT further improves upon it by 3.2%, showing effective recovery of lost knowledge.
  • The ablation study confirms that each component—initialization, embedding freezing, and top-layer distillation—contributes meaningfully to the final performance.

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.