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

APQ:网络体系结构、剪枝和Quantization策略的联合研究

APQ: Joint Search for Network Architecture, Pruning and Quantization Policy

Massachusetts Institute of Technology(麻省理工学院);Shanghai Jiao Tong University(上海交通大学)

Tianzhe Wang, Kuan Wang, Han Cai, Ji Lin, Zhijian Liu, Song Han

摘要:

我们提出了在资源受限的硬件上进行高效深度学习推理的APQ。与以前的方法,分别搜索的神经结构,修剪政策,量化政策,我们优化他们的联合方式。为了处理它带来的更大的设计空间,一种有前途的方法是训练量化感知精度预测器,以快速获得量化模型的精度,并将其馈送到搜索引擎以选择最佳拟合。然而,训练该量化感知准确度预测器需要收集大量量化的<model,accuracy>对,这涉及量化感知微调,因此非常耗时。为了应对这一挑战,我们建议将知识从全精度(即,FP 32)精度预测器到量化感知(即,int 8)精度预测器,大大提高了样本效率。此外,收集fp 32精度预测器的数据集只需要从预先训练的一次性网络中采样来评估神经网络,而无需任何训练成本,这是非常高效的。在ImageNet上进行的大量实验证明了我们的联合优化方法的好处。在相同的准确性下,APQ将延迟/能量降低了2倍/1.3倍于MobileNetV 2 +HAQ。与单独的优化方法(ProxylessNAS+AMC+HAQ)相比,APQ实现了ImageNet精度提高2.3%,同时减少了几个数量级的GPU时间和CO2排放,推动了绿色AI的环保前沿。代码和视频是公开的。

英文摘要:

We present APQ for efficient deep learning inference on resource-constrained hardware. Unlike previous methods that separately search the neural architecture, pruning policy, and quantization policy, we optimize them in a joint manner. To deal with the larger design space it brings, a promising approach is to train a quantization-aware accuracy predictor to quickly get the accuracy of the quantized model and feed it to the search engine to select the best fit. However, training this quantization-aware accuracy predictor requires collecting a large number of quantized <model, accuracy> pairs, which involves quantization-aware finetuning and thus is highly time-consuming. To tackle this challenge, we propose to transfer the knowledge from a full-precision (i.e., fp32) accuracy predictor to the quantization-aware (i.e., int8) accuracy predictor, which greatly improves the sample efficiency. Besides, collecting the dataset for the fp32 accuracy predictor only requires to evaluate neural networks without any training cost by sampling from a pretrained once-for-all network, which is highly efficient. Extensive experiments on ImageNet demonstrate the benefits of our joint optimization approach. With the same accuracy, APQ reduces the latency/energy by 2x/1.3x over MobileNetV2+HAQ. Compared to the separate optimization approach (ProxylessNAS+AMC+HAQ), APQ achieves 2.3% higher ImageNet accuracy while reducing orders of magnitude GPU hours and CO2 emission, pushing the frontier for green AI that is environmental-friendly. The code and video are publicly available.

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

↑