Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Finite Scalar Quantization: VQ-VAE Made Simple

About

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.

Fabian Mentzer, David Minnen, Eirikur Agustsson, Michael Tschannen• 2023

Related benchmarks

TaskDatasetResultRank
Visual Question AnsweringVQA v2--
1165
Object Hallucination EvaluationPOPE--
935
Multimodal EvaluationMME--
557
Multimodal Capability EvaluationMM-Vet
Score19.6
282
Image GenerationImageNet (val)--
198
Image ReconstructionCOCO 2017 (val)
PSNR32.3
54
Aggregated Performance BenchmarkingCombined Multimodal Evaluation Summary
Overall Score53.2
17
Out-of-Distribution ReconstructionCEU RKH, ρ (OD1)
nMAE0.9487
14
Image GenerationImageNet-1K 1.0 (val)
FID4.53
9
ReconstructionSentinel-2 L1C (test)
rL15.904
9
Showing 10 of 20 rows

Other info

Follow for update