arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2212.12649cs.CVcs.AI
收藏

超球面损失感知三元Quantization

Hyperspherical Loss-Aware Ternary Quantization

McGill University(麦吉尔大学)

Dan Liu, Xue Liu

摘要:

现有的工作大多使用投影函数在离散空间中进行三值量化。在某些情况下,使用比例因子和阈值来提高模型精度。然而,用于优化的梯度是不准确的,并导致全精度模型和三元模型之间存在显著的精度差距。为了获得更准确的梯度,一些工作逐渐增加前向传播通道中的全精度权重的离散部分,例如,使用基于温度的Sigmoid函数。我们不是直接在离散空间中执行三进制量化,而是在三进制量化之前通过正则化项将全精度权重推到接近三进制权重。此外,受基于温度的方法的启发,我们引入了一个重新缩放因子,通过模拟Sigmoid函数的导数来获得更精确的梯度。实验结果表明,该方法在图像分类和目标检测任务中均能显著提高三值量化的精度。

英文摘要:

Most of the existing works use projection functions for ternary quantization in discrete space. Scaling factors and thresholds are used in some cases to improve the model accuracy. However, the gradients used for optimization are inaccurate and result in a notable accuracy gap between the full precision and ternary models. To get more accurate gradients, some works gradually increase the discrete portion of the full precision weights in the forward propagation pass, e.g., using temperature-based Sigmoid function. Instead of directly performing ternary quantization in discrete space, we push full precision weights close to ternary ones through regularization term prior to ternary quantization. In addition, inspired by the temperature-based method, we introduce a re-scaling factor to obtain more accurate gradients by simulating the derivatives of Sigmoid function. The experimental results show that our method can significantly improve the accuracy of ternary quantization in both image classification and object detection tasks.

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

↑