Unsupervised Superpixel Generation using Edge-Sparse Embedding

Jakob Geusen, Gustav Bredell, Tianfei Zhou, Ender KonukogluarXiv 2022 · DOI

Abstract

This paper presents a novel unsupervised framework for superpixel generation that leverages the inductive bias of an under-parameterized Deep Decoder. By optimizing a network to reconstruct an image from blurred noise, the method produces edge-sparse pixel embeddings that naturally align with significant image boundaries. This approach eliminates the need for labeled training data or complex smoothness loss functions, achieving state-of-the-art performance on natural and medical imaging benchmarks while providing precise control over the number of generated superpixels.

Introduction

Superpixels serve as a fundamental mid-level representation in computer vision, grouping pixels with similar characteristics to reduce computational complexity for downstream tasks like object detection and semantic segmentation. The ideal superpixel algorithm balances two competing goals: compactness (regular shapes) and edge adherence (precise alignment with object boundaries).

While classical methods like SLIC are efficient, they often rely on local cues and fail to capture global structural information. Conversely, existing deep learning methods typically require large labeled datasets or struggle to offer user-defined control over the segment count. This paper addresses these challenges through a purely unsupervised pipeline that utilizes architectural constraints as a prior for boundary detection.

Methods

The proposed method avoids explicit loss functions for smoothness or edge detection by embedding these requirements into the network's architecture and input.

The unsupervised pipeline: blurred noise is fed into a Deep Decoder to produce activation maps that serve as pixel embeddings for clustering.
  1. Deep Decoder Architecture: The core of the system is a non-convolutional, under-parameterized "Deep Decoder." Because the network has fewer parameters than the number of pixels in the target image, it acts as a structural bottleneck, forcing the model to represent only the most salient image features.
  2. Blurred Noise Input: The network is fed with blurred random noise. The smoothness of the input, combined with the ReLU activation layers, ensures that the network can only produce smooth, connected edges. The authors demonstrate an inverse relationship where increasing the input blur naturally leads to fewer, more significant edges.
  3. Positional Awareness: To ensure spatial connectivity and compactness, the authors incorporate sinusoidal positional encodings. These encodings are blended with the image's lightness channel to create a reconstruction target that emphasizes both color and spatial location.
  4. Edge-Sparse Embeddings and Clustering: Rather than using the final reconstructed image, the method extracts activation maps from the decoder's last hidden layer. These maps function as high-dimensional embeddings for each pixel. Finally, a SLIC-like clustering algorithm is applied to these embeddings to partition the image into the exact number of superpixels requested by the user.

Results and Evaluation

The method was rigorously evaluated on the BSDS500 and PASCAL-Context datasets for natural images, as well as the DeepVess dataset for 3D microscopy of brain vasculature.

Examples of generated superpixels on natural and microscopy images, demonstrating high edge adherence and structural consistency.

The approach achieved state-of-the-art results in Undersegmentation Error (USE) and Achievable Segmentation Accuracy (ASA), outperforming established methods like SLIC and SNIC. In the DeepVess vessel segmentation task, the generated superpixels enabled a Dice Coefficient of 81.6%, nearly matching the performance of fully supervised CNNs. A key advantage of this method is its strict control over the number of segments, a feature often missing in other deep learning-based unsupervised approaches.

Discussion and Conclusion

The primary innovation of this work is the use of "architecture as a prior." By forcing a limited-capacity network to reconstruct an image from smooth noise, the system naturally ignores local textures (like fur or grass) and prioritizes globally significant boundaries.

While the method is currently limited by its computational cost—taking approximately 39 seconds per image due to the per-image optimization process—it represents a significant step forward in unsupervised representation learning for image segmentation. Future research may focus on accelerating the optimization or developing meta-learning strategies to generalize the decoder across multiple images.

Summary updated

BibTeX
@misc{geusen2022unsupervised,
  author = {Jakob Geusen and Gustav Bredell and Tianfei Zhou and Ender Konukoglu},
  title = {{Unsupervised Superpixel Generation using Edge-Sparse Embedding}},
  year = {2022},
  eprint = {2211.15474},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.15474},
}
Figure