Piecewise Flat Embedding for Image Segmentation.

Chaowei Fang, Zicheng Liao, Yizhou YuIEEE TPAMI 2018

Abstract

We introduce a new multi-dimensional nonlinear embedding -- Piecewise Flat Embedding (PFE) -- for image segmentation. Based on the theory of sparse signal recovery, piecewise flat embedding with diverse channels attempts to recover a piecewise constant image representation with sparse region boundaries and sparse cluster value scattering. The resultant piecewise flat embedding exhibits interesting properties such as suppressing slowly varying signals, and offers an image representation with higher region identifiability which is desirable for image segmentation or high-level semantic analysis tasks. We formulate our embedding as a variant of the Laplacian Eigenmap embedding with an $L_{1,p} (0<p\leq1)$ regularization term to promote sparse solutions. First, we devise a two-stage numerical algorithm based on Bregman iterations to compute $L_{1,1}$-regularized piecewise flat embeddings. We further generalize this algorithm through iterative reweighting to solve the general $L_{1,p}$-regularized problem. To demonstrate its efficacy, we integrate PFE into two existing image segmentation frameworks, segmentation based on clustering and hierarchical segmentation based on contour detection. Experiments on four major benchmark datasets, BSDS500, MSRC, Stanford Background Dataset, and PASCAL Context, show that segmentation algorithms incorporating our embedding achieve significantly improved results.

Introduction

Image segmentation, the process of partitioning an image into meaningful, non-overlapping regions, is a fundamental task in computer vision. However, traditional methods often struggle with high-frequency textures and low-frequency appearance variations, such as shadows or changing illumination. Spectral methods address this by embedding pixels into a feature space where similar pixels are grouped together.

Standard spectral techniques, like Laplacian Eigenmaps, typically employ $L_2$ (squared) norms in their optimization. This results in "smooth" variations within object regions. When clustering algorithms like K-means are applied to these smooth embeddings, they often produce false boundaries because the feature values drift significantly across a single object. This paper proposes Piecewise Flat Embedding (PFE), a technique designed to create embeddings that are constant within object regions and change only at true boundaries.

Piecewise Flat Embedding

The core innovation of PFE is the replacement of smooth $L_2$ regularization with sparsity-promoting $L_{1,p}$ norms ($0 < p \le 1$). Inspired by sparse signal recovery, this approach forces the differences between neighboring pixels in the embedding space to be zero (flat) in most locations, effectively creating a "staircase" manifold rather than a smooth one.

The PFE pipeline: an input image (top left) is decomposed into multiple piecewise flat embedding channels (bottom), which are then used to generate high-quality segmentations (top center/right).

Optimization Strategy

Solving $L_1$ problems with orthogonality constraints—necessary to ensure diverse embedding channels—is computationally challenging. The authors propose a two-stage numerical approach:

  1. Stage I: Uses nested Bregman iterations to solve the full problem while strictly enforcing orthogonality between embedding dimensions.
  2. Stage II: Relaxes the orthogonality constraint, allowing the system to settle into a lower-energy, "flatter" state.

For the general $L_{1,p}$ case ($p < 1$), an iterative reweighting strategy adaptively adjusts the importance of pixel pairs based on previous iterations. Additionally, a residual-based channel weighting scheme prioritizes embedding channels that successfully capture flat regions.

A single PFE channel illustrating the piecewise flat property. Note the sharp boundaries and constant values within regions, which simplify subsequent clustering.

Experimental Evaluation

PFE was evaluated on four major benchmarks: BSDS500, the Stanford Background Dataset (SBD), MSRC, and PASCAL Context. It was integrated into two frameworks: simple K-means clustering and hierarchical segmentation based on contour detection (e.g., gPb-UCM).

Performance Metrics

  • Clustering: On BSDS500, PFE achieved an $F_{op}$ (F-measure for objects and parts) of 0.247, representing a 54.4% improvement over standard Laplacian Eigenmaps (0.160).
  • Hierarchical Segmentation: Combined with state-of-the-art contour detectors like Deep Boundaries, PFE-based methods consistently outperformed $L_2$ counterparts across all datasets, setting new benchmarks for region-based metrics.

Qualitatively, PFE produces remarkably clean embedding channels that eliminate the noisy boundaries typical of traditional spectral methods.

Conclusion

Piecewise Flat Embedding bridges the gap between manifold learning and sparse signal recovery. By prioritizing flatness over smoothness, it provides a superior representation for image segmentation. While the method is sensitive to initialization and more computationally intensive than linear embeddings, its significant performance gains across multiple benchmarks demonstrate its efficacy for high-level semantic analysis tasks. Future work may focus on reducing computational complexity and automating parameter tuning.

Summary updated

BibTeX
@article{fang2018piecewise,
  author = {Chaowei Fang and Zicheng Liao and Yizhou Yu},
  title = {{Piecewise Flat Embedding for Image Segmentation.}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2018},
  url = {https://openreview.net/forum?id=0Z7RD6KeO0F},
}
Figure