arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.18896cs.CV
收藏

超越平稳性:重新思考向量量化中的代码书坍缩

Beyond Stationarity: Rethinking Codebook Collapse in Vector Quantization

Wake Forest University School of Medicine(威斯康星大学福林斯医学院)

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

AI总结:

本文提出NSVQ和TransVQ方法,通过非平稳性机制解决向量量化中的代码书坍缩问题,提升生成模型的代码书利用率和重建质量。

摘要:

向量量化(VQ)是许多现代生成框架如VQ-VAE、VQ-GAN和潜在扩散模型的基础。然而,它却面临着持续存在的代码书坍缩问题,即训练过程中大量代码向量仍被未使用。本文提供了一个新的理论解释,通过识别编码器更新的非平稳性作为这一现象的根本原因。我们证明,随着编码器漂移,未选中的代码向量无法接收更新,并逐渐变得不活跃。为了解决这一问题,我们提出了两种新方法:非平稳向量量化(NSVQ),通过基于核的规则将编码器漂移传播到未选中的代码中;以及基于Transformer的向量量化(TransVQ),通过轻量级映射来适应性地转换整个代码书,同时保持收敛到k-means解的特性。在CelebA-HQ数据集上的实验表明,这两种方法在代码书利用率和重建质量方面均优于基线VQ变体,为未来的VQ生成模型提供了系统且可扩展的基础。代码可在:https://github.com/CAIR-LAB-WFUSM/NSVQ-TransVQ.git 获取。

英文摘要:

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

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑