arXiv:2411.02038cs.LGcs.CV2024-11ICCV被引 94

用单层线性变换解决向量量化模型的表征坍缩问题

Addressing Representation Collapse in Vector Quantized Models with One Linear Layer

  • 通过可学习线性变换重参数化码本,优化整个线性空间
  • 在图像和音频任务中显著提升码本利用率,避免表征坍缩
  • 方法简单易实现,适用于多种模态与模型架构

向量量化(VQ)在无监督学习中用于离散化连续表示,但常出现表征坍缩问题,导致码本利用不足并限制可扩展性。现有方法多依赖复杂优化或降低潜在维度,损害模型容量且未能根本解决。我们发现根本原因是码本优化不连贯,仅有少数码向量通过梯度下降更新。为此提出SimVQ,通过在潜在基上引入可学习线性变换层,对整个线性空间进行优化,而非仅更新单个码向量。尽管双矩阵乘积等价于单层线性映射,该方法能有效防止坍缩。大量实验表明,SimVQ显著提升码本使用率,易于实现,且在图像与音频任务中跨模态、跨架构具有良好泛化能力。代码已公开于https://github.com/youngsheen/SimVQ。

原文摘要 · Abstract (English)

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.

向量量化表征坍缩线性变换码本利用

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。