LRC-BERT: Latent-representation Contrastive Knowledge Distillation for Natural Language Understanding

By Shaojun Zhou, Qihong Yang, Junjie Tang, Guiquan Liu, Kaikui Liu, Xiaolong Li. 2020

69 citations recorded by the source corpus.

The pre-training models such as BERT have achieved great results in various natural language processing problems. However, a large number of parameters need significant amounts of memory and the consumption of inference time, which makes it difficult to deploy them on edge devices. In this work, we propose a knowledge distillation method LRC-BERT based on contrastive learning to fit the output of the intermediate layer from the angular distance aspect, which is not considered by the existing distillation methods. Furthermore, we introduce a gradient perturbation-based training architecture in the training phase to increase the robustness of LRC-BERT, which is the first attempt in knowledge distillation. Additionally, in order to better capture the distribution characteristics of the intermediate layer, we design a two-stage training method for the total distillation loss. Finally, by verifying 8 datasets on the General Language Understanding Evaluation (GLUE) benchmark, the performance of the proposed LRC-BERT exceeds the existing state-of-the-art methods, which proves the effectiveness of our method.

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. Dacheng Tao
  2. Jianping Gou
  3. S. Maybank
  4. Baosheng Yu
  5. Gabriella Csurka
  6. Jing Zhang
  7. Charu C. Aggarwal
  8. Dan Alistarh

In Computer Vision and Pattern Recognition

  1. Dacheng Tao
  2. Jianping Gou
  3. S. Maybank
  4. Baosheng Yu
  5. Luc Van Gool
  6. Trevor Darrell
  7. Xiaogang Wang
  8. Ming-Hsuan Yang

Citations in the corpus