paper-with-me

Papers

Kronecker Decomposition for GPT Compression

2021-10-15 · ACL 2022 5 · Ali Edalati, Marzieh Tahaei, Ahmad Rashid, Vahid Partovi Nia, James J. Clark, Mehdi Rezagholizadeh

GPT is an auto-regressive Transformer-based pre-trained language model which has attracted a lot of attention in the natural language processing (NLP) domain due to its state-of-the-art performance in several downstream tasks. The success of GPT is mostly attributed to its pre-training on huge amount of data and its large number of parameters (from ~100M to billions of parameters). Despite the superior performance of GPT (especially in few-shot or zero-shot setup), this overparameterized nature of GPT can be very prohibitive for deploying this model on devices with limited computational power or memory. This problem can be mitigated using model compression techniques; however, compressing GPT models has not been investigated much in the literature. In this work, we use Kronecker decomposition to compress the linear mappings of the GPT-22 model. Our Kronecker GPT-2 model (KnGPT2) is initialized based on the Kronecker decomposed version of the GPT-2 model and then is undergone a very light pre-training on only a small portion of the training data with intermediate layer knowledge distillation (ILKD). Finally, our KnGPT2 is fine-tuned on down-stream tasks using ILKD as well. We evaluate our model on both language modeling and General Language Understanding Evaluation benchmark tasks and show that with more efficient pre-training and similar number of parameters, our KnGPT2 outperforms the existing DistilGPT2 model significantly.

📄 PDF Abstract BibTeX arXiv:2110.08152

Code (0)

등록된 구현이 없습니다.

Tasks

Knowledge DistillationLanguage ModelingLanguage ModellingModel Compression

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Knowledge Distillation A very simple way to improve the performance of almost any machine learning algorithm is to train many different models on the same data and then to average their predictions.…
GPT-2 GPT-2 is a Transformer architecture that was notable for its size (1.5 billion parameters) on its release. The…
Cosine Annealing Cosine Annealing is a type of learning rate schedule that has the effect of starting with a large learning rate that is relatively rapidly decreased to a minimum value before…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Weight Decay 설명 없음

Similar Papers 제목 키워드 기반

KroneckerBERT: Learning Kronecker Decomposition for Pre-trained Language Models via Knowledge Distillation

2021-09-13 · Marzieh S. Tahaei, Ella Charlaix, Vahid Partovi 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

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

Convolutional Neural Network Compression through Generalized Kronecker Product Decomposition

2021-09-29 · Marawan Gamal Abdel Hameed, Marzieh S. Tahaei, Ali Mosleh, Vahid Partovi Nia

Modern Convolutional Neural Network (CNN) architectures, despite their superiority in solving various problems, are generally too large to be deployed on resource constrained edge devices. In this paper, we reduce memory…

image-classificationImage ClassificationKnowledge DistillationNeural Network Compression

Kronecker CP Decomposition with Fast Multiplication for Compressing RNNs

2020-08-21 · Dingheng Wang, Bijiao Wu, Guangshe Zhao, Man Yao 외

Recurrent neural networks (RNNs) are powerful in the tasks oriented to sequential data, such as natural language processing and video recognition. However, since the modern RNNs, including long-short term memory (LSTM) a…

Tensor DecompositionVideo Recognition

SeKron: A Decomposition Method Supporting Many Factorization Structures

2022-10-12 · Marawan Gamal Abdel Hameed, Ali Mosleh, Marzieh S. Tahaei, Vahid Partovi Nia

While convolutional neural networks (CNNs) have become the de facto standard for most image processing and computer vision applications, their deployment on edge devices remains challenging. Tensor decomposition methods …

Model CompressionTensor Decomposition