{"id":"2001.08896","title":"Compressing Language Models using Doped Kronecker Products","authors":["Urmish Thakker","Paul N. Whatmough","Zhi-Gang Liu","Matthew Mattina","Jesse Beu"],"categories":["cs.LG","cs.CL","stat.ML"],"primary_category":"cs.LG","first_posted":"2020-01-24","updated":"2020-11-17","url":"https://arxiv.vip/abs/2001.08896","arxiv_url":"https://arxiv.org/abs/2001.08896","pdf_url":"https://arxiv.org/pdf/2001.08896","comment_count":0,"abstract":"Kronecker Products (KP) have been used to compress IoT RNN Applications by 15-38x compression factors, achieving better results than traditional compression methods. However when KP is applied to large Natural Language Processing tasks, it leads to significant accuracy loss (approx 26%). This paper proposes a way to recover accuracy otherwise lost when applying KP to large NLP tasks, by allowing additional degrees of freedom in the KP matrix. More formally, we propose doping, a process of adding an extremely sparse overlay matrix on top of the pre-defined KP structure. We call this compression method doped kronecker product compression. To train these models, we present a new solution to the phenomenon of co-matrix adaption (CMA), which uses a new regularization scheme called co matrix dropout regularization (CMR). We present experimental results that demonstrate compression of a large language model with LSTM layers of size 25 MB by 25x with 1.4% loss in perplexity score. At 25x compression, an equivalent pruned network leads to 7.9% loss in perplexity score, while HMD and LMF lead to 15% and 27% loss in perplexity score respectively.","arxiv_comments":"Link to Workshop (https://research.fb.com/programs/on-device-intelligence-workshop/)","journal_ref":"Presented at On-device Intelligence Workshop at Third Conference on Machine Learning and Systems (MLSys) 2020","doi":null,"license":"http://creativecommons.org/publicdomain/zero/1.0/","versions":5,"discussion_url":"https://arxiv.vip/abs/2001.08896#discussion"}