SpaceEvo: Searching Hardware-Friendly Search Space for Efficient Int8 Inference
Abstract
INT8 quantization is an essential compression tool to deploy a deep neural network (DNN) on resource-limited edge devices. While it greatly reduces model size and memory cost, current edge-regime DNN models cannot well utilize INT8 quantization to reduce inference latency. In this work, we find that the poor INT8 latency performance is due to the quantization-unfriendly issue: the operator and configuration (e.g., channel width) choices in a normal model design space lead to diverse quantization efficiency and can slow down the INT8 latency. To alleviate this issue, we propose SpaceEvo to efficiently search a novel hardware-aware, quantization-friendly search space, where its top-tier sub-networks achieve both superior quantization efficiency and accuracy. The key idea is to automatically evolve hardware-preferred operators and configurations guided by a search space quality metric, called Q-T score. However, naively training a candidate space from scratch for Q-T score evaluation brings prohibitive training cost, making it difficult to evolve search space on large-scale tasks (e.g., ImageNet). We further propose to conduct block-wise training and build INT8 accuracy lookup table to greatly reduce the cost. On diverse devices, SpaceEvo consistently outperforms existing manually-designed search spaces by producing both tiny and large quantized models with superior ImageNet accuracy and hardware efficiency. The discovered models, named SeqNet, achieve up to 10.1% accuracy improvement under the same latency. Our study addressed the hardware-friendly search space design challenge in NAS and paved the way for searching the search space towards efficient deployment.
BibTeX
@misc{zhang2022spaceevo,
author = {Li Lyna Zhang and Xudong Wang and Jiahang Xu and Quanlu Zhang and Yuqing Yang and Ningxin Zheng and Ting Cao and Mao Yang},
title = {{SpaceEvo: Searching Hardware-Friendly Search Space for Efficient Int8 Inference}},
year = {2022},
url = {https://openreview.net/forum?id=RsSJ2_M2Nk4},
howpublished = {OpenReview},
}Ask Althea to put this paper to the test.
Loading related content...