Anytime Dense Prediction with Confidence Adaptivity

Zhuang Liu, Zhiqiu Xu, Hung-Ju Wang, Trevor Darrell, Evan Shelhamer
4/1/2021
cs.CVcs.LG

Official code: liuzhuang13/anytime (51 stars, Python, MIT, last commit 2024-08-23).

Abstract

Anytime inference requires a model to make a progression of predictions which might be halted at any time. Prior research on anytime visual recognition has mostly focused on image classification.

Show full abstract

We propose the first unified and end-to-end approach for anytime dense prediction. A cascade of "exits" is attached to the model to make multiple predictions. We redesign the exits to account for the depth and spatial resolution of the features for each exit. To reduce total computation, and make full use of prior predictions, we develop a novel spatially adaptive approach to avoid further computation on regions where early predictions are already sufficiently confident. Our full method, named anytime dense prediction with confidence (ADP-C), achieves the same level of final accuracy as the base model, and meanwhile significantly reduces total computation. We evaluate our method on Cityscapes semantic segmentation and MPII human pose estimation: ADP-C enables anytime inference without sacrificing accuracy while also reducing the total FLOPs of its base models by 44.4% and 59.1%. We compare with anytime inference by deep equilibrium networks and feature-based stochastic sampling, showing that ADP-C dominates both across the accuracy-computation curve. Our code is available at https://github.com/liuzhuang13/anytime .

View on arXivView PDF

Code Implementations(1)

MIT

Anytime Dense Prediction with Confidence Adaptivity (ICLR 2022)

513Python, CudaApr 25, 20222 years agoMIT

Similar Papers

Cite this paper

@article{liu2021anytime,
  title  = {Anytime Dense Prediction with Confidence Adaptivity},
  author = {Zhuang Liu and Zhiqiu Xu and Hung-Ju Wang and Trevor Darrell and Evan Shelhamer},
  year   = {2021},
  eprint = {2104.00749},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.00749}
}

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

Discussion