MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices

By Zhiqing Sun, Hongkun Yu, Xiaodan Song, Renjie Liu, Yiming Yang, Denny Zhou. 2020

1,053 citations recorded by the source corpus.

Natural Language Processing (NLP) has recently achieved great success by using huge pre-trained models with hundreds of millions of parameters. However, these models suffer from heavy model sizes and high latency such that they cannot be deployed to resource-limited mobile devices. In this paper, we propose MobileBERT for compressing and accelerating the popular BERT model. Like the original BERT, MobileBERT is task-agnostic, that is, it can be generically applied to various downstream NLP tasks via simple fine-tuning. Basically, MobileBERT is a thin version of BERT_LARGE, while equipped with bottleneck structures and a carefully designed balance between self-attentions and feed-forward networks. To train MobileBERT, we first train a specially designed teacher model, an inverted-bottleneck incorporated BERT_LARGE model. Then, we conduct knowledge transfer from this teacher to MobileBERT. Empirical studies show that MobileBERT is 4.3x smaller and 5.5x faster than BERT_BASE while achieving competitive results on well-known benchmarks. On the natural language inference tasks of GLUE, MobileBERT achieves a GLUE score of 77.7 (0.6 lower than BERT_BASE), and 62 ms latency on a Pixel 4 phone. On the SQuAD v1.1/v2.0 question answering task, MobileBERT achieves a dev F1 score of 90.0/79.2 (1.5/2.1 higher than BERT_BASE).

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Large Language Models, Natural Language Processing, Efficiency & Compression

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Jianfeng Gao
  2. Luke S. Zettlemoyer
  3. Mohit Bansal
  4. Furu Wei
  5. Percy Liang
  6. Noah A. Smith
  7. Yejin Choi
  8. Zhe Gan

In Computer Vision and Pattern Recognition

  1. Dacheng Tao
  2. Luc Van Gool
  3. Jianfeng Gao
  4. Xiaogang Wang
  5. Jitendra Malik
  6. Trevor Darrell
  7. Cordelia Schmid
  8. Andrew Zisserman

In Large Language Models

  1. Furu Wei
  2. Jianfeng Gao
  3. Luke S. Zettlemoyer
  4. Alexander M. Rush
  5. Yi Tay
  6. Julian McAuley
  7. Ming Zhou
  8. Canwen Xu

In Natural Language Processing

  1. Jianfeng Gao
  2. Mohit Bansal
  3. Graham Neubig
  4. Luke S. Zettlemoyer
  5. Furu Wei
  6. Yejin Choi
  7. Iryna Gurevych
  8. Kyunghyun Cho

In Efficiency & Compression

  1. Kurt Keutzer
  2. Zi-Mei Yao
  3. A. Gholami
  4. Michael W. Mahoney
  5. Sehoon Kim
  6. Minjia Zhang
  7. Dan Alistarh
  8. Yuxiong He

Citations in the corpus