DynaBERT: Dynamic BERT with Adaptive Width and Depth

By Lu Hou, Zhiqi Huang, Lifeng Shang, Xin Jiang, Qun Liu. 2020

390 citations recorded by the source corpus.

The pre-trained language models like BERT and RoBERTa, though powerful in many natural language processing tasks, are both computational and memory expensive. To alleviate this problem, one approach is to compress them for specific tasks before deployment. However, recent works on BERT compression usually reduce the large BERT model to a fixed smaller size, and can not fully satisfy the requirements of different edge devices with various hardware performances. In this paper, we propose a novel dynamic BERT model (abbreviated as DynaBERT), which can run at adaptive width and depth. The training process of DynaBERT includes first training a width-adaptive BERT and then allows both adaptive width and depth, by distilling knowledge from the full-sized model to small sub-networks. Network rewiring is also used to keep the more important attention heads and neurons shared by more sub-networks. Comprehensive experiments under various efficiency constraints demonstrate that our proposed dynamic BERT (or RoBERTa) at its largest size has comparable performance as BERT (or RoBERTa), while at smaller widths and depths consistently outperforms existing BERT compression methods.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Large Language Models, 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. Mohit Bansal
  2. Jianfeng Gao
  3. Furu Wei
  4. Luke S. Zettlemoyer
  5. Iryna Gurevych
  6. Percy Liang
  7. Yejin Choi
  8. Dacheng Tao

In Computer Vision and Pattern Recognition

  1. Dacheng Tao
  2. Luc Van Gool
  3. Xiaogang Wang
  4. Ming-Hsuan Yang
  5. Bernt Schiele
  6. Trevor Darrell
  7. Jitendra Malik
  8. Jiashi Feng

In Large Language Models

  1. Furu Wei
  2. Li Dong
  3. Zi-Mei Yao
  4. Kurt Keutzer
  5. Minjia Zhang
  6. Qun Liu
  7. Xin Jiang
  8. Shaohan Huang

In Efficiency & Compression

  1. Kurt Keutzer
  2. Zi-Mei Yao
  3. A. Gholami
  4. Minjia Zhang
  5. Sehoon Kim
  6. Yuxiong He
  7. Conglong Li
  8. Xiaoxia Wu

Citations in the corpus