Accurate Compression of Text-to-Image Diffusion Models via Vector Quantization

Vage Egiazarian, Denis Kuznedelev, Anton Voronov, Ruslan Svirschevski, Michael Goin +3 more
8/31/2024
cs.CV

No official code found. Best implementation: yandex-research/vqdm (34 stars, Apache-2.0, last commit 2024-09-17).

Abstract

Text-to-image diffusion models have emerged as a powerful framework for high-quality image generation given textual prompts. Their success has driven the rapid development of production-grade diffusion models that consistently increase in size and already contain billions of parameters. As a result, state-of-the-art text-to-image models are becoming less accessible in practice, especially in resource-limited environments. Post-training quantization (PTQ) tackles this issue by compressing the pretrained model weights into lower-bit representations. Recent diffusion quantization techniques primarily rely on uniform scalar quantization, providing decent performance for the models compressed to 4 bits. This work demonstrates that more versatile vector quantization (VQ) may achieve higher compression rates for large-scale text-to-image diffusion models. Specifically, we tailor vector-based PTQ methods to recent billion-scale text-to-image models (SDXL and SDXL-Turbo), and show that the diffusion models of 2B+ parameters compressed to around 3 bits using VQ exhibit the similar image quality and textual alignment as previous 4-bit compression techniques.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Official repository for VQDM:Accurate Compression of Text-to-Image Diffusion Models via Vector Quantization paper

341Shell, PythonJun 17, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{egiazarian2024accurate,
  title  = {Accurate Compression of Text-to-Image Diffusion Models via Vector Quantization},
  author = {Vage Egiazarian and Denis Kuznedelev and Anton Voronov and Ruslan Svirschevski and Michael Goin and Daniil Pavlov and Dan Alistarh and Dmitry Baranchuk},
  year   = {2024},
  eprint = {2409.00492},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.00492v1}
}

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

Discussion