Block-wise Bit-Compression of Transformer-based Models

Gaochen Dong, Wei Chen
3/16/2023
cs.CLcs.LG

No confident code implementation found for this paper.

Abstract

With the popularity of the recent Transformer-based models represented by BERT, GPT-3 and ChatGPT, there has been state-of-the-art performance in a range of natural language processing tasks. However, the massive computations, huge memory footprint, and thus high latency of Transformer-based models is an inevitable challenge for the cloud with high real-time requirement. To tackle the issue, we propose BBCT, a method of block-wise bit-compression for transformer without retraining. Our method achieves more fine-grained compression of the whole transformer, including embedding, matrix multiplication, GELU, softmax, layer normalization, and all the intermediate results. As a case, we compress an efficient BERT with the method of BBCT. Our benchmark test results on General Language Understanding Evaluation (GLUE) show that BBCT can achieve less than 1% accuracy drop in most tasks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{dong2023blockwise,
  title  = {Block-wise Bit-Compression of Transformer-based Models},
  author = {Gaochen Dong and Wei Chen},
  year   = {2023},
  eprint = {2303.09184},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.09184v2}
}

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/2303.09184.svg)](https://codeofpaper.com/paper/2303.09184)

Discussion