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

MetaGrad:基于超网络的自适应梯度量化

MetaGrad: Adaptive Gradient Quantization with Hypernetworks

Institute for Infocomm Research, A*STAR(新加坡科技研究局资讯通信研究院);National University of Singapore(新加坡国立大学);Nanyang Technological University(南洋理工大学)

Kaixin Xu, Alina Hui Xiu Lee, Ziyuan Zhao, Zhe Wang, Min Wu, Weisi Lin

AI总结:

本文提出MetaGrad方法,利用超网络将梯度纳入下一次训练迭代的计算图,以解决反向传播中低精度梯度误差无法被训练目标摊销的问题,在CIFAR-10上将梯度成功量化至INT4且VGG-16准确率仅下降0.64。

摘要:

网络压缩方法中一个热门方向是量化感知训练(QAT),它在神经网络训练和推理过程中加速前向传播。然而,尽管反向传播约占训练时间的一半,此前很少有工作致力于在训练期间对反向传播进行量化和加速。这部分可归因于以下事实:反向传播中低精度梯度的误差无法像QAT设置中那样通过训练目标来摊销。在本工作中,我们提出通过超网络将梯度纳入下一次训练迭代的计算图来解决这一问题。在CIFAR-10数据集上使用不同CNN网络架构进行的多项实验表明,我们基于超网络的方法能够有效降低梯度量化噪声的负面影响,并成功将梯度量化为INT4,在CIFAR-10上VGG-16的准确率仅下降0.64。

英文摘要:

A popular track of network compression approach is Quantization aware Training (QAT), which accelerates the forward pass during the neural network training and inference. However, not much prior efforts have been made to quantize and accelerate the backward pass during training, even though that contributes around half of the training time. This can be partly attributed to the fact that errors of low-precision gradients during backward cannot be amortized by the training objective as in the QAT setting. In this work, we propose to solve this problem by incorporating the gradients into the computation graph of the next training iteration via a hypernetwork. Various experiments on CIFAR-10 dataset with different CNN network architectures demonstrate that our hypernetwork-based approach can effectively reduce the negative effect of gradient quantization noise and successfully quantizes the gradients to INT4 with only 0.64 accuracy drop for VGG-16 on CIFAR-10.

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

↑