CVFeb 21

Beyond Stationarity: Rethinking Codebook Collapse in Vector Quantization

arXiv:2602.18896v11 citationsHas Code
Originality Highly original
AI Analysis

This addresses a persistent bottleneck in VQ-based generative models like VQ-VAE and VQ-GAN, offering a principled solution for improved performance.

The paper tackles the problem of codebook collapse in vector quantization, identifying nonstationary encoder updates as the cause and proposing NSVQ and TransVQ methods, which achieve near-complete codebook utilization and superior reconstruction quality on the CelebA-HQ dataset.

Vector Quantization (VQ) underpins many modern generative frameworks such as VQ-VAE, VQ-GAN, and latent diffusion models. Yet, it suffers from the persistent problem of codebook collapse, where a large fraction of code vectors remains unused during training. This work provides a new theoretical explanation by identifying the nonstationary nature of encoder updates as the fundamental cause of this phenomenon. We show that as the encoder drifts, unselected code vectors fail to receive updates and gradually become inactive. To address this, we propose two new methods: Non-Stationary Vector Quantization (NSVQ), which propagates encoder drift to non-selected codes through a kernel-based rule, and Transformer-based Vector Quantization (TransVQ), which employs a lightweight mapping to adaptively transform the entire codebook while preserving convergence to the k-means solution. Experiments on the CelebA-HQ dataset demonstrate that both methods achieve near-complete codebook utilization and superior reconstruction quality compared to baseline VQ variants, providing a principled and scalable foundation for future VQ-based generative models. The code is available at: https://github.com/CAIR- LAB- WFUSM/NSVQ-TransVQ.git

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes