Weight Squeezing: Reparameterization for Knowledge Transfer and Model Compression

Artem Chumachenko,Daniil Gavrilov,Nikita Balagansky,Pavel Kalaidin
DOI: https://doi.org/10.48550/arXiv.2010.06993
2021-08-30
Abstract:In this work, we present a novel approach for simultaneous knowledge transfer and model compression called Weight Squeezing. With this method, we perform knowledge transfer from a teacher model by learning the mapping from its weights to smaller student model weights. We applied Weight Squeezing to a pre-trained text classification model based on BERT-Medium model and compared our method to various other knowledge transfer and model compression methods on GLUE multitask benchmark. We observed that our approach produces better results while being significantly faster than other methods for training student models. We also proposed a variant of Weight Squeezing called Gated Weight Squeezing, for which we combined fine-tuning of BERT-Medium model and learning mapping from BERT-Base weights. We showed that fine-tuning with Gated Weight Squeezing outperforms plain fine-tuning of BERT-Medium model as well as other concurrent SoTA approaches while much being easier to implement.
Machine Learning,Computation and Language
What problem does this paper attempt to address?