Abstract
Spectral embedding provides a framework for solving perceptual organization problems, including image segmentation and figure/ground organization. From an affinity matrix describing pairwise relationships between pixels, it clusters pixels into regions, and, using a complex-valued extension, orders pixels according to layer. We train a convolutional neural network (CNN) to directly predict the pairwise relationships that define this affinity matrix. Spectral embedding then resolves these predictions into a globally-consistent segmentation and figure/ground organization of the scene. Experiments demonstrate significant benefit to this direct coupling compared to prior works which use explicit intermediate stages, such as edge detection, on the pathway from image to affinities. Our results suggest spectral embedding as a powerful alternative to the conditional random field (CRF)-based globalization schemes typically coupled to deep neural networks.
Introduction
In computer vision, perceptual organization—grouping pixels into regions and determining their occlusion order (figure/ground)—has traditionally been handled through a pipeline of intermediate stages. A classic system might first detect edges, then form regions, and finally reason about depth or occlusion based on contour convexity. While Convolutional Neural Networks (CNNs) have revolutionized semantic segmentation, they are usually paired with Conditional Random Fields (CRFs) to clean up output. However, for class-independent image partitioning and layering, CRFs are less natural.
This paper introduces a novel architecture that jointly solves image segmentation and figure/ground organization without relying on semantic classes. By training a CNN to predict complex-valued pairwise pixel relationships and feeding them into a spectral inference algorithm called Angular Embedding, the system produces a globally consistent scene layering that outperforms prior hand-crafted pipelines.
The Affinity CNN Framework
The authors replace the traditional pipeline with a two-part system: a Deep Affinity Network (CNN) and an Angular Embedding inference solver. This approach bypasses brittle intermediate steps like explicit edge detection and directly maps raw pixels to a globally consistent segmentation and depth ordering.
Predicting Complex Affinities
Instead of predicting edges, the CNN predicts pairwise relationships between a pixel and 24 of its neighbors across three spatial scales. These relationships are represented as complex numbers where the magnitude represents confidence (how likely two pixels belong to the same region) and the angle represents ordering (if separated by a boundary, which pixel is the "figure"/foreground and which is the "ground"/background).
The CNN uses a multi-scale architecture—an AlexNet-like coarse network combined with a finer-scale subnetwork—to output 48 channels (grouping and transition probabilities) per pixel.
Complex-Valued Pairwise Relations
Representing pixel relationships in the complex plane is an elegant mathematical convenience. It allows the model to smoothly transition between four distinct states: contiguous region (binding force), ambiguous boundary (low confidence), figure transition, and ground transition.
As shown in the figure above, the representation handles different topological scenarios:
- Contiguous Region: High confidence, zero phase (binding).
- Ambiguous Boundary: Low confidence, represented by a vector near the origin.
- Figure/Ground Transitions: High confidence with positive or negative phase shifts indicating relative depth ordering.
Global Inference via Angular Embedding
The CNN's local pairwise predictions are assembled into a massive, sparse, complex-valued affinity matrix. This matrix is fed into Angular Embedding, an extension of the Normalized Cuts algorithm. By solving a generalized eigenproblem, the algorithm integrates these local, noisy predictions into a globally consistent map. The spatial gradients of the resulting eigenvectors dictate the segmentation boundaries, while the absolute angles of the complex values dictate the global figure/ground rank (occlusion layer).
Key Results and Insights
Datasets and Generalization
- Berkeley Segmentation Dataset (BSDS): The model was trained on a subset of 200 BSDS images annotated with boundary ownership.
- Cross-Domain Generalization: The system was qualitatively tested on PASCAL VOC and the Weizmann Horse database. On the Weizmann dataset, it essentially acts as an unsupervised horse detector, automatically picking the subject out from the background despite having no object class labels.
Performance Metrics
- Figure/Ground Accuracy: The system achieves a significant leap over previous state-of-the-art methods. On the BSDS test set, it achieves a Boundary Ownership Accuracy (B-ACC) of 70% on its own automatic segmentations, compared to 62% for prior work.
- Segmentation Quality: As a pure segmentation engine, the system achieves a boundary F-measure of 0.68, putting it on par with the spectral component of the highly regarded gPb boundary detector.
Prior spectral figure/ground methods relied heavily on a "lower-region bias" (assuming the bottom of the image is the ground). This CNN-driven approach learns to use actual image content, successfully extracting foreground objects regardless of their position in the frame.
Conclusion
The Affinity CNN demonstrates that spectral embedding is a powerful alternative to CRF-based globalization schemes for generic grouping tasks. While the system is currently bottlenecked by the scarcity of dense figure/ground training data (only 150 training images were used), its ability to generalize to unseen datasets suggests that scaling this architecture with larger datasets could unlock even greater potential for class-agnostic scene understanding.
Summary updated