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

FATNN:快速准确的三值神经网络

FATNN: Fast and Accurate Ternary Neural Networks

Monash University(莫纳什大学);The University of Adelaide(阿德莱德大学)

Peng Chen, Bohan Zhuang, Chunhua Shen

摘要:

三值神经网络(TNN)由于在推理中可能快几个数量级,并且比全精度对应物更节能,因此受到了很多关注。然而,仅利用3个量化级别就需要2比特来编码三进制表示。结果,传统的TNN与标准的2位模型相比具有相似的存储器消耗和速度,但是具有较差的表示能力。此外,TNN和全精度网络之间的准确性仍然存在很大差距,阻碍了它们在实际应用中的部署。为了解决这两个挑战,在这项工作中,我们首先表明,在一些温和的约束下,计算复杂性的三元内积可以减少2倍。其次,为了弥补性能差距,我们精心设计了一个依赖于实现的三进制量化算法。所提出的框架被称为快速和准确的三元神经网络(FATNN)。图像分类的实验表明,我们的FATNN超越了国家的最先进的一个显着的利润率在准确性。更重要的是,在几个平台上,分析了不同精度的加速比评估,这是一个强有力的基准,为进一步的研究。

英文摘要:

Ternary Neural Networks (TNNs) have received much attention due to being potentially orders of magnitude faster in inference, as well as more power efficient, than full-precision counterparts. However, 2 bits are required to encode the ternary representation with only 3 quantization levels leveraged. As a result, conventional TNNs have similar memory consumption and speed compared with the standard 2-bit models, but have worse representational capability. Moreover, there is still a significant gap in accuracy between TNNs and full-precision networks, hampering their deployment to real applications. To tackle these two challenges, in this work, we first show that, under some mild constraints, computational complexity of the ternary inner product can be reduced by a factor of 2. Second, to mitigate the performance gap, we elaborately design an implementation-dependent ternary quantization algorithm. The proposed framework is termed Fast and Accurate Ternary Neural Networks (FATNN). Experiments on image classification demonstrate that our FATNN surpasses the state-of-the-arts by a significant margin in accuracy. More importantly, speedup evaluation compared with various precisions is analyzed on several platforms, which serves as a strong benchmark for further research.

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

↑