arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.03004cs.LGcs.AIcs.CVcs.MMmath.OC
收藏

软凸量化:以凸优化重新审视向量量化

Soft Convex Quantization: Revisiting Vector Quantization with Convex Optimization

UC Berkeley(加州大学伯克利分校);Microsoft Azure AI(微软Azure人工智能)

Tanmay Gautam, Reid Pryzant, Ziyi Yang, Chenguang Zhu, Somayeh Sojoudi

AI总结:

针对VQ的码本坍缩、不可微和有损压缩问题,本文提出作为DCO层的软凸量化SCQ及其可扩展松弛,并在多个数据集上证明其显著优于VQ架构。

摘要:

向量量化(Vector Quantization, VQ)是深度学习中用于提取信息丰富的离散潜在表示的著名技术。嵌入VQ的模型已在包括图像和语音生成在内的一系列应用中展现出令人瞩目的结果。VQ作为一种参数化K-means算法运行,在前向传播中使用单个码本向量对输入进行量化。尽管功能强大,该技术仍面临码本坍缩、不可微和有损压缩等实际挑战。为缓解上述问题,我们提出软凸量化(Soft Convex Quantization, SCQ),作为VQ的直接替代方案。SCQ像一个可微凸优化(DCO)层一样工作:在前向传播中,我们求解码本向量的最优凸组合来量化输入。在反向传播中,我们利用前向解的最优性条件实现可微性。随后,我们引入SCQ优化的可扩展松弛,并在CIFAR-10、GTSRB和LSUN数据集上证明其有效性。我们训练了强大的SCQ自编码器模型,其性能显著优于匹配的基于VQ的架构;在量化运行时间相当的情况下,图像重建和码本使用表现提升了一个数量级。

英文摘要:

Vector Quantization (VQ) is a well-known technique in deep learning for extracting informative discrete latent representations. VQ-embedded models have shown impressive results in a range of applications including image and speech generation. VQ operates as a parametric K-means algorithm that quantizes inputs using a single codebook vector in the forward pass. While powerful, this technique faces practical challenges including codebook collapse, non-differentiability and lossy compression. To mitigate the aforementioned issues, we propose Soft Convex Quantization (SCQ) as a direct substitute for VQ. SCQ works like a differentiable convex optimization (DCO) layer: in the forward pass, we solve for the optimal convex combination of codebook vectors that quantize the inputs. In the backward pass, we leverage differentiability through the optimality conditions of the forward solution. We then introduce a scalable relaxation of the SCQ optimization and demonstrate its efficacy on the CIFAR-10, GTSRB and LSUN datasets. We train powerful SCQ autoencoder models that significantly outperform matched VQ-based architectures, observing an order of magnitude better image reconstruction and codebook usage with comparable quantization runtime.

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

↑