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

量化神经网络低位权值的搜索

Searching for Low-Bit Weights in Quantized Neural Networks

Peking University(北京大学);University of Sydney(悉尼大学)

Zhaohui Yang, Yunhe Wang, Kai Han, Chunjing Xu, Chao Xu, Dacheng Tao, Chang Xu

摘要:

具有低位权重和激活的量化神经网络对于开发AI加速器具有吸引力。然而,大多数传统的量化方法中使用的量化函数是不可微的,这增加了量化网络的优化难度。与全精度参数(即,32-位浮点数),则从小得多的集合中选择低位值。例如,在4位空间中只有16种可能性。因此,我们提出将任意量化神经网络中的离散权值视为可搜索变量,并利用微分方法精确搜索它们。特别地,每个权重被表示为离散值集合上的概率分布。概率在训练期间被优化,并且具有最高概率的值被选择以建立期望的量化网络。基准测试的实验结果表明,该方法能够产生量化的神经网络具有更高的性能比国家的最先进的方法对图像分类和超分辨率任务。

英文摘要:

Quantized neural networks with low-bit weights and activations are attractive for developing AI accelerators. However, the quantization functions used in most conventional quantization methods are non-differentiable, which increases the optimization difficulty of quantized networks. Compared with full-precision parameters (i.e., 32-bit floating numbers), low-bit values are selected from a much smaller set. For example, there are only 16 possibilities in 4-bit space. Thus, we present to regard the discrete weights in an arbitrary quantized neural network as searchable variables, and utilize a differential method to search them accurately. In particular, each weight is represented as a probability distribution over the discrete value set. The probabilities are optimized during training and the values with the highest probability are selected to establish the desired quantized network. Experimental results on benchmarks demonstrate that the proposed method is able to produce quantized neural networks with higher performance over the state-of-the-art methods on both image classification and super-resolution tasks.

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

↑