Self-Distilled Quantization: Achieving High Compression Rates in Transformer-Based Language Models

James O' Neill, Sourav Dutta
7/12/2023
cs.CLcs.LG

No confident code implementation found for this paper.

Abstract

We investigate the effects of post-training quantization and quantization-aware training on the generalization of Transformer language models. We present a new method called self-distilled quantization (SDQ) that minimizes accumulative quantization errors and outperforms baselines. We apply SDQ to multilingual models XLM-R-Base and InfoXLM-Base and demonstrate that both models can be reduced from 32-bit floating point weights to 8-bit integer weights while maintaining a high level of performance on the XGLUE benchmark. Our results also highlight the challenges of quantizing multilingual models, which must generalize to languages they were not fine-tuned on.

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{neill2023selfdistilled,
  title  = {Self-Distilled Quantization: Achieving High Compression Rates in Transformer-Based Language Models},
  author = {James O' Neill and Sourav Dutta},
  year   = {2023},
  eprint = {2307.05972},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.05972v1}
}

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

Discussion