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

ANT:为低比特深度神经网络开发自适应数值数据类型Quantization

ANT: Exploiting Adaptive Numerical Data Type for Low-bit Deep Neural Network Quantization

Shanghai Jiao Tong University(上海交通大学);Shanghai Qi Zhi Institute(上海期智研究院);Microsoft Research(微软研究院);Institute for AI Industry Research (AIR), Tsinghua University(清华大学人工智能产业研究院(AIR));University of Rochester(罗切斯特大学)

Cong Guo, Chen Zhang, Jingwen Leng, Zihan Liu, Fan Yang, Yunxin Liu, Minyi Guo, Yuhao Zhu

摘要:

量化是一种减少DNN模型计算和内存成本的技术,DNN模型变得越来越大。现有的量化解决方案使用定点整数或浮点类型,其优点有限,因为两者都需要更多的位来保持原始模型的准确性。另一方面,可变长度量化对正常值使用低比特量化,对一小部分异常值使用高精度量化。尽管这类工作带来了算法上的好处,但由于可变长度的编码和解码,它也引入了显著的硬件开销。在这项工作中,我们提出了一个固定长度的自适应数值数据类型称为ANT,以实现低比特量化与微小的硬件开销。我们的数据类型ANT利用两个关键创新来利用DNN模型中的张量内和张量间自适应机会。首先,我们提出了一种特殊的数据类型flint,它结合了float和int的优点,以适应张量中不同值的重要性。其次,我们提出了一个自适应框架,根据其分布特性为每个张量选择最佳类型。我们为ANT设计了一个统一的处理元素架构,并展示了其与现有DNN加速器集成的便利性。我们的设计结果在2.8 $\times$的加速比和2.5 $\times$能源效率的改善,在国家的最先进的量化加速器。

英文摘要:

Quantization is a technique to reduce the computation and memory cost of DNN models, which are getting increasingly large. Existing quantization solutions use fixed-point integer or floating-point types, which have limited benefits, as both require more bits to maintain the accuracy of original models. On the other hand, variable-length quantization uses low-bit quantization for normal values and high-precision for a fraction of outlier values. Even though this line of work brings algorithmic benefits, it also introduces significant hardware overheads due to variable-length encoding and decoding. In this work, we propose a fixed-length adaptive numerical data type called ANT to achieve low-bit quantization with tiny hardware overheads. Our data type ANT leverages two key innovations to exploit the intra-tensor and inter-tensor adaptive opportunities in DNN models. First, we propose a particular data type, flint, that combines the advantages of float and int for adapting to the importance of different values within a tensor. Second, we propose an adaptive framework that selects the best type for each tensor according to its distribution characteristics. We design a unified processing element architecture for ANT and show its ease of integration with existing DNN accelerators. Our design results in 2.8$\times$ speedup and 2.5$\times$ energy efficiency improvement over the state-of-the-art quantization accelerators.

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

↑