MiniLMv2: Multi-Head Self-Attention Relation Distillation for Compressing Pretrained Transformers
AI-generated Key Points
⚠The license of the paper does not allow us to build upon its content and the key points are generated using the paper metadata rather than the full article.
- MiniLMv2 is a method for compressing pretrained Transformers through self-attention relation distillation.
- It generalizes the deep self-attention distillation technique used in MiniLM and focuses on distilling only the self-attention relations.
- Multi-head self-attention relations are defined as scaled dot-products between query, key, and value vectors within each self-attention module.
- MiniLMv2 allows for more flexibility by not restricting the number of attention heads in the student model.
- The fine-grained self-attention relations effectively utilize the interaction knowledge learned by Transformer models.
- Layer selection strategies for teacher models are explored beyond relying solely on the last layer as in MiniLM.
- Experimental results show that models distilled using MiniLMv2 outperform state-of-the-art methods when using base-size and large-size teachers like BERT and RoBERTa.
- MiniLMv2 provides an effective approach for compressing pretrained Transformers by distilling self-attention relations in natural language processing tasks.
Authors: Wenhui Wang, Hangbo Bao, Shaohan Huang, Li Dong, Furu Wei
Abstract: 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. Experimental results demonstrate that our models distilled from base-size and large-size teachers (BERT, and RoBERTa) outperform the state of the art.
Ask questions about this paper to our AI assistant
You can also chat with multiple papers at once here.
⚠The license of the paper does not allow us to build upon its content and the AI assistant only knows about the paper metadata rather than the full article.
Assess the quality of the AI-generated content by voting
Score: 0
Why do we need votes?
Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.
The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.
⚠The license of this specific paper does not allow us to build upon its content and the summarizing tools will be run using the paper metadata rather than the full article. However, it still does a good job, and you can also try our tools on papers with more open licenses.
Similar papers summarized with our AI tools
Navigate through even more similar papers through a
tree representationLook for similar papers (in beta version)
By clicking on the button above, our algorithm will scan all papers in our database to find the closest based on the contents of the full papers and not just on metadata. Please note that it only works for papers that we have generated summaries for and you can rerun it from time to time to get a more accurate result while our database grows.
Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.