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

学习低秩表示的模型压缩

Learning Low-Rank Representations for Model Compression

Beijing University of Posts and Telecommunications(北京邮电大学);Huawei(华为)

Zezhou Zhu, Yucong Zhou, Zhao Zhong

摘要:

矢量量化(VQ)是一种很有吸引力的模型压缩方法,它可以获得较小精度损失的微小模型。虽然在固定的聚类维数下获得更好的码本和码的方法已经被广泛研究,但是没有仔细考虑有利于聚类性能的向量的优化,特别是通过减少向量维数。本文报告了我们最近的进展相结合的维数压缩和矢量量化,提出了一种低秩表示矢量量化($\text{LR}^2\text{VQ}$)的方法,优于以前的VQ算法在各种任务和架构。$\text{LR}^2\text{VQ}$将低秩表示与子向量聚类相结合,构建了一种新的构建块,该构建块通过端到端训练直接优化任务损失。我们提出的设计模式引入了三个超参数,聚类数$k$,子向量$m$的大小和聚类维数$\tilde{d}$。在我们的方法中,压缩比可以直接由$m$控制,最终的精度完全由$\tilde{d}$决定。我们认识到$\tilde{d}$作为低秩近似误差和聚类误差之间的权衡,并进行理论分析和实验观察,使正确的$\tilde{d}$的估计前微调。在适当的$\tilde{d}$下,我们在ImageNet分类数据集上使用ResNet-18/ResNet-50评估了$\text{LR}^2\text{VQ}$,与当前最先进的基于VQ的压缩算法相比,使用43 $\times$ /31 $\times$压缩因子,实现了2.8\%/1.0\%的top-1精度改进。

英文摘要:

Vector Quantization (VQ) is an appealing model compression method to obtain a tiny model with less accuracy loss. While methods to obtain better codebooks and codes under fixed clustering dimensionality have been extensively studied, optimizations of the vectors in favour of clustering performance are not carefully considered, especially via the reduction of vector dimensionality. This paper reports our recent progress on the combination of dimensionality compression and vector quantization, proposing a Low-Rank Representation Vector Quantization ($\text{LR}^2\text{VQ}$) method that outperforms previous VQ algorithms in various tasks and architectures. $\text{LR}^2\text{VQ}$ joins low-rank representation with subvector clustering to construct a new kind of building block that is directly optimized through end-to-end training over the task loss. Our proposed design pattern introduces three hyper-parameters, the number of clusters $k$, the size of subvectors $m$ and the clustering dimensionality $\tilde{d}$. In our method, the compression ratio could be directly controlled by $m$, and the final accuracy is solely determined by $\tilde{d}$. We recognize $\tilde{d}$ as a trade-off between low-rank approximation error and clustering error and carry out both theoretical analysis and experimental observations that empower the estimation of the proper $\tilde{d}$ before fine-tunning. With a proper $\tilde{d}$, we evaluate $\text{LR}^2\text{VQ}$ with ResNet-18/ResNet-50 on ImageNet classification datasets, achieving 2.8\%/1.0\% top-1 accuracy improvements over the current state-of-the-art VQ-based compression algorithms with 43$\times$/31$\times$ compression factor.

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

↑