Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

AutoSlim: Towards One-Shot Architecture Search for Channel Numbers

About

We study how to set channel numbers in a neural network to achieve better accuracy under constrained resources (e.g., FLOPs, latency, memory footprint or model size). A simple and one-shot solution, named AutoSlim, is presented. Instead of training many network samples and searching with reinforcement learning, we train a single slimmable network to approximate the network accuracy of different channel configurations. We then iteratively evaluate the trained slimmable model and greedily slim the layer with minimal accuracy drop. By this single pass, we can obtain the optimized channel configurations under different resource constraints. We present experiments with MobileNet v1, MobileNet v2, ResNet-50 and RL-searched MNasNet on ImageNet classification. We show significant improvements over their default channel configurations. We also achieve better accuracy than recent channel pruning methods and neural architecture search methods. Notably, by setting optimized channel numbers, our AutoSlim-MobileNet-v2 at 305M FLOPs achieves 74.2% top-1 accuracy, 2.4% better than default MobileNet-v2 (301M FLOPs), and even 0.2% better than RL-searched MNasNet (317M FLOPs). Our AutoSlim-ResNet-50 at 570M FLOPs, without depthwise convolutions, achieves 1.3% better accuracy than MobileNet-v1 (569M FLOPs). Code and models will be available at: https://github.com/JiahuiYu/slimmable_networks

Jiahui Yu, Thomas Huang• 2019

Related benchmarks

TaskDatasetResultRank
Image ClassificationCIFAR-10 (test)
Accuracy93.2
3381
Image ClassificationImageNet (val)
Top-1 Acc76
1206
Image ClassificationImageNet-1k (val)
Top-1 Accuracy76
960
Image ClassificationImageNet 1k (test)
Top-1 Accuracy75.6
939
Image ClassificationImageNet-1k (val)
Top-1 Acc74.2
706
Image ClassificationImageNet
Top-1 Accuracy76
431
Image ClassificationImageNet (val)
Top-1 Accuracy76
68
Image ClassificationImageNet (val)
Top-1 Accuracy (Baseline)76.1
59
Image ClassificationImageNet-1k (val)
Pruned Top-1 Acc75.6
46
Image ClassificationImageNet-1k (val)
Top-1 Prune Accuracy76
35
Showing 10 of 17 rows

Other info

Follow for update