前进一步再回溯:克服损失感知量化训练中的锯齿状振荡问题
One-Step Forward and Backtrack: Overcoming Zig-Zagging in Loss-Aware Quantization Training
AI总结:
针对传统损失感知量化训练中梯度误差引发的锯齿状振荡拖慢收敛的问题,提出前进一步再回溯的方法,通过前向搜索试验梯度调整当前梯度方向再回溯更新权重,有效提升了模型收敛性能与方法竞争力。
摘要:
权重量化是一种用于压缩深度神经网络、使其可部署在资源有限的边缘设备上的有效技术。传统的损失感知量化方法通常使用量化梯度来替代全精度梯度。然而,我们发现梯度误差会在梯度下降学习过程中引发一种意外的类锯齿状问题,表现为梯度方向快速振荡或呈锯齿状波动,该问题会严重拖慢模型收敛速度。针对这一问题,本文提出一种用于损失感知量化的“前进一步再回溯”方法,以获取更准确、更稳定的梯度方向。在梯度下降学习过程中,我们设计了一步前向搜索来寻找下一步的试验梯度,利用该试验梯度将当前步的梯度向快速收敛方向调整。随后,我们对当前步进行回溯,通过当前步梯度和试验梯度更新全精度权重与量化权重。在基准深度模型上开展的一系列理论分析与实验证明了所提方法的有效性与竞争力,且该方法在收敛性能上的表现尤为突出,优于其他现有方法。
英文摘要:
Weight quantization is an effective technique to compress deep neural networks for their deployment on edge devices with limited resources. Traditional loss-aware quantization methods commonly use the quantized gradient to replace the full-precision gradient. However, we discover that the gradient error will lead to an unexpected zig-zagging-like issue in the gradient descent learning procedures, where the gradient directions rapidly oscillate or zig-zag, and such issue seriously slows down the model convergence. Accordingly, this paper proposes a one-step forward and backtrack way for loss-aware quantization to get more accurate and stable gradient direction to defy this issue. During the gradient descent learning, a one-step forward search is designed to find the trial gradient of the next-step, which is adopted to adjust the gradient of current step towards the direction of fast convergence. After that, we backtrack the current step to update the full-precision and quantized weights through the current-step gradient and the trial gradient. A series of theoretical analysis and experiments on benchmark deep models have demonstrated the effectiveness and competitiveness of the proposed method, and our method especially outperforms others on the convergence performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。