arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1807.10577cs.CV
收藏

基于可重构逻辑的降精度神经网络的精度与性能权衡

Accuracy to Throughput Trade-offs for Reduced Precision Neural Networks on Reconfigurable Logic

Xilinx Research Labs(赛灵思研究院);Imperial College London(帝国理工学院);University of Sydney(悉尼大学)

Jiang Su, Nicholas J. Fraser, Giulio Gambardella, Michaela Blott, Gianluca Durelli, David B. Thomas, Philip Leong, Peter Y. K. Cheung

摘要:

现代CNN通常基于基于浮点线性代数的实现。最近,降低精度NN已经越来越受欢迎,因为它们与浮点相比需要显著更少的存储器和计算资源。这在功率受限的计算环境中尤其重要。然而,在许多情况下,精度的降低会对所得到的网络的精度造成很小的代价。在这项工作中,我们调查的精度-吞吐量权衡各种参数精度适用于不同类型的NN模型。我们首先提出了一种量化训练策略,允许降低精度NN推理,具有较低的内存占用和竞争力的模型精度。然后,我们定量地制定数据表示和硬件效率之间的关系。我们的实验最终提供了有洞察力的观察。例如,我们的一项测试表明,32位浮点比1位参数更有效地实现了99%的MNIST精度。一般来说,2位和4位固定点参数在MNIST和CIFAR-10等小规模数据集上显示出更好的硬件权衡,而4位在我们测试的问题域中的ImageNet数据集上的AlexNet等大规模任务中提供了最佳权衡。

英文摘要:

Modern CNN are typically based on floating point linear algebra based implementations. Recently, reduced precision NN have been gaining popularity as they require significantly less memory and computational resources compared to floating point. This is particularly important in power constrained compute environments. However, in many cases a reduction in precision comes at a small cost to the accuracy of the resultant network. In this work, we investigate the accuracy-throughput trade-off for various parameter precision applied to different types of NN models. We firstly propose a quantization training strategy that allows reduced precision NN inference with a lower memory footprint and competitive model accuracy. Then, we quantitatively formulate the relationship between data representation and hardware efficiency. Our experiments finally provide insightful observation. For example, one of our tests show 32-bit floating point is more hardware efficient than 1-bit parameters to achieve 99% MNIST accuracy. In general, 2-bit and 4-bit fixed point parameters show better hardware trade-off on small-scale datasets like MNIST and CIFAR-10 while 4-bit provide the best trade-off in large-scale tasks like AlexNet on ImageNet dataset within our tested problem domain.

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

↑