Skip to main content
QUICK REVIEW

[Paper Review] Spatially Adaptive Inference with Stochastic Feature Sampling and Interpolation

Zhenda Xie, Zheng Zhang|arXiv (Cornell University)|Mar 19, 2020
Advanced Neural Network ApplicationsComputer Science38 references10 citations
TL;DR

This paper proposes a spatially adaptive inference method that reduces computation in CNNs by stochastically sampling feature map locations based on activation responses and reconstructing the full feature map via learned interpolation. Using a Gumbel-Softmax reparameterization trick, the method enables differentiable training of binary sampling masks, achieving significant FLOPs reduction with minimal accuracy drop across object detection, semantic segmentation, and image classification tasks.

ABSTRACT

In the feature maps of CNNs, there commonly exists considerable spatial redundancy that leads to much repetitive processing. Towards reducing this superfluous computation, we propose to compute features only at sparsely sampled locations, which are probabilistically chosen according to activation responses, and then densely reconstruct the feature map with an efficient interpolation procedure. With this sampling-interpolation scheme, our network avoids expending computation on spatial locations that can be effectively interpolated, while being robust to activation prediction errors through broadly distributed sampling. A technical challenge of this sampling-based approach is that the binary decision variables for representing discrete sampling locations are non-differentiable, making them incompatible with backpropagation. To circumvent this issue, we make use of a reparameterization trick based on the Gumbel-Softmax distribution, with which backpropagation can iterate these variables towards binary values. The presented network is experimentally shown to save substantial computation while maintaining accuracy over a variety of computer vision tasks.

Motivation & Objective

  • Address the high computational cost of deep CNNs on resource-limited devices by exploiting spatial redundancy in feature maps.
  • Overcome the inefficiency of deterministic sparsity methods that skip computation only in low-activation regions.
  • Develop a differentiable sampling mechanism that enables end-to-end training despite the non-differentiability of binary sampling decisions.
  • Improve robustness to activation prediction errors by distributing samples across the feature map rather than concentrating them on high-activation areas.
  • Achieve better FLOPs-accuracy tradeoffs than existing sparse inference methods on diverse vision tasks.

Proposed method

  • Propose a stochastic sampling strategy that treats activation maps as probability fields and samples spatial locations probabilistically based on response magnitudes.
  • Use a Gumbel-Softmax reparameterization trick to enable backpropagation through binary sampling masks by differentiating through a continuous relaxation.
  • Train a content-aware sampling module that dynamically adjusts sampling density according to feature map activations.
  • Perform feature reconstruction via a learnable interpolation kernel that is jointly optimized with the sampling module.
  • Incorporate a sparse grid prior—uniformly distributed samples across the feature map—to improve interpolation stability in low-activation regions.
  • Optimize the sampling and interpolation modules end-to-end using a differentiable loss that balances accuracy and computational efficiency.

Experimental results

Research questions

  • RQ1Can stochastic, content-aware sampling reduce computation in CNNs without sacrificing accuracy?
  • RQ2How does the proposed Gumbel-Softmax reparameterization enable differentiable training of binary sampling decisions?
  • RQ3Does the inclusion of a grid prior improve interpolation quality and inference stability?
  • RQ4How does the method compare to deterministic sparsity and uniform sampling in terms of FLOPs-accuracy tradeoffs?
  • RQ5To what extent does the method generalize across different architectures and vision tasks?

Key findings

  • The proposed method reduces FLOPs by up to 50% on COCO object detection and Cityscapes semantic segmentation while maintaining or improving mAP compared to baseline methods.
  • On COCO validation set, the method achieves 44.1 mAP with 158.6 GFLOPs using ResNeXt-101, outperforming uniform sampling at the same FLOP level.
  • Inference stability is high, with mAP variance across five runs below 0.02, which degrades significantly (to 0.09) when the grid prior is removed.
  • The final temperature in the Gumbel-Softmax schedule has minimal impact on performance, with differences of less than 0.2 mAP and 3 GFLOPs across tested values.
  • Deeper residual blocks exhibit higher sparsity (e.g., up to 90% in deeper blocks with low loss weight), indicating greater spatial redundancy in semantic features.
  • The method maintains strong performance across tasks: it achieves comparable accuracy to baseline models on ImageNet while reducing FLOPs, and outperforms uniform sampling on COCO and Cityscapes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.