arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1901.09504cs.LGstat.ML
收藏

利用离群通道分裂改进神经网络Quantization

Improving Neural Network Quantization without Retraining using Outlier Channel Splitting

Cornell University(康奈尔大学)

Ritchie Zhao, Yuwei Hu, Jordan Dotzel, Christopher De Sa, Zhiru Zhang

摘要:

量化可以改善神经网络在商用GPU和专用加速器上的执行延迟和能效。现有的大多数文献都集中在训练量化的DNN上,而这项工作则研究了在没有(重新)训练的情况下量化浮点模型的研究较少的主题。DNN权重和激活在训练后遵循钟形分布,而实际硬件使用线性量化网格。这导致在处理分布中的异常值方面的挑战。先前的工作已经通过裁剪离群值或使用专门的硬件来解决这个问题。在这项工作中,我们提出了离群通道分裂(OCS),它复制包含离群值的通道,然后将通道值减半。网络在功能上保持相同,但受影响的离群值被移向分布的中心。OCS不需要额外的培训,可以在商用硬件上工作。对ImageNet分类和语言建模的实验评估表明,OCS可以以较小的开销胜过最先进的裁剪技术。

英文摘要:

Quantization can improve the execution latency and energy efficiency of neural networks on both commodity GPUs and specialized accelerators. The majority of existing literature focuses on training quantized DNNs, while this work examines the less-studied topic of quantizing a floating-point model without (re)training. DNN weights and activations follow a bell-shaped distribution post-training, while practical hardware uses a linear quantization grid. This leads to challenges in dealing with outliers in the distribution. Prior work has addressed this by clipping the outliers or using specialized hardware. In this work, we propose outlier channel splitting (OCS), which duplicates channels containing outliers, then halves the channel values. The network remains functionally identical, but affected outliers are moved toward the center of the distribution. OCS requires no additional training and works on commodity hardware. Experimental evaluation on ImageNet classification and language modeling shows that OCS can outperform state-of-the-art clipping techniques with only minor overhead.

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

↑