Vector Quantization using Gaussian Variational Autoencoder

Tongda Xu, Wendi Zheng, Jiajun He, Jose Miguel Hernandez-Lobato, Yan Wang +2 more
12/7/2025
cs.LGcs.CV

Official code: tongdaxu/VQ-VAE-from-Gaussian-VAE (26 stars, MIT, last commit 2026-01-03).

Abstract

Vector quantized variational autoencoder (VQ-VAE) is a discrete auto-encoder that compresses images into discrete tokens. It is difficult to train due to discretization. In this paper, we propose a simple yet effective technique, dubbed Gaussian Quant (GQ), that converts a Gaussian VAE with certain constraint into a VQ-VAE without training. GQ generates random Gaussian noise as a codebook and finds the closest noise to the posterior mean. Theoretically, we prove that when the logarithm of the codebook size exceeds the bits-back coding rate of the Gaussian VAE, a small quantization error is guaranteed. Practically, we propose a heuristic to train Gaussian VAE for effective GQ, named target divergence constraint (TDC). Empirically, we show that GQ outperforms previous VQ-VAEs, such as VQGAN, FSQ, LFQ, and BSQ, on both UNet and ViT architectures. Furthermore, TDC also improves upon previous Gaussian VAE discretization methods, such as TokenBridge. The source code is provided in https://github.com/tongdaxu/VQ-VAE-from-Gaussian-VAE.

View on arXivView PDF

Code Implementations(1)

MIT

Official implementation of (ICML 2026) Vector Quantization using Gaussian Variational Autoencoder

263C++, CudaJun 27, 20259 months agoMIT
image-tokenizervector-quantized-variational-autoencodervq-vaevqvae

Similar Papers

Cite this paper

@article{xu2025vector,
  title  = {Vector Quantization using Gaussian Variational Autoencoder},
  author = {Tongda Xu and Wendi Zheng and Jiajun He and Jose Miguel Hernandez-Lobato and Yan Wang and Ya-Qin Zhang and Jie Tang},
  year   = {2025},
  eprint = {2512.06609},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.06609v1}
}

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

Discussion