AdaBERT: Task-Adaptive BERT Compression with Differentiable Neural Architecture Search

By Daoyuan Chen, Yaliang Li, Minghui Qiu, Zhen Wang, Bofang Li, Bolin Ding, Hongbo Deng, Jun Huang, Wei Lin, Jingren Zhou. 2020

112 citations recorded by the source corpus.

Large pre-trained language models such as BERT have shown their effectiveness in various natural language processing tasks. However, the huge parameter size makes them difficult to be deployed in real-time applications that require quick inference with limited resources. Existing methods compress BERT into small models while such compression is task-independent, i.e., the same compressed BERT for all different downstream tasks. Motivated by the necessity and benefits of task-oriented BERT compression, we propose a novel compression method, AdaBERT, that leverages differentiable Neural Architecture Search to automatically compress BERT into task-adaptive small models for specific tasks. We incorporate a task-oriented knowledge distillation loss to provide search hints and an efficiency-aware loss as search constraints, which enables a good trade-off between efficiency and effectiveness for task-adaptive BERT compression. We evaluate AdaBERT on several NLP tasks, and the results demonstrate that those task-adaptive compressed models are 12.7x to 29.3x faster than BERT in inference time and 11.5x to 17.0x smaller in terms of parameter size, while comparable performance is maintained.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition

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. Xu Tan
  2. Tao Qin
  3. Tie-Yan Liu
  4. Sheng Zhao
  5. Kurt Keutzer
  6. Michael W. Mahoney
  7. A. Gholami
  8. Enhong Chen

In Computer Vision and Pattern Recognition

  1. Kurt Keutzer
  2. Tao Qin
  3. Tie-Yan Liu
  4. Michael W. Mahoney
  5. A. Gholami
  6. Xu Tan
  7. Jitendra Malik
  8. Luc Van Gool

Citations in the corpus