Resolution Adaptive Networks for Efficient Inference

Le Yang, Yizeng Han, Xi Chen, Shiji Song, Jifeng Dai +1 more
3/16/2020
259 citations
cs.CV

Official code: yangle15/RANet-pytorch (153 stars, Python, last commit 2022-07-17).

Abstract

Adaptive inference is an effective mechanism to achieve a dynamic tradeoff between accuracy and computational cost in deep networks. Existing works mainly exploit architecture redundancy in network depth or width.

Show full abstract

In this paper, we focus on spatial redundancy of input samples and propose a novel Resolution Adaptive Network (RANet), which is inspired by the intuition that low-resolution representations are sufficient for classifying "easy" inputs containing large objects with prototypical features, while only some "hard" samples need spatially detailed information. In RANet, the input images are first routed to a lightweight sub-network that efficiently extracts low-resolution representations, and those samples with high prediction confidence will exit early from the network without being further processed. Meanwhile, high-resolution paths in the network maintain the capability to recognize the "hard" samples. Therefore, RANet can effectively reduce the spatial redundancy involved in inferring high-resolution inputs. Empirically, we demonstrate the effectiveness of the proposed RANet on the CIFAR-10, CIFAR-100 and ImageNet datasets in both the anytime prediction setting and the budgeted batch classification setting.

View on arXivView PDF

Code Implementations(1)

Resolution adaptive network

15328Python, ShellFeb 27, 20204 years ago

Similar Papers

Cite this paper

@article{yang2020resolution,
  title  = {Resolution Adaptive Networks for Efficient Inference},
  author = {Le Yang and Yizeng Han and Xi Chen and Shiji Song and Jifeng Dai and Gao Huang},
  year   = {2020},
  eprint = {2003.07326},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2003.07326}
}

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

Discussion