TernaryBERT: Distillation-aware Ultra-low Bit BERT

By Wei Zhang, Lu Hou, Yichun Yin, Lifeng Shang, Xiao Chen, Xin Jiang, Qun Liu. 2020

238 citations recorded by the source corpus.

Transformer-based pre-training models like BERT have achieved remarkable performance in many natural language processing tasks.However, these models are both computation and memory expensive, hindering their deployment to resource-constrained devices. In this work, we propose TernaryBERT, which ternarizes the weights in a fine-tuned BERT model. Specifically, we use both approximation-based and loss-aware ternarization methods and empirically investigate the ternarization granularity of different parts of BERT. Moreover, to reduce the accuracy degradation caused by the lower capacity of low bits, we leverage the knowledge distillation technique in the training process. Experiments on the GLUE benchmark and SQuAD show that our proposed TernaryBERT outperforms the other BERT quantization methods, and even achieves comparable performance as the full-precision model while being 14.9x smaller.

Subfields: Electrical and Electronic Engineering, 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 Electrical and Electronic Engineering

  1. Tim Dettmers
  2. Luke S. Zettlemoyer
  3. Kurt Keutzer
  4. A. Gholami
  5. Michael W. Mahoney
  6. Zi-Mei Yao
  7. Zhen Dong
  8. Ping Luo

In Large Language Models

  1. Zhiyuan Liu
  2. Zi-Mei Yao
  3. Kurt Keutzer
  4. Qun Liu
  5. Xin Jiang
  6. Minjia Zhang
  7. Lifeng Shang
  8. Jie Tang

In Efficiency & Compression

  1. Kurt Keutzer
  2. Zi-Mei Yao
  3. A. Gholami
  4. Michael W. Mahoney
  5. Luke S. Zettlemoyer
  6. Dan Alistarh
  7. Sehoon Kim
  8. Tim Dettmers

Citations in the corpus