[Paper Review] Vector Quantized Wasserstein Auto-Encoder
This paper proposes Vector Quantized Wasserstein Auto-Encoder (VQ-WAE), a novel method for learning deep discrete latent representations by minimizing the Wasserstein distance between the distribution of discrete codeword sequences and the data distribution. By leveraging the theoretical properties of the Wasserstein distance and reformulating the objective into a trainable form, VQ-WAE achieves superior codebook utilization, improved image reconstruction and generation, and better disentangled, clustered latent representations compared to VQ-VAE and SQ-VAE variants.
Learning deep discrete latent presentations offers a promise of better symbolic and summarized abstractions that are more useful to subsequent downstream tasks. Inspired by the seminal Vector Quantized Variational Auto-Encoder (VQ-VAE), most of work in learning deep discrete representations has mainly focused on improving the original VQ-VAE form and none of them has studied learning deep discrete representations from the generative viewpoint. In this work, we study learning deep discrete representations from the generative viewpoint. Specifically, we endow discrete distributions over sequences of codewords and learn a deterministic decoder that transports the distribution over the sequences of codewords to the data distribution via minimizing a WS distance between them. We develop further theories to connect it with the clustering viewpoint of WS distance, allowing us to have a better and more controllable clustering solution. Finally, we empirically evaluate our method on several well-known benchmarks, where it achieves better qualitative and quantitative performances than the other VQ-VAE variants in terms of the codebook utilization and image reconstruction/generation.
Motivation & Objective
- To address the limitations of existing VQ-VAE variants in codebook utilization and representation quality.
- To explore learning deep discrete representations from a generative perspective using optimal transport theory.
- To develop a theoretically grounded framework that connects Wasserstein distance with vector quantization for better clustering and disentanglement.
- To improve the quality of learned representations by ensuring more uniform and meaningful use of codewords in the codebook.
- To demonstrate that minimizing Wasserstein distance leads to better reconstruction, generation, and downstream representation performance.
Proposed method
- Formulate a generative model where the decoder maps a discrete distribution over sequences of codewords to the data distribution via minimizing the Wasserstein distance.
- Derive an equivalent objective that includes a reconstruction term and the Wasserstein distance between the latent representation and the codeword distribution.
- Introduce a theoretical framework linking the Wasserstein distance to clustering, enabling better control over latent space structure.
- Use a deterministic encoder and decoder with vector quantization, where the quantization is defined via nearest-neighbor assignment in the latent space.
- Apply a stop-gradient operation to stabilize training and ensure gradient flow through the encoder while keeping the codebook fixed during backpropagation.
- Employ a simple prior over discrete latent sequences (e.g., autoregressive model) to enable image generation from learned codewords.

Experimental results
Research questions
- RQ1Can the Wasserstein distance be effectively leveraged to improve discrete representation learning in a VAE-like framework?
- RQ2Does minimizing the Wasserstein distance between the latent code distribution and the data distribution lead to better codebook utilization and representation quality?
- RQ3Can the theoretical properties of the Wasserstein distance be used to achieve more structured and clustered latent representations?
- RQ4How does VQ-WAE compare to VQ-VAE and SQ-VAE in terms of image reconstruction, generation, and downstream classification?
- RQ5Can the proposed framework naturally lead to more diverse and meaningful codewords through improved optimization?
Key findings
- VQ-WAE achieved the highest single-layer classification accuracy on the latent space across all datasets, with 50.19% on CIFAR10, 95.62% on MNIST, and 38.38% on SVHN, outperforming VQ-VAE and SQ-VAE.
- On image generation, VQ-WAE achieved the lowest FID scores: 87.73 (unconditional) and 88.51 (conditional) on CIFAR10, and 8.21 (unconditional) and 3.88 (conditional) on MNIST, indicating superior image quality.
- The codebook utilization in VQ-WAE was significantly improved, with more codewords actively used and fewer dead or underused codewords compared to VQ-VAE and SQ-VAE.
- Latent space visualization showed that VQ-WAE representations formed well-separated, compact clusters per class, while VQ-VAE and SQ-VAE representations were scattered and overlapped across classes.
- The ablation study confirmed that VQ-WAE optimally utilizes the codebook, leading to more diverse and meaningful codewords and a better-structured latent manifold.
- Theoretical analysis revealed that the optimal coupling in the Wasserstein distance formulation (OP in Theorem 2.3) suggests a path for learning joint distributions over codeword sequences, which could further improve generative modeling.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.