Finite Scalar Quantization: VQ-VAE Made Simple
Fabian Mentzer, David Minnen, Eirikur Agustsson, Michael Tschannen
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. Code on GitHub.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
189 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Vector-quantized Image Modeling with Improved VQGAN cites BEiT: BERT Pre-Training of Image Transformers
- Vector-quantized Image Modeling with Improved VQGAN cites Diffusion Models Beat GANs on Image Synthesis
- Visual Autoregressive Modeling: Scalable Image Generation via Next-Scale Prediction cites Vector-quantized Image Modeling with Improved VQGAN
- Visual Autoregressive Modeling: Scalable Image Generation via Next-Scale Prediction cites BEiT: BERT Pre-Training of Image Transformers
- Visual Autoregressive Modeling: Scalable Image Generation via Next-Scale Prediction cites Diffusion Models Beat GANs on Image Synthesis
- Autoregressive Image Generation without Vector Quantization cites Diffusion Models Beat GANs on Image Synthesis
- Diffusion Transformers with Representation Autoencoders cites Diffusion Models Beat GANs on Image Synthesis
- Diffusion Transformers with Representation Autoencoders cites Visual Autoregressive Modeling: Scalable Image Generation via Next-Scale Prediction
- Diffusion Transformers with Representation Autoencoders cites Autoregressive Image Generation without Vector Quantization
- Diffusion Transformers with Representation Autoencoders cites An Image is Worth 32 Tokens for Reconstruction and Generation
- An Image is Worth 32 Tokens for Reconstruction and Generation cites Vector-quantized Image Modeling with Improved VQGAN
- An Image is Worth 32 Tokens for Reconstruction and Generation cites BEiT: BERT Pre-Training of Image Transformers
- An Image is Worth 32 Tokens for Reconstruction and Generation cites Diffusion Models Beat GANs on Image Synthesis
Cited by top-tier papers189
- Visual Autoregressive Modeling: Scalable Image Generation via Next-Scale PredictionKeyu Tian, Yi Jiang, Zehuan Yuan, Bingyue Peng et al.NeurIPS 2024 · 1,199 citations
- Autoregressive Image Generation without Vector QuantizationTianhong Li, Yonglong Tian, He Li, Mingyang Deng et al.NeurIPS 2024 · 758 citations
- An Image is Worth 32 Tokens for Reconstruction and GenerationQihang Yu, Mark Weber, Xueqing Deng, Xiaohui Shen et al.NeurIPS 2024 · 331 citations
- Diffusion Transformers with Representation AutoencodersBoyang Zheng, Nanye Ma, Shengbang Tong, Saining XieICLR 2026 · 288 citations
- SMART: Scalable Multi-agent Real-time Motion Generation via Next-token PredictionWei Wu, Xiaoxin Feng, Ziyan Gao, Yuheng KanNeurIPS 2024 · 104 citations
Builds on18
- Diffusion Models Beat GANs on Image SynthesisPrafulla Dhariwal, Alexander Quinn NicholNeurIPS 2021 · 13,211 citations
- BEiT: BERT Pre-Training of Image TransformersHangbo Bao, Li Dong, Songhao Piao, Furu WeiICLR 2022 · 3,632 citations
- Vector-quantized Image Modeling with Improved VQGANJiahui Yu, Xin Li, Jing Yu Koh, Han Zhang et al.ICLR 2022 · 753 citations
- vq-wav2vec: Self-Supervised Learning of Discrete Speech RepresentationsAlexei Baevski, Steffen Schneider, Michael AuliICLR 2020 · 730 citations
- High-Fidelity Generative Image CompressionFabian Mentzer, George Toderici, Michael Tschannen, Eirikur AgustssonNeurIPS 2020 · 675 citations
Related papers
- MoVQ: Modulating Quantized Vectors for High-Fidelity Image GenerationChuanxia Zheng, Tung-Long Vuong, Jianfei Cai, Dinh PhungNeurIPS 2022 · 156 citations
- SQ-VAE: Variational Bayes on Discrete Representation with Self-annealed Stochastic QuantizationYuhta Takida, Takashi Shibuya, Wei-Hsiang Liao, Chieh-Hsin Lai et al.ICML 2022 · 99 citations
- Unveiling And Addressing Dimensional Collapse In Vector Quantization Models Via Codebook RegularizationFang Zhang, Yongxin Zhu, Yihao Liu, Bin Fu et al.ICML 2026
- Learning to Quantize for Training Vector-Quantized NetworksPeijia Qin, Jianguo ZhangICML 2025
- Online Clustered CodebookChuanxia Zheng, Andrea VedaldiICCV 2023 · 67 citations
