Introduction
Normalized Cut (Ncut) is a fundamental technique in spectral clustering and image segmentation, valued for its ability to partition data by finding the "cheapest" cut in a graph representation. In standard image segmentation, pixels are treated as nodes, and edge weights represent similarity. However, standard Ncut is inherently unsupervised; it lacks the mechanism to incorporate prior knowledge, such as specific pixel labels or constraints on segment sizes.
While adding linear constraints to the Ncut framework would allow for semi-supervised guidance, doing so traditionally complicates the optimization. The standard Ncut problem is solved by finding the second smallest eigenvector of a Laplacian matrix, but linear constraints break this simple mathematical shortcut. Previous attempts to solve constrained Ncut have relied on computationally expensive Semidefinite Programming (SDP) relaxations, inaccurate Lagrangian methods, or root-finding techniques that fail to scale to high-resolution images. This paper introduces a fast, iterative algorithm that solves the constrained Ncut problem with global optimality and significantly improved efficiency.
The Projected Power Method
The core contribution of this work is the Projected Power Method, an iterative algorithm designed to solve constrained optimization problems on a sphere. The algorithm treats the optimization as a geometric process, navigating a vector along a unit sphere while ensuring it remains within a flat "hyperplane" defined by the linear constraints ($Bg = c$).
The algorithm follows a three-step cycle in each iteration:
- Stretch: The current vector is multiplied by the affinity matrix, similar to a standard power iteration used to find eigenvectors.
- Project: The resulting vector is projected (flattened) onto the hyperplane defined by the linear constraints. This ensures that the "prior knowledge" is strictly satisfied.
- Renormalize: The vector is scaled back to the unit sphere to maintain the normalization required by the Ncut objective.
The authors provide a formal proof that this iterative "dance" between the sphere and the hyperplane is guaranteed to converge to the globally optimal solution. Because the primary computational burden is matrix-vector multiplication, the method leverages the sparsity of image affinity matrices, making it practical for large datasets.
Key Results and Performance
The Projected Power Method demonstrates a dramatic improvement in both speed and precision compared to existing solvers. In numerical experiments with synthetic data, the algorithm achieved convergence speeds 10 to 100 times faster than state-of-the-art root-finding methods.
As shown in the performance analysis, for a problem size of $n=2000$ variables, the proposed method converged in approximately 45 seconds. In contrast, the root-finding method required 300 seconds, and the Lagrangian approach took over 17 hours. Furthermore, the Projected Power Method maintains high numerical precision, with constraint violations ($Bv - c$) near machine epsilon ($10^{-14}$), whereas Lagrangian methods often struggle to satisfy constraints accurately.
Qualitatively, the algorithm allows for intuitive user interaction. In image segmentation tasks, standard Ncut often suffers from "leaking," where boundaries fail to capture thin structures like an animal's neck. By adding just a few point constraints (e.g., "this pixel must be foreground"), the proposed algorithm successfully snaps the segmentation to the correct physical boundaries. Additionally, the framework handles general linear constraints, such as size control, which prevents the algorithm from producing trivially small or excessively large segments.
Conclusion and Future Work
By reformulating constrained Ncut as a projected power iteration, the authors have created a tool that is both mathematically rigorous and computationally efficient. This approach bridges the gap between unsupervised spectral clustering and supervised image analysis, allowing for real-time user guidance in complex segmentation tasks.
Future research directions include extending the framework from two-way partitioning to multi-class ($k$-way) segmentation and adapting the algorithm to handle inequality constraints (e.g., "segment size must be at least X"). The authors also suggest that this iterative projection framework could be generalized to other constrained problems, such as Constrained Principal Component Analysis (PCA).
Summary updated