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

Optimal Quantization for Batch Normalization in Neural Network Deployments and Beyond

Center for Data Science(数据科学中心);Peking University(北京大学);Megvii(旷视科技);School of Mathematical Sciences(数学科学学院)

Dachao Lin, Peiqin Sun, Guangzeng Xie, Shuchang Zhou, Zhihua Zhang

英文摘要:

Quantized Neural Networks (QNNs) use low bit-width fixed-point numbers for representing weight parameters and activations, and are often used in real-world applications due to their saving of computation resources and reproducibility of results. Batch Normalization (BN) poses a challenge for QNNs for requiring floating points in reciprocal operations, and previous QNNs either require computing BN at high precision or revise BN to some variants in heuristic ways. In this work, we propose a novel method to quantize BN by converting an affine transformation of two floating points to a fixed-point operation with shared quantized scale, which is friendly for hardware acceleration and model deployment. We confirm that our method maintains same outputs through rigorous theoretical analysis and numerical analysis. Accuracy and efficiency of our quantization method are verified by experiments at layer level on CIFAR and ImageNet datasets. We also believe that our method is potentially useful in other problems involving quantization.

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

↑