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

RedBit:用于评估量化CNN准确性的端到端灵活框架

RedBit: An End-to-End Flexible Framework for Evaluating the Accuracy of Quantized CNNs

University of Coimbra(科英布拉大学);Instituto de Telecomunicações(电信研究所);ETH Zürich(苏黎世联邦理工学院)

André Santos, João Dinis Ferreira, Onur Mutlu, Gabriel Falcao

摘要:

近年来,卷积神经网络(CNN)已成为用于图像处理、分类和分割任务的标准类深度神经网络。然而,CNN在准确性上的巨大进步是由于增加了网络拓扑的复杂性,这在CNN的训练和推理中带来了相当大的性能和能量损失。最近的许多工作已经验证了参数量化的有效性,包括减少网络参数的位宽,以实现相当大的性能和能源效率的增益,而不会显着损害精度。然而,很难比较不同量化方法的相对有效性。为了解决这个问题,我们引入了RedBit,这是一个开源框架,它提供了一个透明的,可扩展的和易于使用的界面,以评估不同算法和参数配置对网络精度的有效性。我们使用RedBit对应用于MNIST,CIFAR-10和ImageNet数据集的五种最先进的量化方法进行了全面的调查。我们评估了总共2300个单独的位宽组合,独立地调整网络权重和输入激活参数的宽度,从32位降到1位(例如,8/8、2/2、1/32、1/1,用于权重/激活)。本文中的所有结果都是在一个最先进的GPU池中使用20000小时以上的计算时间生成的。对于1位量化,MNIST、CIFAR-10和ImageNet数据集的准确度损失分别在[0.26%,0.79%]、[9.74%,32.96%]和[10.86%,47.36%] top-1之间。我们积极鼓励读者下载源代码并使用RedBit进行实验,并将他们自己观察到的结果提交到我们的公共存储库,可在https://github.com/IT-Coimbra/RedBit上获得。

英文摘要:

In recent years, Convolutional Neural Networks (CNNs) have become the standard class of deep neural network for image processing, classification and segmentation tasks. However, the large strides in accuracy obtained by CNNs have been derived from increasing the complexity of network topologies, which incurs sizeable performance and energy penalties in the training and inference of CNNs. Many recent works have validated the effectiveness of parameter quantization, which consists in reducing the bit width of the network's parameters, to enable the attainment of considerable performance and energy efficiency gains without significantly compromising accuracy. However, it is difficult to compare the relative effectiveness of different quantization methods. To address this problem, we introduce RedBit, an open-source framework that provides a transparent, extensible and easy-to-use interface to evaluate the effectiveness of different algorithms and parameter configurations on network accuracy. We use RedBit to perform a comprehensive survey of five state-of-the-art quantization methods applied to the MNIST, CIFAR-10 and ImageNet datasets. We evaluate a total of 2300 individual bit width combinations, independently tuning the width of the network's weight and input activation parameters, from 32 bits down to 1 bit (e.g., 8/8, 2/2, 1/32, 1/1, for weights/activations). Upwards of 20000 hours of computing time in a pool of state-of-the-art GPUs were used to generate all the results in this paper. For 1-bit quantization, the accuracy losses for the MNIST, CIFAR-10 and ImageNet datasets range between [0.26%, 0.79%], [9.74%, 32.96%] and [10.86%, 47.36%] top-1, respectively. We actively encourage the reader to download the source code and experiment with RedBit, and to submit their own observed results to our public repository, available at https://github.com/IT-Coimbra/RedBit.

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

↑