[Paper Review] Anytime Dense Prediction with Confidence Adaptivity
This paper proposes ADP-C, the first end-to-end anytime dense prediction framework that enables progressive, confidence-adaptive inference for semantic segmentation and human pose estimation. By redesigning early exits with encoder-decoder heads and applying spatially adaptive computation based on prediction confidence, ADP-C reduces total FLOPs by 44.4% and 59.1% on Cityscapes and MPII while maintaining the same final accuracy as the base model.
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. 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 .
Motivation & Objective
- To enable anytime inference for dense prediction tasks, where predictions can be halted at any time with progressively improving quality.
- To reduce computational cost in dense prediction models without sacrificing final accuracy, especially for real-time or low-resource deployment.
- To design a unified, end-to-end trainable framework that supports multiple prediction stages and spatially adaptive computation.
- To develop a confidence-based masking mechanism that avoids redundant computation on already confident predictions across space and layers.
Proposed method
- Introduces a cascade of early exits with encoder-decoder heads to handle varying feature depth and spatial resolution across stages.
- Redesigns exit heads to ensure sufficient receptive fields and spatial smoothing, improving early prediction quality.
- Applies spatially adaptive inference by masking pixels with high prediction confidence, persisting their outputs and skipping convolutions in later layers.
- Uses maximum probability of class predictions as the confidence measure to determine which pixels to mask and skip further computation.
- Interpolates features for masked pixels instead of convolving, reducing FLOPs while preserving prediction consistency.
- Trains the entire model end-to-end, including all exits and the confidence-based masking mechanism, to optimize accuracy and efficiency jointly.
Experimental results
Research questions
- RQ1Can a unified, end-to-end deep learning framework support anytime dense prediction with progressive accuracy improvements?
- RQ2How can spatial structure in dense predictions be exploited to reduce computation without accuracy loss?
- RQ3What confidence measure enables effective and efficient spatially adaptive inference in dense prediction tasks?
- RQ4How does confidence-adaptive computation compare to uniform or random masking in terms of accuracy and FLOP reduction?
- RQ5Can the proposed method achieve significant FLOP reduction while maintaining final model accuracy on diverse dense prediction benchmarks?
Key findings
- ADP-C reduces total FLOPs by 44.4% on Cityscapes semantic segmentation and 59.1% on MPII human pose estimation compared to the base HRNet-W18 model.
- The final predictions of ADP-C achieve the same mIoU as the base model, demonstrating no accuracy degradation despite reduced computation.
- Confidence-based masking using maximum probability outperforms fixed-ratio and random masking, with entropy-based confidence performing similarly but less efficiently.
- The ablation study confirms that redesigned exit heads with encoder-decoder structures significantly improve early prediction quality and overall accuracy-computation tradeoff.
- Visualizations show that high-confidence regions (e.g., road, sky) are masked early, while complex regions (e.g., pedestrians, occluded limbs) are processed more deeply, aligning with intuitive computation allocation.
- ADP-C dominates both deep equilibrium networks and feature-based stochastic sampling across the entire accuracy-computation curve in both benchmarks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.