PowerQuant:非均匀Quantization的自同构搜索
PowerQuant: Automorphism Search for Non-Uniform Quantization
摘要:
深度神经网络(DNN)如今在诸如计算机视觉的许多领域中无处不在。然而,由于其高延迟,DNN的部署取决于压缩技术的发展,例如量化,其包括降低用于编码权重和激活的比特数。对隐私和安全的日益关注促使了无数据技术的发展,以提高准确性。在本文中,我们标识的量子化算子的均匀性作为现有方法的限制,并提出了一个无数据的非均匀方法。更具体地说,我们认为,为了在没有专用硬件和实现的情况下易于使用,非均匀量化不应改变DNN执行的数学运算的性质。这导致在$(\mathbb{R}_+^*,\times)$的连续自同构中搜索,这归结为由其指数定义的幂函数。为了找到这个参数,我们建议优化每一层的重建误差:特别是,我们证明了这个过程是局部凸的,并承认一个唯一的解决方案。在推理时,我们表明,我们的方法,被称为PowerQuant,只需要简单的修改量化DNN激活函数。因此,仅具有可忽略的开销,它在各种配置中显著优于现有方法。
英文摘要:
Deep neural networks (DNNs) are nowadays ubiquitous in many domains such as computer vision. However, due to their high latency, the deployment of DNNs hinges on the development of compression techniques such as quantization which consists in lowering the number of bits used to encode the weights and activations. Growing concerns for privacy and security have motivated the development of data-free techniques, at the expanse of accuracy. In this paper, we identity the uniformity of the quantization operator as a limitation of existing approaches, and propose a data-free non-uniform method. More specifically, we argue that to be readily usable without dedicated hardware and implementation, non-uniform quantization shall not change the nature of the mathematical operations performed by the DNN. This leads to search among the continuous automorphisms of $(\mathbb{R}_+^*,\times)$, which boils down to the power functions defined by their exponent. To find this parameter, we propose to optimize the reconstruction error of each layer: in particular, we show that this procedure is locally convex and admits a unique solution. At inference time, we show that our approach, dubbed PowerQuant, only require simple modifications in the quantized DNN activation functions. As such, with only negligible overhead, it significantly outperforms existing methods in a variety of configurations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。