Glance and Focus: a Dynamic Approach to Reducing Spatial Redundancy in Image Classification

Yulin Wang, Kangchen Lv, Rui Huang, Shiji Song, Le Yang +1 more
10/11/2020
cs.CVcs.AIcs.LG

Official code: blackfeather-wang/GFNet-Pytorch (187 stars, Python, Apache-2.0, last commit 2023-08-27).

Abstract

The accuracy of deep convolutional neural networks (CNNs) generally improves when fueled with high resolution images. However, this often comes at a high computational cost and high memory footprint.

Show full abstract

Inspired by the fact that not all regions in an image are task-relevant, we propose a novel framework that performs efficient image classification by processing a sequence of relatively small inputs, which are strategically selected from the original image with reinforcement learning. Such a dynamic decision process naturally facilitates adaptive inference at test time, i.e., it can be terminated once the model is sufficiently confident about its prediction and thus avoids further redundant computation. Notably, our framework is general and flexible as it is compatible with most of the state-of-the-art light-weighted CNNs (such as MobileNets, EfficientNets and RegNets), which can be conveniently deployed as the backbone feature extractor. Experiments on ImageNet show that our method consistently improves the computational efficiency of a wide variety of deep models. For example, it further reduces the average latency of the highly efficient MobileNet-V3 on an iPhone XS Max by 20% without sacrificing accuracy. Code and pre-trained models are available at https://github.com/blackfeather-wang/GFNet-Pytorch.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

A general framework for inferring CNNs efficiently. Reduce the inference latency of MobileNet-V3 by 1.3x on an iPhone XS Max without sacrificing accuracy.

18728Python, COct 8, 20203 years agoApache-2.0

Similar Papers

Cite this paper

@article{wang2020glance,
  title  = {Glance and Focus: a Dynamic Approach to Reducing Spatial Redundancy in Image Classification},
  author = {Yulin Wang and Kangchen Lv and Rui Huang and Shiji Song and Le Yang and Gao Huang},
  year   = {2020},
  eprint = {2010.05300},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.05300}
}

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/2010.05300.svg)](https://codeofpaper.com/paper/2010.05300)

Discussion