Load What You Need: Smaller Versions of Multilingual BERT

Amine Abdaoui, Camille Pradel, Grégoire Sigel
10/12/2020
95 citations
cs.CLcs.AIcs.LG
transformer-attention

Official code: Geotrend-research/smaller-transformers (110 stars, Jupyter Notebook, Apache-2.0, last commit 2022-05-20).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Load What You Need: Smaller Multilingual Transformers for Pytorch and TensorFlow 2.0.

11013Jupyter Notebook, PythonOct 8, 20204 years agoApache-2.0
nlptransformers

Similar Papers

Cite this paper

@article{abdaoui2020load,
  title  = {Load What You Need: Smaller Versions of Multilingual BERT},
  author = {Amine Abdaoui and Camille Pradel and Grégoire Sigel},
  year   = {2020},
  eprint = {2010.05609},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.05609}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2010.05609.svg)](https://codeofpaper.com/paper/2010.05609)

Discussion