arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2004.11506cs.LGcs.CVstat.ML
收藏

通过元学习的神经网络的自动低比特混合quantization

Automatic low-bit hybrid quantization of neural networks through meta learning

IBM Research – China(IBM中国研究院)

Tao Wang, Junsong Wang, Chang Xu, Chao Xue

摘要:

模型量化是一种广泛用于压缩和加速深度神经网络(DNN)推理的技术,特别是在部署到计算能力和功耗预算有限的边缘或物联网设备时。跨所有层的均匀比特宽度量化通常是次优的,并且针对不同层的混合量化的探索对于有效的深度压缩至关重要。本文采用元学习方法自动实现神经网络的低比特混合量化。MetaQuantNet与量化函数一起被训练以生成目标DNN的量化权重。然后,我们应用遗传算法搜索最佳的混合量化政策,满足压缩约束。使用搜索到的最佳量化策略,我们随后进行重新训练或微调,以进一步提高量化目标网络的性能。大量的实验表明,搜索的混合量化方案的性能优于均匀位宽对应。与现有的基于强化学习(RL)的混合量化搜索方法相比,这种方法依赖于繁琐的探索,我们的元学习方法对于任何压缩要求都更有效,因为MetaQuantNet只需要训练一次。

英文摘要:

Model quantization is a widely used technique to compress and accelerate deep neural network (DNN) inference, especially when deploying to edge or IoT devices with limited computation capacity and power consumption budget. The uniform bit width quantization across all the layers is usually sub-optimal and the exploration of hybrid quantization for different layers is vital for efficient deep compression. In this paper, we employ the meta learning method to automatically realize low-bit hybrid quantization of neural networks. A MetaQuantNet, together with a Quantization function, are trained to generate the quantized weights for the target DNN. Then, we apply a genetic algorithm to search the best hybrid quantization policy that meets compression constraints. With the best searched quantization policy, we subsequently retrain or finetune to further improve the performance of the quantized target network. Extensive experiments demonstrate the performance of searched hybrid quantization scheme surpass that of uniform bitwidth counterpart. Compared to the existing reinforcement learning (RL) based hybrid quantization search approach that relies on tedious explorations, our meta learning approach is more efficient and effective for any compression requirements since the MetaQuantNet only needs be trained once.

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

↑