Quantization-Aware and Tensor-Compressed Training of Transformers for Natural Language Understanding

Zi Yang, Samridhi Choudhary, Siegfried Kunzmann, Zheng Zhang
6/1/2023
cs.CLcs.AI

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

Fine-tuned transformer models have shown superior performances in many natural language tasks. However, the large model size prohibits deploying high-performance transformer models on resource-constrained devices. This paper proposes a quantization-aware tensor-compressed training approach to reduce the model size, arithmetic operations, and ultimately runtime latency of transformer-based models. We compress the embedding and linear layers of transformers into small low-rank tensor cores, which significantly reduces model parameters. A quantization-aware training with learnable scale factors is used to further obtain low-precision representations of the tensor-compressed models. The developed approach can be used for both end-to-end training and distillation-based training. To improve the convergence, a layer-by-layer distillation is applied to distill a quantized and tensor-compressed student model from a pre-trained transformer. The performance is demonstrated in two natural language understanding tasks, showing up to $63\times$ compression ratio, little accuracy loss and remarkable inference and training speedup.

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. 4 weaker matches are hidden by default — 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{yang2023quantizationaware,
  title  = {Quantization-Aware and Tensor-Compressed Training of Transformers for Natural Language Understanding},
  author = {Zi Yang and Samridhi Choudhary and Siegfried Kunzmann and Zheng Zhang},
  year   = {2023},
  eprint = {2306.01076},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.01076v2}
}

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

Discussion