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

TensorQuant -深度神经网络的仿真工具Quantization

TensorQuant - A Simulation Toolbox for Deep Neural Network Quantization

Fraunhofer ITWM(弗劳恩霍夫工业数学研究所);TU Kaiserslautern(凯泽斯劳滕工业大学)

Dominik Marek Loroch, Norbert Wehn, Franz-Josef Pfreundt, Janis Keuper

摘要:

最近的研究表明,深度神经网络(DNN)的训练和推理可以用训练/测试数据、权重和梯度的低精度数值表示来计算,而不会损失一般的准确性。这种紧凑表示的好处是双重的:它们可以显着减少分布式DNN训练中的通信瓶颈,并在FPGA等硬件加速器上更快地实现神经网络。已经提出了几种量化方法来将原始的32位浮点问题映射到低位表示。虽然大多数相关出版物在单个DNN拓扑上验证了所提出的方法,但显然,量化方法和编码比特数的最佳选择是拓扑相关的。为此,没有通用的理论,这将允许用户在DNN拓扑的设计期间导出最佳量化。在本文中,我们为TensorFlow框架提供了一个量化工具箱。TensorQuant允许在训练和推理期间对现有DNN拓扑进行透明量化模拟。TensorQuant支持通用量化方法,并允许对量化对单层以及完整拓扑的影响进行实验评估。在使用TensorQuant的第一系列实验中,我们展示了对流行的CNN拓扑的定点量化的分析。

英文摘要:

Recent research implies that training and inference of deep neural networks (DNN) can be computed with low precision numerical representations of the training/test data, weights and gradients without a general loss in accuracy. The benefit of such compact representations is twofold: they allow a significant reduction of the communication bottleneck in distributed DNN training and faster neural network implementations on hardware accelerators like FPGAs. Several quantization methods have been proposed to map the original 32-bit floating point problem to low-bit representations. While most related publications validate the proposed approach on a single DNN topology, it appears to be evident, that the optimal choice of the quantization method and number of coding bits is topology dependent. To this end, there is no general theory available, which would allow users to derive the optimal quantization during the design of a DNN topology. In this paper, we present a quantization tool box for the TensorFlow framework. TensorQuant allows a transparent quantization simulation of existing DNN topologies during training and inference. TensorQuant supports generic quantization methods and allows experimental evaluation of the impact of the quantization on single layers as well as on the full topology. In a first series of experiments with TensorQuant, we show an analysis of fix-point quantizations of popular CNN topologies.

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

↑