Skip to main content
QUICK REVIEW

[Paper Review] APQ: Joint Search for Network Architecture, Pruning and Quantization Policy

Tianzhe Wang, Kuan Wang|arXiv (Cornell University)|Jun 15, 2020
Advanced Neural Network ApplicationsComputer Science21 references22 citations
TL;DR

APQ proposes a joint search framework for neural architecture, pruning, and quantization policies to optimize accuracy, latency, and energy efficiency simultaneously. By leveraging a quantization-aware accuracy predictor trained via knowledge distillation from a full-precision predictor, APQ achieves state-of-the-art accuracy with 2× lower latency and 1.3× lower energy consumption than MobileNetV2+HAQ, while reducing GPU hours and CO₂ emissions by orders of magnitude compared to sequential optimization.

ABSTRACT

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 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.

Motivation & Objective

  • To address the sub-optimal performance and high computational cost of sequential optimization in neural architecture, pruning, and quantization.
  • To reduce the search cost of joint model optimization, which suffers from a massive, multiplicative search space.
  • To accelerate accuracy prediction for quantized models without expensive fine-tuning during search.
  • To minimize environmental impact by drastically reducing GPU hours and CO₂ emissions in model search.
  • To enable end-to-end, hardware-aware model search with no retraining or evaluation on the target dataset during search.

Proposed method

  • APQ introduces a joint search space that simultaneously optimizes architecture, pruning policy, and quantization policy.
  • It employs a quantization-aware accuracy predictor to estimate model accuracy without fine-tuning, using only a few fully connected layers.
  • The predictor is trained via knowledge distillation: a full-precision accuracy predictor is first trained on a once-for-all network, then transferred to the quantization-aware setting.
  • The full-precision predictor is efficiently trained using a single pre-trained once-for-all network, avoiding costly retraining for each candidate.
  • The method avoids retraining or evaluation on the target dataset during search by relying solely on the pre-trained predictor.
  • The predictor-transfer technique improves sample efficiency by preserving architectural-quantization mutual information, enabling high-accuracy prediction with limited data.

Experimental results

Research questions

  • RQ1Can joint optimization of architecture, pruning, and quantization yield better accuracy and efficiency than sequential optimization?
  • RQ2How can we accelerate the search for mixed-precision models without costly fine-tuning for each candidate?
  • RQ3Can knowledge distillation from a full-precision accuracy predictor improve the sample efficiency of training a quantization-aware accuracy predictor?
  • RQ4What is the impact of joint search on CO₂ emissions and computational cost compared to multi-stage approaches?
  • RQ5Does predictor transfer improve the accuracy and convergence of the quantization-aware predictor in low-data regimes?

Key findings

  • APQ reduces latency by 2× and energy by 1.3× compared to MobileNetV2+HAQ under the same accuracy.
  • With the same accuracy, APQ achieves 2.3% higher ImageNet top-1 accuracy than the separate optimization approach (ProxylessNAS+AMC+HAQ), while reducing GPU hours and CO₂ emissions by orders of magnitude.
  • The joint optimization approach improves accuracy by 10.5% (from 61.4% to 71.9%) under latency constraints and 11.3% (from 61.4% to 72.7%) under energy constraints compared to MobileNetV2.
  • The predictor-transfer technique enables a 10%+ improvement in pairwise accuracy over training from scratch when data is limited.
  • APQ’s large model (Ours-C) achieves 75.1% ImageNet accuracy with half the BitOps of MobileNetV2, outperforming even a ResNet34 8-bit model while saving 8× BitOps.
  • The method reduces CO₂ emissions and cloud compute cost by two orders of magnitude compared to prior works, advancing green AI.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.