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

Superpixel Sampling Networks

Varun Jampani, Deqing Sun, Ming-Yu Liu, Ming-Hsuan Yang, Jan Kautz

In this ECCV 2018 paper, Jampani et al. introduce a significant bridge between traditional computer vision primitives and modern deep learning. By making superpixel generation differentiable, the authors enable the first end-to-end trainable framework for task-specific image over-segmentation.

Introduction

Superpixels are groups of pixels that share similar low-level properties, such as color or texture. They are useful for reducing image complexity from hundreds of thousands of pixels to a few hundred meaningful "primitives." Despite their utility, superpixels have largely fallen out of favor in the deep learning era due to two primary issues: grid incompatibility and the differentiability gap. Standard convolutions require regular grids, whereas superpixels create irregular lattices. More importantly, traditional algorithms like SLIC or SEEDS involve discrete "hard" assignments that are non-differentiable, preventing them from being integrated into backpropagation-based pipelines.

Superpixel Sampling Networks (SSN) solve this by transforming the classic SLIC algorithm into a differentiable module that can be plugged into deep neural networks. This allows models to learn "task-specific" superpixels optimized for downstream applications like semantic segmentation or optical flow.

Methods: Differentiable SLIC

The core innovation of SSN is Differentiable SLIC. The authors revisit the Simple Linear Iterative Clustering (SLIC) algorithm and relax its discrete constraints to allow for gradient flow.

  • Soft Association: Instead of a hard argmin to assign a pixel to the nearest superpixel center, SSN uses a "soft" association based on a distance-weighted exponential (similar to a softmax). This makes the assignment operation continuous and differentiable.
  • The SSN Pipeline: A CNN first extracts high-dimensional deep features for every pixel. Initial superpixel centers are defined on a regular grid, and the model then iteratively updates pixel-to-superpixel associations and center positions using differentiable SLIC logic.
  • Loss Functions: The network is trained using a Task-Specific Reconstruction Loss, which ensures superpixels accurately represent properties like semantic labels, and a Compactness Loss, which prevents superpixels from becoming too irregular in shape.
The SSN pipeline transforms images into task-specific superpixels for applications like semantic segmentation and optical flow.

Experimental Evaluation

The authors evaluated SSN across several diverse benchmarks, including BSDS500 for general boundary detection, Cityscapes and PascalVOC 2012 for semantic segmentation, and MPI-Sintel for optical flow.

Unlike traditional SLIC, which uses 5D features (Color + Position), SSN learns a high-dimensional feature space (e.g., 20D) specifically tuned to the task. To maintain computational efficiency, the authors constrain each pixel to only consider the 9 nearest superpixel centers in its neighborhood, keeping the memory footprint low and the complexity at $O(n)$.

Key Results

SSN consistently outperformed traditional methods like SLIC, SNIC, and ERS in Achievable Segmentation Accuracy (ASA) and Boundary Recall across all tested datasets.

Example of segmented labels generated using SSN superpixels for a semantic segmentation task on the Cityscapes dataset.

Beyond accuracy, SSN is highly efficient. On a 1024x512 Cityscapes image, it runs in roughly 90-100ms on a V100 GPU, making it faster than many CPU-based traditional implementations. Furthermore, integrating SSN into a "Bilateral Inception" network for semantic segmentation improved the Mean Intersection over Union (mIoU) from 74.1 to 75.3 on PascalVOC, demonstrating the tangible benefits of learned superpixels in downstream tasks.

Conclusion and Future Work

While SSN represents a major step forward, some limitations remain. The authors still utilize non-differentiable post-processing steps to enforce spatial connectivity for final evaluation. Additionally, the iterative nature of the clustering (usually 5-10 iterations) is more computationally demanding than a single feed-forward pass. Future research may focus on integrating SSN into complex architectures for video processing or 3D data, where the complexity reduction offered by superpixels is most valuable.

Summary updated

BibTeX
@inproceedings{jampani2018superpixel,
  author = {Varun Jampani and Deqing Sun and Ming-Yu Liu and Ming-Hsuan Yang and Jan Kautz},
  title = {{Superpixel Sampling Networks}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  doi = {10.1007/978-3-030-01234-2\_22},
}
Figure