Sparse Refinement for Efficient High-Resolution Semantic Segmentation
Zhijian Liu, Zhuoyang Zhang, Samir Khaki, Shang Yang, Haotian Tang, Chenfeng Xu, Kurt Keutzer, Song Han
TL;DR
SparseRefine tackles the latency of high-resolution semantic segmentation by combining dense low-resolution predictions with sparse high-resolution refinements. It uses an entropy-based pixel selector to choose a small, uncertain subset of pixels, refines them with a sparse feature extractor operating on high-resolution input, and fuses the refinements with a gated ensembler. The gating mechanism is defined by $w = \text{sigmoid}(g([y_1; y_2; e_1; e_2]))$ and the final prediction is $y = f(w \cdot y_1 + (1 - w) \cdot y_2)$, enabling principled fusion of dense and sparse information. The approach is architecture-agnostic and achieves 1.5× to 3.7× speedups on multiple backbones (e.g., HRNet-W48, SegFormer-B5, Mask2Former, SegNeXt-L) on Cityscapes with negligible accuracy loss, while generalizing across datasets such as Pascal VOC, BDD100K, DeepGlobe, and ISIC. This dense-sparse paradigm enables practical deployment of high-resolution semantic segmentation in latency-sensitive applications.
Abstract
Semantic segmentation empowers numerous real-world applications, such as autonomous driving and augmented/mixed reality. These applications often operate on high-resolution images (e.g., 8 megapixels) to capture the fine details. However, this comes at the cost of considerable computational complexity, hindering the deployment in latency-sensitive scenarios. In this paper, we introduce SparseRefine, a novel approach that enhances dense low-resolution predictions with sparse high-resolution refinements. Based on coarse low-resolution outputs, SparseRefine first uses an entropy selector to identify a sparse set of pixels with high entropy. It then employs a sparse feature extractor to efficiently generate the refinements for those pixels of interest. Finally, it leverages a gated ensembler to apply these sparse refinements to the initial coarse predictions. SparseRefine can be seamlessly integrated into any existing semantic segmentation model, regardless of CNN- or ViT-based. SparseRefine achieves significant speedup: 1.5 to 3.7 times when applied to HRNet-W48, SegFormer-B5, Mask2Former-T/L and SegNeXt-L on Cityscapes, with negligible to no loss of accuracy. Our "dense+sparse" paradigm paves the way for efficient high-resolution visual computing.
