arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2105.08952cs.CVcs.LG
收藏

BatchQuant:基于鲁棒量化器的全量化体系结构搜索

BatchQuant: Quantized-for-all Architecture Search with Robust Quantizer

Apple(苹果公司)

Haoping Bai, Meng Cao, Ping Huang, Jiulong Shan

摘要:

随着深度学习模型在边缘设备上的应用加速增长,快速适应具有不同资源约束的各种场景已成为模型部署的关键方面。因此,具有自适应配置的模型优化策略变得越来越流行。虽然单次量化神经架构搜索在模型架构和量化策略方面都具有灵活性,但组合搜索空间带来了许多挑战,包括训练权重共享超网时的不稳定性以及难以导航指数增长的搜索空间。现有的方法倾向于将架构搜索空间限制为一小组选项,或者将量化策略搜索空间限制为固定精度策略。为此,我们提出了BatchQuant,这是一种强大的量化器配方,可以快速稳定地训练紧凑,单次,混合精度,权重共享的超网。我们采用BatchQuant来训练一个紧凑的超网(提供超过$10^{76}$量化的超网),比以前的方法在更少的GPU时间。我们的方法,量化的所有(QFA),是第一个无缝扩展一杆权重共享NAS超网,以支持任意超低位宽混合精度量化策略的重复训练。QFA为联合硬件感知神经架构搜索和量化开辟了新的可能性。我们证明了我们的方法在ImageNet上的有效性,并在低复杂度约束($<20$ MFLOPs)下实现了SOTA Top-1的准确性。代码和模型将在https://github.com/bhpfelix/QFA上公开提供。

英文摘要:

As the applications of deep learning models on edge devices increase at an accelerating pace, fast adaptation to various scenarios with varying resource constraints has become a crucial aspect of model deployment. As a result, model optimization strategies with adaptive configuration are becoming increasingly popular. While single-shot quantized neural architecture search enjoys flexibility in both model architecture and quantization policy, the combined search space comes with many challenges, including instability when training the weight-sharing supernet and difficulty in navigating the exponentially growing search space. Existing methods tend to either limit the architecture search space to a small set of options or limit the quantization policy search space to fixed precision policies. To this end, we propose BatchQuant, a robust quantizer formulation that allows fast and stable training of a compact, single-shot, mixed-precision, weight-sharing supernet. We employ BatchQuant to train a compact supernet (offering over $10^{76}$ quantized subnets) within substantially fewer GPU hours than previous methods. Our approach, Quantized-for-all (QFA), is the first to seamlessly extend one-shot weight-sharing NAS supernet to support subnets with arbitrary ultra-low bitwidth mixed-precision quantization policies without retraining. QFA opens up new possibilities in joint hardware-aware neural architecture search and quantization. We demonstrate the effectiveness of our method on ImageNet and achieve SOTA Top-1 accuracy under a low complexity constraint ($<20$ MFLOPs). The code and models will be made publicly available at https://github.com/bhpfelix/QFA.

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

↑