NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Superpixel Segmentation With Fully Convolutional Networks

Fengting Yang, Qian Sun, Hailin Jin, Zihan Zhou

Abstract

In computer vision, superpixels have been widely used as an effective way to reduce the number of image primitives for subsequent processing. But only a few attempts have been made to incorporate them into deep neural networks. One main reason is that the standard convolution operation is defined on regular grids and becomes inefficient when applied to superpixels. Inspired by an initialization strategy commonly adopted by traditional superpixel algorithms, we present a novel method that employs a simple fully convolutional network to predict superpixels on a regular image grid. Experimental results on benchmark datasets show that our method achieves state-of-the-art superpixel segmentation performance while running at about 50fps. Based on the predicted superpixels, we further develop a downsampling/upsampling scheme for deep networks with the goal of generating high-resolution outputs for dense prediction tasks. Specifically, we modify a popular network architecture for stereo matching to simultaneously predict superpixels and disparities. We show that improved disparity estimation accuracy can be obtained on public datasets.

Introduction

Superpixels—groups of pixels sharing similar visual properties—are fundamental primitives in computer vision that reduce computational complexity. Despite their utility, integrating them into Deep Neural Networks (DNNs) has been challenging. Standard convolutions are optimized for regular rectangular grids, whereas superpixels are inherently irregular. Previous deep learning approaches often relied on computationally expensive iterative clustering (like K-means) within the network, limiting real-time applicability. Furthermore, dense prediction tasks like stereo matching often suffer from detail loss during standard downsampling and upsampling processes.

Methodology

The proposed method introduces a "grid-based" association strategy to bridge the gap between irregular superpixels and regular convolutional grids.

Grid-Based Association

Instead of allowing a pixel to associate with any superpixel globally, the image is partitioned into a regular grid. Each pixel is constrained to associate with one of its nine surrounding grid cells. This structural prior ensures superpixels remain localized and compact without requiring complex global optimization.

Grid-based association strategy where each pixel is constrained to its nine surrounding grid cells.

Network Architecture and Loss Functions

The architecture uses a standard encoder-decoder with skip connections to predict a "soft association map" ($Q$). This map represents the probability of a pixel belonging to one of the nine nearby grid cells. The model is trained using a multi-part loss consisting of a property term, which groups pixels with similar color or semantic labels, and a spatial term, which enforces compactness to prevent jagged boundaries.

Application to Stereo Matching

The authors leverage superpixels as a "smart" alternative to traditional pooling. By replacing standard stride-2 convolutions and bilinear upsampling in PSMNet with their superpixel association matrix, the network can pool information within perceptually similar regions and unpool it back to full resolution while respecting object boundaries.

Integration of superpixel-based downsampling and upsampling into a stereo matching network (PSMNet).

Evaluation and Results

The method was evaluated on standard benchmarks including BSDS500, NYUv2, and SceneFlow.

Efficiency and Segmentation Quality

The FCN-based approach runs at approximately 50 frames per second (fps) on a standard GPU, which is 3–8 times faster than previous state-of-the-art deep models like SSN. On BSDS500, it outperformed traditional algorithms and achieved competitive results with other deep methods while providing superior compactness and cleaner superpixel shapes.

Stereo Accuracy

In stereo matching tasks, superpixel-based upsampling significantly reduced End-Point Error (EPE). On the high-resolution HR-VS dataset, EPE improved from 3.83 to 2.77. This improvement is particularly visible in the preservation of fine structures like wires and thin object boundaries, which are often lost with standard upsampling methods.

Discussion and Conclusion

The core innovation lies in the simplicity of the 9-cell constraint and the conceptualization of superpixels as a detail-preserving bridge for dense prediction. While the current model requires a post-processing step to strictly guarantee spatial connectivity, it demonstrates that superpixels can be efficiently integrated into deep learning pipelines. Future work may explore adaptive grid sizes and broader applications in semantic segmentation and optical flow estimation.

Summary updated

BibTeX
@inproceedings{yang2020superpixel,
  author = {Fengting Yang and Qian Sun and Hailin Jin and Zihan Zhou},
  title = {{Superpixel Segmentation With Fully Convolutional Networks}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  url = {https://openreview.net/forum?id=nLWi16jDahG},
}
Figure