CLLGOct 13, 2020

BERT-EMD: Many-to-Many Layer Mapping for BERT Compression with Earth Mover's Distance

arXiv:2010.06133v11008 citationsHas Code
Originality Incremental advance
AI Analysis

This addresses the storage and computational cost issues for deploying pre-trained language models in NLP applications, but it is incremental as it builds on existing distillation techniques.

The paper tackles the problem of compressing BERT models for deployment on resource-constrained devices by proposing a distillation method with many-to-many layer mapping and Earth Mover's Distance, achieving competitive performance on the GLUE benchmark.

Pre-trained language models (e.g., BERT) have achieved significant success in various natural language processing (NLP) tasks. However, high storage and computational costs obstruct pre-trained language models to be effectively deployed on resource-constrained devices. In this paper, we propose a novel BERT distillation method based on many-to-many layer mapping, which allows each intermediate student layer to learn from any intermediate teacher layers. In this way, our model can learn from different teacher layers adaptively for various NLP tasks. %motivated by the intuition that different NLP tasks require different levels of linguistic knowledge contained in the intermediate layers of BERT. In addition, we leverage Earth Mover's Distance (EMD) to compute the minimum cumulative cost that must be paid to transform knowledge from teacher network to student network. EMD enables the effective matching for many-to-many layer mapping. %EMD can be applied to network layers with different sizes and effectively measures semantic distance between the teacher network and student network. Furthermore, we propose a cost attention mechanism to learn the layer weights used in EMD automatically, which is supposed to further improve the model's performance and accelerate convergence time. Extensive experiments on GLUE benchmark demonstrate that our model achieves competitive performance compared to strong competitors in terms of both accuracy and model compression.

Code Implementations2 repos
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes