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

超球面Quantization:更小更精确的模型

Hyperspherical Quantization: Toward Smaller and More Accurate Models

McGill University(麦吉尔大学);City University of Hong Kong(香港城市大学)

Dan Liu, Xi Chen, Chen Ma, Xue Liu

摘要:

模型量化使得能够在资源受限的设备下部署深度神经网络。矢量量化旨在通过用全精度嵌入索引模型权重来减小模型大小,即,码字,而索引需要在计算期间恢复到32位。二进制和其他低精度量化方法可以将模型大小减小到32 $\times$,然而,以相当大的精度下降为代价。在本文中,我们提出了一个有效的三进制量化框架,以产生更小,更准确的压缩模型。通过集成超球面学习,修剪和重新初始化,我们提出的超球面量化(HQ)方法减少了全精度和三进制权重之间的余弦距离,从而减少了三进制量化过程中直通梯度估计器的偏差。与现有的工作在类似的压缩水平($\sim$ 30 $\times$,$\sim$ 40 $\times$)相比,我们的方法显着提高了测试精度,减少了模型的大小。

英文摘要:

Model quantization enables the deployment of deep neural networks under resource-constrained devices. Vector quantization aims at reducing the model size by indexing model weights with full-precision embeddings, i.e., codewords, while the index needs to be restored to 32-bit during computation. Binary and other low-precision quantization methods can reduce the model size up to 32$\times$, however, at the cost of a considerable accuracy drop. In this paper, we propose an efficient framework for ternary quantization to produce smaller and more accurate compressed models. By integrating hyperspherical learning, pruning and reinitialization, our proposed Hyperspherical Quantization (HQ) method reduces the cosine distance between the full-precision and ternary weights, thus reducing the bias of the straight-through gradient estimator during ternary quantization. Compared with existing work at similar compression levels ($\sim$30$\times$, $\sim$40$\times$), our method significantly improves the test accuracy and reduces the model size.

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

↑