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

Segmentation using superpixels: A bipartite graph partitioning approach

Zhenguo Li, Xiao-Ming Wu, Shih-Fu Chang

Abstract

Image segmentation remains a fundamental challenge in computer vision, often caught between the trade-offs of local detail and global structure. This paper introduces Segmentation by Aggregating Superpixels (SAS), a framework that treats multiple over-segmentations as "soft constraints" within a bipartite graph. By developing the Transfer Cut (Tcut) algorithm, the authors reduce the computational complexity of spectral clustering to linear time relative to the number of pixels. Evaluated on the Berkeley Segmentation Database, SAS demonstrates superior accuracy and significant speed advantages over traditional methods.

Problem Statement

Traditional image segmentation algorithms often struggle with a "balancing bias." For instance, Normalized Cuts (Ncut) may incorrectly partition large, uniform regions like a clear sky simply to maintain balanced segment sizes. Furthermore, the computational cost of spectral clustering scales poorly ($O(N^{1.5})$), making it impractical for high-resolution images. The authors aim to combine the strengths of various over-segmentation methods—some which respect boundaries and others that capture broad structures—into a single, efficient, and robust framework.

Methodology: The SAS Framework

The SAS approach consists of three primary stages designed to bridge the gap between pixel-level data and regional semantics.

1. Superpixel Generation

The process begins by generating a "bag of superpixels" using diverse algorithms such as Mean Shift and Felzenszwalb-Huttenlocher (FH) with varying parameters. This multi-scale approach ensures that the image is captured through different algorithmic "lenses," providing a rich set of initial grouping cues.

2. Bipartite Graph Construction

The core of the framework is a bipartite graph $G = (V, E)$. The vertex set $V$ is partitioned into two disjoint sets: $X$, representing all pixels, and $Y$, representing all generated superpixels.

Bipartite graph construction showing the relationship between pixels (X) and superpixels (Y).

As shown in the figure above, a pixel is connected to a superpixel if it belongs to that segment. Additionally, superpixels are linked to one another based on spatial adjacency and color similarity. This structure allows the model to treat superpixels as intermediate nodes that propagate grouping information across the image.

3. Transfer Cuts (Tcut)

To solve the partitioning problem efficiently, the authors introduce Transfer Cuts. They mathematically prove that the eigenvectors of the massive pixel-superpixel graph can be derived from a much smaller graph consisting only of superpixels. This "transfer" reduces the heavy computational lifting to a smaller domain, achieving linear time complexity relative to the number of pixels.

Experimental Results

The researchers benchmarked SAS on the Berkeley Segmentation Database (BSD300), comparing it against several state-of-the-art methods.

Accuracy and Efficiency

SAS achieved a Probabilistic Rand Index (PRI) of 0.8319, surpassing MLSS (0.8146) and UCM (0.81). It also significantly improved the Boundary Displacement Error (BDE), reducing it to 11.29. In terms of speed, the bipartite partitioning (Tcut) phase took only 0.65 seconds for a standard benchmark image, making the total process orders of magnitude faster than competing methods like TBES (~500s) or standard Ncut (~150s).

Visual Comparison

Qualitatively, SAS excels at preserving large-scale structures while respecting fine boundaries.

Qualitative comparison of SAS against other segmentation methods on the Berkeley Database.

As illustrated in Figure 5, SAS (h) avoids the over-segmentation artifacts seen in Mean Shift (b) and the "chunking" bias of Normalized Cuts (e). It effectively maintains the integrity of large regions like grass or water while accurately delineating complex foreground objects like the cheetah or the otter.

Conclusion and Future Directions

The SAS framework demonstrates that "unbalanced" bipartite graphs can be a computational asset rather than a hindrance. By aggregating diverse superpixel layers, the method achieves a robust segmentation that balances local precision with global coherence. Future work may focus on automating the selection of the segment count ($k$) and incorporating high-level semantic features to further enhance object-level segmentation.

Summary updated

BibTeX
@inproceedings{li2012segmentation,
  author = {Zhenguo Li and Xiao-Ming Wu and Shih-Fu Chang},
  title = {{Segmentation using superpixels: A bipartite graph partitioning approach}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2012},
  doi = {10.1109/cvpr.2012.6247750},
}
Figure