paper-with-me

Papers

Compressing Language Models using Doped Kronecker Products

2020-01-24 · Urmish Thakker, Paul N. Whatmough, Zhi-Gang Liu, Matthew Mattina, Jesse Beu

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.

📄 PDF Abstract BibTeX arXiv:2001.08896

Code (0)

등록된 구현이 없습니다.

Tasks

Language ModelingLanguage ModellingLarge Language Model

Methods 이 논문이 사용한 방법론

KP 설명 없음
Sigmoid Activation 설명 없음
Tanh Activation 설명 없음
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
LSTM An LSTM is a type of recurrent neural network that addresses the vanishing gradient problem in vanilla…

Similar Papers 제목 키워드 기반

Doping: A technique for efficient compression of LSTM models using sparse structured additive matrices

2021-02-14 · Urmish Thakker, Paul N. Whatmough, ZhiGang Liu, Matthew Mattina 외

Structured matrices, such as those derived from Kronecker products (KP), are effective at compressing neural networks, but can lead to unacceptable accuracy loss when applied to large models. In this paper, we propose th…

Krony-PT: GPT2 compressed with Kronecker Products

2024-12-16 · M. Ayoub Ben Ayad, Jelena Mitrovic, Michael Granitzer

We introduce Krony-PT, a compression technique of GPT2 \citep{radford2019language} based on Kronecker Products. We specifically target the MLP layers of each transformer layer, and systematically compress the feed forwar…

Language ModelingLanguage Modelling

Dominant Z-Eigenpairs of Tensor Kronecker Products are Decoupled and Applications to Higher-Order Graph Matching

2020-11-17 · Charles Colley, Huda Nassar, David Gleich

Tensor Kronecker products, the natural generalization of the matrix Kronecker product, are independently emerging in multiple research communities. Like their matrix counterpart, the tensor generalization gives structure…

Graph Matching

Compressing RNNs for IoT devices by 15-38x using Kronecker Products

2019-06-07 · Urmish Thakker, Jesse Beu, Dibakar Gope, Chu Zhou 외

Recurrent Neural Networks (RNN) can be difficult to deploy on resource constrained devices due to their size.As a result, there is a need for compression techniques that can significantly compress RNNs without negatively…

KroneckerBERT: Significant Compression of Pre-trained Language Models Through Kronecker Decomposition and Knowledge Distillation

2022-07-01 · NAACL 2022 7 · Marzieh Tahaei, Ella Charlaix, Vahid Nia, Ali Ghodsi 외

The development of over-parameterized pre-trained language models has made a significant contribution toward the success of natural language processing. While over-parameterization of these models is the key to their gen…

Knowledge DistillationLanguage ModelingLanguage ModellingModel Compression