Skip to main content
QUICK REVIEW

[论文解读] Progressive Learning of Low-Precision Networks

Zhengguang Zhou, Wengang Zhou|arXiv (Cornell University)|May 28, 2019
Advanced Neural Network ApplicationsComputer Science参考文献 49被引用 3
一句话总结

该论文提出了一种名为 EXP-Net 的渐进式训练框架,通过在训练期间临时为每个低精度卷积层添加一个全精度对应层来增强低精度神经网络,然后通过衰减因子逐步降低其影响,最终在推理时将其移除。该方法实现了更快的收敛速度和更高的准确率——在 ImageNet 上使用 1 位权重和 2 位激活时达到 51.97% 的 top-1 准确率,且无需修改最终的低精度模型结构。

ABSTRACT

Recent years have witnessed the great advance of deep learning in a variety of vision tasks. Many state-of-the-art deep neural networks suffer from large size and high complexity, which makes it difficult to deploy in resource-limited platforms such as mobile devices. To this end, low-precision neural networks are widely studied which quantize weights or activations into the low-bit format. Though being efficient, low-precision networks are usually hard to train and encounter severe accuracy degradation. In this paper, we propose a new training strategy through expanding low-precision networks during training and removing the expanded parts for network inference. First, we equip each low-precision convolutional layer with an ancillary full-precision convolutional layer based on a low-precision network structure, which could guide the network to good local minima. Second, a decay method is introduced to reduce the output of the added full-precision convolution gradually, which keeps the resulted topology structure the same to the original low-precision one. Experiments on SVHN, CIFAR and ILSVRC-2012 datasets prove that the proposed method can bring faster convergence and higher accuracy for low-precision neural networks.

研究动机与目标

  • 为解决由于表示能力有限和量化不可微分导致的低精度神经网络中严重的准确率下降和训练不稳定性问题。
  • 开发一种训练策略,引导低精度网络收敛到更好的局部极小值,而无需修改最终推理时的模型结构。
  • 通过提升准确率和收敛速度,实现低精度模型在资源受限设备上的高效部署。
  • 提供一种与多种量化函数兼容的通用训练框架,例如 DoReFa-Net、XNOR-Net 和 SYQ。

提出的方法

  • 在训练期间,为每个低精度卷积层增加一个额外的全精度卷积层,构建出具有更强表示能力的扩展网络(EXP-Net)。
  • 全精度分支的输出通过一个单调递减的因子 $ f $ 进行缩放,该因子在每个训练步骤中更新,以逐步减少其对最终输出的贡献。
  • 衰减因子 $ f $ 的设计目标是在训练结束时将全精度输出降至零,从而实现其在不改变原始低精度网络结构的前提下被安全移除。
  • 扩展后的网络使用标准反向传播进行训练,全精度分支作为引导,帮助低精度权重收敛到更优的极小值。
  • 训练完成后,移除全精度分支,仅保留原始的低精度网络,其拓扑结构和推理效率保持不变。
  • 该方法与任意量化函数兼容,包括 DoReFa-Net、XNOR-Net 和 SYQ,因此可作为低精度网络的通用训练策略。

实验结果

研究问题

  • RQ1在训练期间添加全精度层是否能在不改变最终推理模型的前提下,提升低精度神经网络的收敛性和准确率?
  • RQ2全精度分支输出的渐进衰减如何影响低精度网络的学习动态和最终性能?
  • RQ3所提出的方法是否在不同数据集和量化位宽下均优于标准的低精度网络训练方法?
  • RQ4哪些层从扩展中获益最多——浅层还是深层?扩展的层数如何影响性能?

主要发现

  • 在 SVHN 数据集上,模型规模为 0.25×,权重和激活为 2 位时,EXP-Net 达到 95.12% 的 top-1 准确率,优于基线方法 SYQ。
  • 在 CIFAR-10 上,模型规模为 0.5×,权重为 1 位、激活为 2 位时,EXP-Net 达到 91.45% 的 top-1 准确率,较基线提升 1.25 个百分点。
  • 在 ImageNet(AlexNet)上,使用 DoReFa-Net 量化时,EXP-Net 在 1 位权重和 1 位激活下达到 44.83% 的 top-1 准确率,较基线 DoReFa-Net 提升 1.23 个百分点。
  • EXP-Net 在 1 位权重和 2 位激活下于 ImageNet 上达到 51.97% 的 top-1 准确率,表明其在不同位宽下均表现出一致的性能提升。
  • 仅扩展深层网络(如第 4、5、6 层)的性能优于扩展所有层或仅扩展浅层,表明深层网络从全精度引导中获益更多。
  • 该方法在不同量化函数下均表现稳健:在 SVHN 和 ImageNet 的所有测试设置中,EXP-Net 均优于标准训练的 DoReFa-Net、XNOR-Net 和 SYQ。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。