Addressing Representation Collapse in Vector Quantized Models with One Linear Layer

Yongxin Zhu, Bocheng Li, Yifei Xin, Zhihua Xia, Linli Xu
11/4/2024
cs.LGcs.CVcs.SD

Official code: youngsheen/SimVQ (334 stars, MIT, last commit 2024-12-29).

Abstract

Vector Quantization (VQ) is essential for discretizing continuous representations in unsupervised learning but suffers from representation collapse, causing low codebook utilization and limiting scalability. Existing solutions often rely on complex optimizations or reduce latent dimensionality, which compromises model capacity and fails to fully solve the problem. We identify the root cause as disjoint codebook optimization, where only a few code vectors are updated via gradient descent. To fix this, we propose \textbf{Sim}ple\textbf{VQ}, which reparameterizes code vectors through a learnable linear transformation layer over a latent basis, optimizing the \textit{entire linear space} rather than nearest \textit{individual code vectors}. Although the multiplication of two linear matrices is equivalent to applying a single linear layer, this simple approach effectively prevents collapse. Extensive experiments on image and audio tasks demonstrate that SimVQ improves codebook usage, is easy to implement, and generalizes well across modalities and architectures. The code is available at https://github.com/youngsheen/SimVQ.

View on arXivView PDF

Code Implementations(1)

youngsheen/SimVQOfficial100%
MIT

[ICCV 2025] SimVQ: Addressing Representation Collapse in Vector Quantized Models with One Linear Layer

33412PythonOct 17, 20241 years agoMIT
audioencodecimagevector-quantizationvqgan

Similar Papers

Cite this paper

@article{zhu2024addressing,
  title  = {Addressing Representation Collapse in Vector Quantized Models with One Linear Layer},
  author = {Yongxin Zhu and Bocheng Li and Yifei Xin and Zhihua Xia and Linli Xu},
  year   = {2024},
  eprint = {2411.02038},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.02038v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.02038.svg)](https://codeofpaper.com/paper/2411.02038)

Discussion