Introduction
Deep learning models for semantic segmentation—the task of assigning a category to every pixel in an image—are computationally intensive. While structural pruning (removing entire filters or channels) is a standard technique to optimize these models for edge deployment, most existing methods were originally designed for image classification. Researchers from the Huazhong University of Science and Technology, in a paper presented at AAAI-2025, argue that these "classification-first" pruning methods are suboptimal for segmentation because they ignore critical spatial information. They propose SIRFP (Spatial-aware Information Redundancy Filter Pruning), which treats pruning as a graph optimization problem to maintain spatial sensitivity while reducing model complexity.
The Challenge: Spatial Sensitivity in Segmentation
Most pruning algorithms evaluate filter importance based on weights or "pooled" features, where spatial dimensions are collapsed into a single vector. This approach is effective for image classification, where the primary goal is identifying what is in an image. However, semantic segmentation is inherently location-sensitive; it requires precise knowledge of where objects are situated.
Standard methods often discard filters that appear redundant in terms of global content but are unique in their spatial distribution. Discarding these spatially distinct filters leads to degraded segmentation boundaries and mislocated objects. SIRFP addresses this by preserving the spatial sensitivity required for high-fidelity segmentation.
Methodology: SIRFP
The authors introduce three key innovations to bridge the gap between pruning and spatial awareness:
- Spatial-aware Redundancy Metric: Instead of relying on weights, SIRFP calculates similarity between channels using un-pooled, high-resolution feature maps. It employs Kullback-Leibler (KL) Divergence to measure spatial information overlap. To manage the memory overhead of high-resolution maps, an Exponential Moving Average (EMA) updates redundancy scores incrementally during training.
- Pruning as a Graph Problem: Pruning is reformulated as a Maximum Edge Weight Clique Problem (MEWCP). In this framework, nodes represent filters, and edge weights represent dissimilarity (non-redundancy). The objective is to identify a subset (clique) of filters that maximizes total edge weight, ensuring the remaining filters are as diverse as possible.
- Efficient Heuristic Greedy Pruning (EHGP): Since solving MEWCP is NP-hard, the authors developed EHGP, a greedy algorithm that iteratively removes channels contributing most to total redundancy. This reduces complexity to $O(n^2)$, making it feasible for large-scale networks.
Experimental Setup
The researchers evaluated SIRFP across several major benchmarks:
- Cityscapes: Urban street scenes with 19 categories.
- ADE20K: Challenging dataset with 150 categories of diverse scenes.
- COCO stuff-10k: 171 categories of complex "stuff" and "things."
- Generalization: Tests on ImageNet (classification) and COCO2017 (object detection) to demonstrate versatility.
Results and Discussion
SIRFP consistently achieves a superior trade-off between model size and accuracy compared to state-of-the-art methods like DCFP and FPGM.
On the Cityscapes benchmark using a Deeplabv3-ResNet50 backbone, SIRFP demonstrated significant resilience to high pruning rates. At an 80% FLOPs reduction, SIRFP maintained a 79.4% mIoU, outperforming DCFP (78.8%) and FPGM (77.9%).
Key insights from the results include:
- Spatiality Matters: Filters that seem redundant in classification often provide unique spatial cues essential for localization.
- Set-based Importance: The value of a filter is relative to the rest of the set. SIRFP prioritizes a diverse ensemble of filters over a collection of individually "strong" but redundant ones.
- Efficiency: The EHGP solver is highly efficient, completing in 285 seconds compared to over 10,800 seconds for an exact solver, with negligible loss in accuracy.
Conclusion
SIRFP represents a significant advancement in structural pruning for spatially sensitive tasks. By incorporating spatial awareness and a graph-theoretic approach to redundancy, it enables the deployment of high-performance segmentation models on resource-constrained devices. Future work may involve optimizing the redundancy calculations for ultra-high-resolution inputs and extending the spatial-aware logic to medical imaging and other localization-critical domains.
Summary updated