arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2104.11849cs.CVcs.LGeess.IV
收藏

所有MobileNets的量化都很差吗?从多尺度分布动力学的角度研究Quantization对依赖可分卷积网络的影响

Do All MobileNets Quantize Poorly? Gaining Insights into the Effect of Quantization on Depthwise Separable Convolutional Networks Through the Eyes of Multi-scale Distributional Dynamics

University of Waterloo(滑铁卢大学);Waterloo Artificial Intelligence Institute(滑铁卢人工智能研究所)

Stone Yun, Alexander Wong

摘要:

随着“移动人工智能”革命的不断发展,了解边缘部署的深度神经网络行为的需求也在不断增长。特别是,MobileNets是移动深度卷积神经网络(CNN)的首选系列。然而,在训练后量化下,它们通常具有显著的精度下降。虽然研究已经引入了量化感知训练和其他方法来应对这一挑战,但对于为什么MobileNets(以及潜在的深度可分离CNN(DWSCNN))与其他CNN架构相比表现如此之差,人们的理解有限。为了更深入地了解这一现象,我们采取了不同的策略,研究了MobileNet-V1、一组较小的DWSCNN和常规CNN的多尺度分布动态。具体来说,我们调查的影响,量化的权重和激活分布动态的信息传播从一层到另一层,以及在网络级的分布动态的整体变化。这种细粒度的分析揭示了显着的动态范围波动和DWSCNN中的通道和分层分布之间的“分布失配”,导致信息传播过程中的量化退化和分布偏移。此外,对激活量化误差的分析表明,与常规CNN相比,DWSCNN中存在更大的量化误差累积。希望这些见解可以导致减少这种分布动态变化的创新策略,并改善移动设备的训练后量化。

英文摘要:

As the "Mobile AI" revolution continues to grow, so does the need to understand the behaviour of edge-deployed deep neural networks. In particular, MobileNets are the go-to family of deep convolutional neural networks (CNN) for mobile. However, they often have significant accuracy degradation under post-training quantization. While studies have introduced quantization-aware training and other methods to tackle this challenge, there is limited understanding into why MobileNets (and potentially depthwise-separable CNNs (DWSCNN) in general) quantize so poorly compared to other CNN architectures. Motivated to gain deeper insights into this phenomenon, we take a different strategy and study the multi-scale distributional dynamics of MobileNet-V1, a set of smaller DWSCNNs, and regular CNNs. Specifically, we investigate the impact of quantization on the weight and activation distributional dynamics as information propagates from layer to layer, as well as overall changes in distributional dynamics at the network level. This fine-grained analysis revealed significant dynamic range fluctuations and a "distributional mismatch" between channelwise and layerwise distributions in DWSCNNs that lead to increasing quantized degradation and distributional shift during information propagation. Furthermore, analysis of the activation quantization errors show that there is greater quantization error accumulation in DWSCNN compared to regular CNNs. The hope is that such insights can lead to innovative strategies for reducing such distributional dynamics changes and improve post-training quantization for mobile.

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

↑