The ever-growing cost of both training and inference for state-of-the-art neural networks has brought literature to look upon ways to cut off resources used with a minimal impact on accuracy. Using lower precision comes at the cost of negligible loss in accuracy. While training neural networks may require a powerful setup, deploying a network must be possible on low-power and low-resource hardware architectures. Reconfigurable architectures have proven to be more powerful and flexible than GPUs when looking at a specific application. This article aims to assess the impact of mixed-precision when applied to neural networks deployed on FPGAs. While several frameworks exist that create tools to deploy neural networks using reduced-precision, few of them assess the importance of quantization and the framework quality. FINN and Brevitas, two frameworks from Xilinx labs, are used to assess the impact of quantization on neural networks using 2 to 8 bit precisions and weights with several parallelization configurations. Equivalent accuracy can be obtained using lower-precision representation and enough training. However, the compressed network can be better parallelized allowing the deployed network throughput to be 62 times faster. The benchmark set up in this work is available in a public repository (https://github.com/QDucasse/nn benchmark).
翻译:最新神经网络的培训和推断成本不断增长,使得文献能够研究如何切断使用的资源,对准确性影响最小。使用低精度的成本以可忽略不计的准确性损失为代价。培训神经网络可能需要强大的设置,但部署网络必须是针对低功率和低资源硬件结构的。在研究特定应用时,重新配置的建筑证明比GPU更强大和灵活。本文章的目的是评估混合精度在应用于部署在FPGAs上的神经网络时的影响。虽然有一些框架可以创造工具,利用降低精度来部署神经网络,但很少有人能够评估四分化和框架质量的重要性。来自Xilinx实验室的两个框架FINN和Brevitas被用来评估二次至八位精度和重重度对神经网络的影响。本文章旨在评估混合精度精确度在应用部署在FPGAs的神经网络时的影响。使用较低的精度和足够的培训可以取得等量精确度。D压缩网络可以更好地平行安装62次基准。在公共基准中进行。