[Paper Review] Pixel-wise Attentional Gating for Parsimonious Pixel Labeling
This paper proposes Pixel-wise Attentional Gating (PAG), a generic, differentiable mechanism that learns to dynamically allocate computation across spatial locations in deep CNNs for pixel-level labeling tasks. By using Gumbel-Softmax sampling to train sparse, per-pixel binary masks, PAG enables adaptive inference—reducing FLOPs by up to 30% with minimal accuracy drop—while improving performance through dynamic pooling and selective feature processing across semantic segmentation, depth estimation, and surface normal prediction tasks.
To achieve parsimonious inference in per-pixel labeling tasks with a limited computational budget, we propose a \emph{Pixel-wise Attentional Gating} unit (\emph{PAG}) that learns to selectively process a subset of spatial locations at each layer of a deep convolutional network. PAG is a generic, architecture-independent, problem-agnostic mechanism that can be readily "plugged in" to an existing model with fine-tuning. We utilize PAG in two ways: 1) learning spatially varying pooling fields that improve model performance without the extra computation cost associated with multi-scale pooling, and 2) learning a dynamic computation policy for each pixel to decrease total computation while maintaining accuracy. We extensively evaluate PAG on a variety of per-pixel labeling tasks, including semantic segmentation, boundary detection, monocular depth and surface normal estimation. We demonstrate that PAG allows competitive or state-of-the-art performance on these tasks. Our experiments show that PAG learns dynamic spatial allocation of computation over the input image which provides better performance trade-offs compared to related approaches (e.g., truncating deep models or dynamically skipping whole layers). Generally, we observe PAG can reduce computation by $10\%$ without noticeable loss in accuracy and performance degrades gracefully when imposing stronger computational constraints.
Motivation & Objective
- To address the high computational cost of deep CNNs in edge and mobile deployment for pixel-level labeling tasks.
- To enable dynamic inference by learning spatially varying computation allocation per pixel, rather than processing all locations uniformly.
- To develop a generic, architecture- and task-agnostic mechanism that can be easily integrated into existing models via fine-tuning.
- To improve performance trade-offs by learning dynamic pooling fields and selective computation paths without increasing computational overhead.
- To demonstrate that dynamic computation allocation at the pixel level is beneficial for fine-grained prediction tasks like semantic segmentation and depth estimation.
Proposed method
- Proposes Pixel-wise Attentional Gating (PAG), a differentiable mechanism that generates sparse binary masks per spatial location using the Gumbel-Softmax trick for end-to-end training.
- Inserts PAG units across multiple layers of a residual network to learn dynamic, input-dependent computation paths, where only selected spatial locations are processed at each layer.
- Uses a sparsity hyperparameter to control the average number of active spatial locations per layer, enabling explicit control over computational budget.
- Employs PAG to dynamically select pooling field sizes per pixel, replacing fixed or multi-scale pooling with a learnable, adaptive aggregation mechanism.
- Applies a stage-wise training strategy to train the MultiPool module with PAG, where attention maps constrain information flow and improve feature fusion.
- Trains the model using standard task-specific loss functions (e.g., cross-entropy, L1 loss) without reinforcement learning, relying on a simple sparsity target correlated with FLOPs.
Experimental results
Research questions
- RQ1Can dynamic, spatially varying computation allocation at the pixel level improve performance in pixel labeling tasks without increasing computational cost?
- RQ2Does learning to selectively process only informative spatial locations lead to better accuracy-computation trade-offs compared to fixed-depth or layer-skipping strategies?
- RQ3Can PAG effectively learn to adapt pooling field sizes per pixel to improve receptive field modeling in a computationally efficient way?
- RQ4How does PAG perform across diverse pixel labeling tasks such as semantic segmentation, boundary detection, monocular depth, and surface normal estimation?
- RQ5To what extent can computation be reduced (in FLOPs) while maintaining competitive performance using PAG’s dynamic inference mechanism?
Key findings
- PAG reduces total FLOPs by up to 30% with only a 3–5% performance drop on average across tasks, demonstrating graceful degradation under computational constraints.
- On the Cityscapes and Stanford-2D-3D datasets, PAG with MultiPool improves performance over baseline models and surpasses state-of-the-art methods in semantic segmentation and surface normal estimation.
- The PAG-enhanced MultiPool module outperforms a weighted average fusion baseline (MP@Res5 w-Avg.) in both accuracy and robustness, especially on large-perspective images.
- For surface normal estimation, the model achieves a mean angular error of 16.5° on Stanford-2D-3D and 21.7° on NYUv2, outperforming methods like Eigen [12] and Wang [53] without multi-task learning or large-scale data augmentation.
- Qualitative analysis shows PAG attention maps concentrate computation on salient regions such as object boundaries, depth discontinuities, and normal discontinuities, confirming effective dynamic allocation.
- The model maintains strong performance on monocular depth estimation without using extra training images (unlike methods relying on ~100k additional images), achieving competitive results with a simpler training setup.
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.