[Paper Review] Load What You Need: Smaller Versions of Multilingual BERT
This paper proposes smaller, more efficient versions of multilingual BERT by reducing the number of languages supported, focusing on the embeddings layer where most parameters reside. By training models on targeted language subsets, the authors achieve up to 45% parameter reduction while maintaining comparable XNLI performance, outperforming distilled models like DistilM-BERT, which saw 1.7%–6% accuracy drops.
Pre-trained Transformer-based models are achieving state-of-the-art results on a variety of Natural Language Processing data sets. However, the size of these models is often a drawback for their deployment in real production applications. In the case of multilingual models, most of the parameters are located in the embeddings layer. Therefore, reducing the vocabulary size should have an important impact on the total number of parameters. In this paper, we propose to generate smaller models that handle fewer number of languages according to the targeted corpora. We present an evaluation of smaller versions of multilingual BERT on the XNLI data set, but we believe that this method may be applied to other multilingual transformers. The obtained results confirm that we can generate smaller models that keep comparable results, while reducing up to 45% of the total number of parameters. We compared our models with DistilmBERT (a distilled version of multilingual BERT) and showed that unlike language reduction, distillation induced a 1.7% to 6% drop in the overall accuracy on the XNLI data set. The presented models and code are publicly available.
Motivation & Objective
- To address the high computational cost of large multilingual BERT models in real-world deployment.
- To investigate whether reducing the number of supported languages could significantly reduce model size without sacrificing performance.
- To develop smaller, efficient multilingual BERT variants tailored to specific language needs.
- To compare language reduction against knowledge distillation as a model compression strategy.
- To provide publicly available, smaller multilingual BERT models optimized for targeted language corpora.
Proposed method
- The authors train smaller multilingual BERT models by selecting only the languages relevant to a given target corpus, reducing the vocabulary size.
- They focus on the embeddings layer, which contains the majority of parameters in multilingual BERT, as the primary target for compression.
- The models are fine-tuned on the XNLI benchmark to evaluate performance on natural language inference across languages.
- They compare the performance of language-reduced models against DistilM-BERT, a distilled version of multilingual BERT.
- The training and evaluation are conducted using standard BERT fine-tuning protocols on the XNLI dataset.
- The resulting models are released publicly to support research and deployment in low-resource settings.
Experimental results
Research questions
- RQ1Can reducing the number of languages in multilingual BERT significantly reduce model size while preserving performance?
- RQ2How does language reduction compare to knowledge distillation in terms of accuracy and parameter efficiency?
- RQ3To what extent can model size be reduced by targeting only the relevant languages for a given application?
- RQ4Does the performance of smaller, language-reduced models remain competitive with distilled models like DistilM-BERT?
- RQ5Can smaller, task-specific multilingual BERT models be effectively trained and deployed in production environments?
Key findings
- The proposed language-reduced models achieved up to a 45% reduction in total number of parameters compared to the full multilingual BERT.
- The language-reduced models maintained comparable performance to the full multilingual BERT on the XNLI benchmark, with minimal accuracy drop.
- In contrast to distillation, language reduction did not cause a significant drop in accuracy, while DistilM-BERT showed a 1.7% to 6% decrease in overall accuracy.
- The method proved effective across multiple language subsets, demonstrating that model size can be reduced without sacrificing performance when tailored to specific language needs.
- The authors confirmed that the embeddings layer is the primary source of parameter bloat in multilingual BERT, making language reduction a highly effective compression strategy.
- The released models are publicly available, enabling researchers and practitioners to deploy smaller, efficient multilingual models for targeted applications.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.