ADaPTION:训练具有降低数值精度权重和激活的卷积神经网络的算法和基准
ADaPTION: Toolbox and Benchmark for Training Convolutional Neural Networks with Reduced Numerical Precision Weights and Activation
摘要:
深度神经网络(DNN)和卷积神经网络(CNN)对于机器学习中的许多实际任务都很有用。深度网络内的突触权重以及神经元激活函数通常以高精度格式(例如,32位浮点)存储。然而,由于存储容量是有限的,并且每次存储器访问都消耗功率,因此存储容量和存储器访问是这些网络中的两个关键因素。在这里,我们提出了一种方法,并提出了ADaPTION工具箱来扩展流行的深度学习库Caffe,以支持使用固定点表示法降低权重和激活的数值精度的深度CNN的训练。ADaPTION包括用于测量权重和激活的动态范围的工具。使用ADaPTION工具,我们将几个CNN(包括VGG 16)量化为16位权重和激活,Top-1准确度仅下降0.8%。量化,特别是激活,导致增加高达50%的稀疏性,特别是在早期和中间层,我们利用它来跳过与零的乘法,从而执行更快和计算更便宜的推理。
英文摘要:
Deep Neural Networks (DNNs) and Convolutional Neural Networks (CNNs) are useful for many practical tasks in machine learning. Synaptic weights, as well as neuron activation functions within the deep network are typically stored with high-precision formats, e.g. 32 bit floating point. However, since storage capacity is limited and each memory access consumes power, both storage capacity and memory access are two crucial factors in these networks. Here we present a method and present the ADaPTION toolbox to extend the popular deep learning library Caffe to support training of deep CNNs with reduced numerical precision of weights and activations using fixed point notation. ADaPTION includes tools to measure the dynamic range of weights and activations. Using the ADaPTION tools, we quantized several CNNs including VGG16 down to 16-bit weights and activations with only 0.8% drop in Top-1 accuracy. The quantization, especially of the activations, leads to increase of up to 50% of sparsity especially in early and intermediate layers, which we exploit to skip multiplications with zero, thus performing faster and computationally cheaper inference.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。