Abstract
Conditional Random Fields (CRFs) are a cornerstone of computer vision, used extensively for tasks like image segmentation. While traditional CRFs model local pixel neighborhoods, they often fail to capture long-range contextual relationships. Fully-connected CRFs address this but introduce significant computational challenges. This paper presents a novel, efficient Semidefinite Programming (SDP) algorithm for inference on fully-connected CRFs. By leveraging a tailored quasi-Newton method and low-rank Nyström approximations, the proposed LR-SDCut method achieves a scalable, convex relaxation that avoids the local optima of traditional mean-field approaches. Experiments on pixel-level image co-segmentation demonstrate that this method can solve large-scale problems previously considered unreachable for SDP solvers.
The Challenge of Fully-Connected CRFs
In computer vision, the goal of image segmentation is to assign a semantic label to every pixel. Traditional CRFs define edges only between neighboring pixels, resulting in a sparse graph. While efficient, these models miss global context—for instance, identifying a "boat" pixel in one corner might be easier if the model knows there is "water" in another.
Fully-connected CRFs link every pixel to every other pixel, but for a 1-megapixel image, this results in a trillion edges. Existing fast solutions typically rely on mean-field approximation. However, mean-field methods are non-convex, making them highly sensitive to initialization and prone to getting stuck in local optima. Furthermore, they are largely restricted to Gaussian kernels, limiting the types of relationships they can model.
Methodology: LR-SDCut
To overcome these limitations, the authors propose LR-SDCut, a robust mathematical approach based on Semidefinite Programming (SDP) relaxation. Standard SDP solvers are $O(N^3)$, which is impractical for image-sized data. LR-SDCut achieves scalability through several key innovations:
- Dual Problem Optimization: Instead of the massive primal SDP, the authors solve its dual version using a specialized quasi-Newton method.
- Low-rank Nyström Approximation: The computational bottleneck—multiplying a massive kernel matrix by a vector—is bypassed using the Nyström method. This approximates the kernel matrix using a small set of "landmark" pixels, reducing complexity to $O(N)$.
- Exploiting Low-Rank Structure: The solver takes advantage of the observation that the rank of the solution drops significantly early in the optimization process, allowing for faster convergence.
Experimental Results
The researchers evaluated LR-SDCut on image segmentation (MSRC 21-class database) and image co-segmentation (identifying common objects across multiple images).
Superior Co-segmentation Performance
On the challenging co-segmentation task, which involves up to 680,000 variables, LR-SDCut significantly outperformed mean-field and previous superpixel-based SDP methods. As shown in the visual comparisons, LR-SDCut produces segmentations that are much closer to the ground truth than competing methods, which often fail to capture the object boundaries correctly.
Quantitative Accuracy and Energy
Quantitatively, LR-SDCut consistently achieved lower energy states and higher accuracy. Because the SDP approach is convex, it avoids the poor local optima that plague mean-field methods. In the "Sheep" dataset, for example, mean-field accuracy dropped to 0.49, while LR-SDCut maintained a robust 0.74.
Conclusion
LR-SDCut proves that SDP is no longer restricted to small-scale problems in computer vision. By successfully handling CRFs with over $10^6$ variables, this work opens the door for more robust, convex optimization in pixel-level tasks. Future work will focus on GPU acceleration and exploring more complex, non-Gaussian kernels to further enhance segmentation accuracy.
Summary updated