Real-time Semantic Image Segmentation via Spatial Sparsity

Zifeng Wu, Chunhua Shen, Anton van den HengelarXiv 2017

Abstract

Semantic image segmentation is a critical component for autonomous systems, yet its high computational cost often precludes real-time application on high-resolution imagery. This paper introduces a method to accelerate inference by a factor of 25 while maintaining high accuracy. The core innovation is a "two-column" architecture that leverages spatial sparsity: a low-resolution column identifies "simple" regions that can be processed quickly, allowing a high-resolution column to focus exclusively on complex areas. Evaluated on the Cityscapes dataset, the proposed model achieves 72.9% mIoU at approximately 15 frames per second on a single GPU.

Introduction

The task of semantic segmentation—assigning a categorical label to every pixel—is fundamental for scene understanding in autonomous driving. While Deep Learning models like Fully Convolutional Networks (FCNs) have set benchmarks for accuracy, they are notoriously slow on the high-resolution images (e.g., 1024x2048) required to detect small, distant objects. Standard models often require several seconds per frame, a latency unacceptable for vehicles at highway speeds. This research addresses the efficiency gap by exploiting the inherent resolution redundancy in natural scenes.

Methodology: Spatial Sparsity and Two-Column Architecture

The proposed system utilizes a dual-pathway approach to balance speed and precision.

The Two-Column Network

The architecture consists of two parallel processing paths:

  1. Half-Resolution Column: Processes a downsampled version of the input image to provide a coarse global context quickly.
  2. Full-Resolution Column: Processes the original high-resolution image but only in specific regions.

Spatial Sparsity Strategy

The "secret sauce" of this approach is the generation of a sparse weight map by the low-resolution column. This map categorizes image regions as "simple" (e.g., sky, road) or "complex" (e.g., pedestrians, signs). If a region is deemed simple, the high-resolution column skips it entirely, relying on the upsampled low-resolution features. This selective processing ensures that the heavy computational "tax" of high-resolution convolution is only paid where it provides the most benefit.

The fast inference pipeline utilizes a low-resolution column to generate a spatial mask, directing the high-resolution column to process only complex regions.

Structural Optimizations

Beyond spatial sparsity, several architectural refinements were implemented:

  • Uncrop Operation: To mitigate boundary artifacts caused by processing disjoint regions, an "uncrop" method ensures feature consistency across the image.
  • Backbone Pruning: The authors found that standard backbones like ResNet-50 contain significant redundancy for segmentation. By pruning up to 12 of 16 residual units, they significantly reduced the model's footprint.
  • Group Sparsity: Grouped convolutions were employed to further minimize parameter counts and FLOPs.

Experimental Results

The model was primarily benchmarked on the Cityscapes dataset, which contains 1024x2048 street-scene images with 19 semantic categories.

Performance and Accuracy

The final optimized model (Model A) achieved a 25x reduction in computational cost compared to a standard baseline (from 786g to 31.5g multiplication-adds). On a single NVIDIA GTX 980, the model runs at 15 FPS, meeting the requirements for real-time operation.

Quantitative comparison of various fusion approaches, demonstrating that the Improved Sparse Coarse-to-Fine (ISCTF) method maintains high accuracy while significantly reducing calculations.

As shown in the table above, the Improved Sparse Coarse-to-Fine (ISCTF) approach achieves a mean Intersection-over-Union (mIoU) of 75.40% on the validation set, outperforming simpler fusion methods like "sum" or "max" while maintaining a low computational profile. On the official Cityscapes test set, the model reached 72.9% mIoU, surpassing contemporary real-time models like SegNet and ENet.

Discussion and Conclusion

The primary insight of this work is that most pixels in high-resolution imagery belong to large, continuous regions that do not require high-resolution features for correct classification. By flipping the traditional attention mechanism—using low-res features to guide high-res processing—the authors achieved a breakthrough in efficiency. While boundary effects and hardware-specific implementation of sparsity remain areas for future refinement, this spatial sparsity framework provides a robust path toward deploying high-fidelity semantic segmentation in real-time autonomous systems.

Summary updated

BibTeX
@misc{wu2017real,
  author = {Zifeng Wu and Chunhua Shen and Anton van den Hengel},
  title = {{Real-time Semantic Image Segmentation via Spatial Sparsity}},
  year = {2017},
  eprint = {1712.00213},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1712.00213},
}
Figure