Piecewise Flat Embedding for Image Segmentation

Yizhou Yu, Chaowei Fang, Zicheng LiaoICCV 2015

Abstract

Image segmentation is a critical step in many computer vision tasks, including high-level visual recognition and scene understanding as well as low-level photo and video processing. In this paper, we propose a new nonlinear embedding, called piecewise flat embedding, for image segmentation. Based on the theory of sparse signal recovery, piecewise flat embedding attempts to identify segment boundaries while significantly suppressing variations within segments. We adopt an L1-regularized energy term in the formulation to promote sparse solutions. We further devise an effective two-stage numerical algorithm based on Bregman iterations to solve the proposed embedding. Piecewise flat embedding can be easily integrated into existing image segmentation frameworks, including segmentation based on spectral clustering and hierarchical segmentation based on contour detection. Experiments on BSDS500 indicate that segmentation algorithms incorporating this embedding can achieve significantly improved results in both frameworks.

1. Introduction

Image segmentation is often hindered by smooth variations in pixel attributes like color and texture, caused by lighting, shading, or perspective. Traditional manifold embedding methods, such as Laplacian Eigenmaps or Normalized Cuts, typically produce "smooth" embeddings. In these spaces, cumulative small differences between neighboring pixels can make distant pixels on the same object appear further apart than pixels on different objects. This "fuzziness" complicates the task for clustering algorithms.

The authors introduce Piecewise Flat Embedding (PFE) to address this. The goal is to create an embedding where all pixels belonging to the same object collapse into a tight "point cloud" in feature space, making segmentation boundaries unmistakable. Figure 1 shows a final segmentation result achieved using this method.

Final segmentation result highlighting the sharp boundaries achieved by PFE.

2. Piecewise Flat Embedding

The core innovation is the transition from $L_2$ to $L_1$ regularization in the embedding's objective function.

2.1 The Objective Function

Traditional spectral embeddings minimize a weighted sum of squared distances ($L_2$ norm) between pixel coordinates. PFE instead minimizes the $L_1$ norm: $$\min_{Y} \sum_{ij} W_{ij} \|Y_i - Y_j\|_1 \quad \text{s.t.} \quad Y^T DY = I$$ Based on sparse signal recovery theory, the $L_1$ norm promotes sparsity. In this context, "sparsity" means the distance between most adjacent pixels in the embedding space becomes exactly zero, leading to flat regions.

2.2 Two-Stage Numerical Solution

Solving this is challenging due to the non-differentiable $L_1$ norm and the non-convex orthogonality constraint. The authors propose a two-stage approach:

  1. Stage I: Uses nested Bregman iterations (specifically Split Bregman) and Singular Value Decomposition (SVD) to enforce strict orthogonality while minimizing the $L_1$ energy.
  2. Stage II: The orthogonality constraint is relaxed. This allows the $L_1$ term to further "flatten" the embedding without being constrained by the rigid geometry of the initial solution.

3. Experimental Results

The authors evaluated PFE on the BSDS500 (Berkeley Segmentation Dataset). PFE demonstrated significant improvements over existing spectral and hierarchical methods:

  • Clustering Performance: Using the "Covering" metric, PFE + K-means achieved a score of 0.52, compared to 0.44 for standard Spectral Clustering—an 18.2% improvement.
  • Hierarchical Segmentation: When integrated into the gPb-owt-ucm framework, PFE improved the ODS Covering score from 0.59 to 0.62.
  • Qualitative Clarity: The embedding images produced by PFE show remarkably clean, constant-color regions for objects, whereas traditional Laplacian Eigenmaps often appear as blurry gradients. This effect is visualized in Figure 2.
Visualization of the PFE process: (left to right) original image, three characteristic flat embeddings, and the final segmentation result.

4. Conclusion

While PFE provides superior segmentation quality, it comes with increased computational complexity. The prototype MATLAB implementation takes approximately 15 minutes per image on a 3.3GHz CPU, which is significantly slower than traditional spectral methods. Future work may involve optimizing the numerical solver for GPU execution or integrating piecewise flat constraints into deep learning-based architectures. By forcing the embedding to be piecewise flat, the authors effectively eliminate the "drift" in feature space that usually occurs across large objects, providing a robust foundation for subsequent segmentation tasks.

Summary updated

BibTeX
@inproceedings{yu2015piecewise,
  author = {Yizhou Yu and Chaowei Fang and Zicheng Liao},
  title = {{Piecewise Flat Embedding for Image Segmentation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2015},
  url = {https://openreview.net/forum?id=HkWeDWG_ZB},
}
Figure