Knapsack Pruning with Inner Distillation

Yonathan Aflalo, Asaf Noy, Ming Lin, Itamar Friedman, Lihi Zelnik
2/19/2020
cs.LGstat.ML
distillationquantization-pruning

Official code: yoniaflalo/knapsack_pruning (27 stars, Python, Apache-2.0, last commit 2020-05-26).

Abstract

Neural network pruning reduces the computational cost of an over-parameterized network to improve its efficiency. Popular methods vary from $\ell_1$-norm sparsification to Neural Architecture Search (NAS).

Show full abstract

In this work, we propose a novel pruning method that optimizes the final accuracy of the pruned network and distills knowledge from the over-parameterized parent network's inner layers. To enable this approach, we formulate the network pruning as a Knapsack Problem which optimizes the trade-off between the importance of neurons and their associated computational cost. Then we prune the network channels while maintaining the high-level structure of the network. The pruned network is fine-tuned under the supervision of the parent network using its inner network knowledge, a technique we refer to as the Inner Knowledge Distillation. Our method leads to state-of-the-art pruning results on ImageNet, CIFAR-10 and CIFAR-100 using ResNet backbones. To prune complex network structures such as convolutions with skip-links and depth-wise convolutions, we propose a block grouping approach to cope with these structures. Through this we produce compact architectures with the same FLOPs as EfficientNet-B0 and MobileNetV3 but with higher accuracy, by $1\%$ and $0.3\%$ respectively on ImageNet, and faster runtime on GPU.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Implementation of knapsack pruning

274Python, DockerfileApr 7, 20206 years agoApache-2.0

Similar Papers

Cite this paper

@article{aflalo2020knapsack,
  title  = {Knapsack Pruning with Inner Distillation},
  author = {Yonathan Aflalo and Asaf Noy and Ming Lin and Itamar Friedman and Lihi Zelnik},
  year   = {2020},
  eprint = {2002.08258},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.08258}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2002.08258.svg)](https://codeofpaper.com/paper/2002.08258)

Discussion