cs.CVFeb 21, 2026

Beyond Stationarity: Rethinking Codebook Collapse in Vector Quantization

Authors: Hao Lu, Onur C. Koyun, Yongxin Guo, Zhengjie Zhu, Abbas Alili, Metin Nafi Gurcan

Organizations: Wake Forest University School of Medicine, Winston-Salem, NC, USA

Abstract

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

Figures & tables

Explore similar work

CardsList
  1. NSVQ: Mitigating Codebook Collapse by Stabilizing Encoder Drift in Vector Quantization

    Jun 9, 2026Hao Lu, Yongxin Guo, Onur Koyun +3Vector Quantization

  2. StableVQ: Practical Guidelines for Stable Vector-Quantized Tokenizer Training

    Sep 22, 2026Bao Tang, Jiahao Guo, Haoxiang Cao +4Straight-Through EstimatorVector Quantization