TQCompressor: improving tensor decomposition methods in neural networks via permutations

V. Abronin, A. Naumov, D. Mazur, D. Bystrov, K. Tsarova +5 more
1/29/2024
cs.LGcs.AIcs.CL

No official code found. Best implementation: terra-quantum-public/TQCompressedGPT2 (8 stars, last commit 2024-06-10).

Abstract

We introduce TQCompressor, a novel method for neural network model compression with improved tensor decompositions. We explore the challenges posed by the computational and storage demands of pre-trained language models in NLP tasks and propose a permutation-based enhancement to Kronecker decomposition. This enhancement makes it possible to reduce loss in model expressivity which is usually associated with factorization. We demonstrate this method applied to the GPT-2$_{small}$. The result of the compression is TQCompressedGPT-2 model, featuring 81 mln. parameters compared to 124 mln. in the GPT-2$_{small}$. We make TQCompressedGPT-2 publicly available. We further enhance the performance of the TQCompressedGPT-2 through a training strategy involving multi-step knowledge distillation, using only a 3.1% of the OpenWebText. TQCompressedGPT-2 surpasses DistilGPT-2 and KnGPT-2 in comparative evaluations, marking an advancement in the efficient and effective deployment of models in resource-constrained environments.

View on arXivView PDF

Code Implementations(1)

82Python, Jupyter NotebookJan 26, 20242 years agoNOASSERTION

Cite this paper

@article{abronin2024tqcompressor,
  title  = {TQCompressor: improving tensor decomposition methods in neural networks via permutations},
  author = {V. Abronin and A. Naumov and D. Mazur and D. Bystrov and K. Tsarova and Ar. Melnikov and I. Oseledets and S. Dolgov and R. Brasher and M. Perelshtein},
  year   = {2024},
  eprint = {2401.16367},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.16367v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.16367.svg)](https://codeofpaper.com/paper/2401.16367)

Discussion