Once-for-All: Train One Network and Specialize it for Efficient Deployment
Han Cai1, Chuang Gan2, Tianzhe Wang1, Zhekai Zhang1, Song Han1 1Massachusetts Institute of Technology, 2MIT-IBM Watson AI Lab {hancai, chuangg,
Abstract
We address the challenging problem of efficient inference across many devices and resource constraints, especially on edge devices. Conventional approaches either manually design or use neural architecture search (NAS) to find a specialized neural network and train it from scratch for each case, which is computationally prohibitive (causing $CO_{2}$ emission as much as 5 cars’ lifetime Strubell et al. (2019)) thus unscalable. In this work, we propose to train a once-for-all (OFA) network that supports diverse architectural settings by decoupling training and search, to reduce the cost. We can quickly get a specialized sub-network by selecting from the OFA network without additional training. To efficiently train OFA networks, we also propose a novel progressive shrinking algorithm, a generalized pruning method that reduces the model size across many more dimensions than pruning (depth, width, kernel size, and resolution). It can obtain a surprisingly large number of sub-networks ( $>10^{19}$ ) that can fit different hardware platforms and latency constraints while maintaining the same level of accuracy as training independently. On diverse edge devices, OFA consistently outperforms
原文 arXiv:1908.09791;中英对照 + 大白话阅读 https://aha.fim.ai/paper/1908.09791v5