MiniLMv2: Multi-Head Self-Attention Relation Distillation for Compressing Pretrained Transformers

By Wenhui Wang, Hangbo Bao, Shaohan Huang, Li Dong, Furu Wei. Findings, 2020

413 citations recorded by the source corpus.

We generalize deep self-attention distillation in MiniLM (Wang et al., 2020) by only using self-attention relation distillation for task-agnostic compression of pretrained Transformers. In particular, we define multi-head self-attention relations as scaled dot-product between the pairs of query, key, and value vectors within each self-attention module. Then we employ the above relational knowledge to train the student model. Besides its simplicity and unified principle, more favorably, there is no restriction in terms of the number of student's attention heads, while most previous work has to guarantee the same head number between teacher and student. Moreover, the fine-grained self-attention relations tend to fully exploit the interaction knowledge learned by Transformer. In addition, we thoroughly examine the layer selection strategy for teacher models, rather than just relying on the last layer as in MiniLM. We conduct extensive experiments on compressing both monolingual and multilingual pretrained models. Experimental results demonstrate that our models distilled from base-size and large-size teachers (BERT, RoBERTa and XLM-R) outperform the state-of-the-art.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition

View Paper: https://www.semanticscholar.org/paper/b5b006dc558cb7fbd532d67e989173b536e8ac80

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. Furu Wei
  3. Weizhu Chen
  4. Hong-Liu Cao
  5. Pengcheng He
  6. Mohit Bansal
  7. Luke S. Zettlemoyer
  8. Graham Neubig

In Computer Vision and Pattern Recognition

  1. Jianfeng Gao
  2. Weizhu Chen
  3. Furu Wei
  4. Zhe Gan
  5. Luc Van Gool
  6. Pengcheng He
  7. Dacheng Tao
  8. Andrew Zisserman

Citations in the corpus