arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1910.08237cs.LGcs.CVstat.ML
收藏

神经网络Quantization的镜像下降视图

Mirror Descent View for Neural Network Quantization

Australian National University(澳大利亚国立大学);Amazon(亚马逊公司);Data61, CSIRO(联邦科学与工业研究组织Data61研究院);University of Oxford(牛津大学);Five AI(Five AI公司)

Thalaiyasingam Ajanthan, Kartik Gupta, Philip H. S. Torr, Richard Hartley, Puneet K. Dokania

摘要:

由于减少了存储器和时间复杂度,量化大的神经网络(NN)同时保持性能对于资源有限的设备是非常期望的。它通常被公式化为一个约束优化问题,并通过梯度下降的修改版本进行优化。在这项工作中,通过将连续参数(无约束)解释为量化参数的对偶,我们引入了NN量化的镜像下降(MD)框架。具体来说,我们提供了预测的条件(即,从连续映射到量化映射),这将使我们能够导出有效的镜像映射,进而导出相应的MD更新。此外,我们提出了一个数值稳定的MD实现,需要存储一组额外的辅助变量(无约束),并表明它是惊人的类似于直通估计(STE)为基础的方法,通常被视为一个“技巧”,以避免消失的梯度问题。我们在CIFAR-10/100、TinyImageNet和ImageNet分类数据集上的实验表明,我们的MD变体获得了具有最先进性能的量化网络。代码可在https://github.com/kartikgupta-at-anu/md-bnn上获得。

英文摘要:

Quantizing large Neural Networks (NN) while maintaining the performance is highly desirable for resource-limited devices due to reduced memory and time complexity. It is usually formulated as a constrained optimization problem and optimized via a modified version of gradient descent. In this work, by interpreting the continuous parameters (unconstrained) as the dual of the quantized ones, we introduce a Mirror Descent (MD) framework for NN quantization. Specifically, we provide conditions on the projections (i.e., mapping from continuous to quantized ones) which would enable us to derive valid mirror maps and in turn the respective MD updates. Furthermore, we present a numerically stable implementation of MD that requires storing an additional set of auxiliary variables (unconstrained), and show that it is strikingly analogous to the Straight Through Estimator (STE) based method which is typically viewed as a "trick" to avoid vanishing gradients issue. Our experiments on CIFAR-10/100, TinyImageNet, and ImageNet classification datasets with VGG-16, ResNet-18, and MobileNetV2 architectures show that our MD variants obtain quantized networks with state-of-the-art performance. Code is available at https://github.com/kartikgupta-at-anu/md-bnn.

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

↑