Finite Scalar Quantization: VQ-VAE Made Simple

Fabian Mentzer, David C. Minnen, E. Agustsson, Michael Tschannen
2/12/2026

Official code: google-research/google-research (38,246 stars, Apache-2.0, last commit 2026-04-30). 1 more implementation below.

Abstract

We propose to replace vector quantization (VQ) in the latent representation of VQ-VAEs with a simple scheme termed finite scalar quantization (FSQ), where we project the VAE representation down to a few dimensions (typically less than 10). Each dimension is quantized to a small set of fixed values, leading to an (implicit) codebook given by the product of these sets. By appropriately choosing the number of dimensions and values each dimension can take, we obtain the same codebook size as in VQ. On top of such discrete representations, we can train the same models that have been trained on VQ-VAE representations. For example, autoregressive and masked transformer models for image generation, multimodal generation, and dense prediction computer vision tasks. Concretely, we employ FSQ with MaskGIT for image generation, and with UViM for depth estimation, colorization, and panoptic segmentation. Despite the much simpler design of FSQ, we obtain competitive performance in all these tasks. We emphasize that FSQ does not suffer from codebook collapse and does not need the complex machinery employed in VQ (commitment losses, codebook reseeding, code splitting, entropy penalties, etc.) to learn expressive discrete representations.

View on arXivView PDF

Code Implementations(2)

Apache-2.0

Google Research

38,2468,446C, ROct 4, 20185 months agoApache-2.0
aimachine-learningresearch
Nikolai10/FSQCommunity66%
TensorFlowApache-2.0

TensorFlow implementation of "Finite Scalar Quantization: VQ-VAE Made Simple" (ICLR 2024)

211PythonDec 2, 20232 years agoApache-2.0
deep-learningscalar-quantizationtensorflowvector-quantization

Similar Papers

Cite this paper

@article{mentzer2026finite,
  title  = {Finite Scalar Quantization: VQ-VAE Made Simple},
  author = {Fabian Mentzer and David C. Minnen and E. Agustsson and Michael Tschannen},
  year   = {2026},
  eprint = {2309.15505},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2309.15505},
  journal = {ICLR 2023 2023}
}

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

Discussion