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 pair-wise 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.
The Challenge of Perceptual Organization
Perceptual organization—the ability of a vision system to group pixels into objects and determine which objects are in front of others—is a fundamental challenge in computer vision. Traditionally, this is handled by multi-stage pipelines: first detect edges, then link them into contours, then reason about regions, and finally assign depth layers. These hand-designed pipelines often suffer from "leaky" abstractions where errors in early stages (like missed edges) propagate downstream.
The authors aim to replace these fragmented pipelines with a more direct coupling between deep learning (for local feature extraction) and spectral methods (for global integration), specifically targeting the "class-independent" partitioning problem.
The Affinity CNN Framework
The proposed system consists of two main components: an Affinity CNN and an Angular Embedding solver. Instead of predicting a simple segmentation mask, the CNN is trained to predict the relationship between a pixel and its neighbors across multiple scales using a sparse stencil pattern.
By training the CNN to predict the exact inputs required by the spectral solver (affinities), the authors eliminate the need for intermediate "hand-crafted" stages like edge detection.
Encoding Relationships with Complex Affinities
The "secret sauce" of this approach is the use of complex-valued affinities. Each pairwise relation between pixels $p$ and $q$ is represented as a complex number $W$.
- Magnitude $|W|$: Represents the confidence or "binding strength"—do these pixels belong to the same object?
- Angle $\angle W$: Encodes the relative figure/ground ordering. A positive angle suggests pixel $p$ is "figure" (in front) relative to pixel $q$, while a negative angle suggests it is "ground" (behind).
Using the complex plane to represent relationships is mathematically elegant. It allows the model to represent "uncertainty" by placing the value near the origin $(0,0)$, while "binding" and "layering" occupy different angular sectors.
Global Integration via Angular Embedding
The local predictions from the CNN are assembled into a large, sparse affinity matrix. The system then solves a generalized eigenproblem. This "Angular Embedding" (AE) process globalizes local cues. If the CNN predicts $A$ is in front of $B$, and $B$ is in front of $C$, the solver ensures the final output reflects that $A$ is in front of $C$.
The resulting eigenvectors provide a continuous embedding where the angle of the first eigenvector reveals the global figure/ground ranking of every pixel, and the spatial gradient allows for high-quality image segmentation via standard techniques like the watershed transform.
Results and Generalization
The system was evaluated on several key datasets:
- BSDS (Berkeley Segmentation Dataset): Achieved 69-70% boundary ownership accuracy, a significant jump from the ~60% achieved by previous state-of-the-art spectral methods.
- PASCAL VOC & Weizmann Horse Database: Demonstrated the model's ability to generalize to diverse, real-world images and cross-domain scenarios without additional training, effectively behaving as a class-agnostic object detector.
Visual results show a dramatic reduction in "lower-region bias" and a much better ability to extract complex foreground objects. Despite not being explicitly trained for edge detection, the system produces segmentations on par with specialized high-end edge detectors.
Conclusion
While spectral methods are more computationally intensive than simple feed-forward CNNs, they offer a natural fit for class-independent partitioning. Future work involves scaling to larger datasets and integrating this bottom-up perceptual grouping with top-down semantic object recognition.
Summary updated