Biconvex Relaxation for Semidefinite Programming in Computer Vision

Sohil Shah, Abhay Kumar, Carlos Castillo, David Jacobs, Christoph Studer, Tom Goldstein

TL;DR

Biconvex Relaxation (BCR) is a novel framework that bypasses the "curse of dimensionality" in Semidefinite Programming (SDP) by avoiding the traditional "lifting" of vectors into massive matrices. By transforming SDPs into low-dimensional biconvex problems and using a principled spectral initialization, BCR achieves state-of-the-art accuracy in computer vision tasks with speedups ranging from 4x to 35x.

What Problem Does This Paper Address?

Semidefinite Programming (SDP) is a cornerstone of modern computer vision, powering everything from image segmentation to 3D reconstruction. However, standard SDP solvers face a massive scalability wall. To make non-convex problems (like those involving binary labels) convex, researchers typically "lift" an $N$-dimensional vector of unknowns into an $N \times N$ matrix.

For a high-resolution image, $N$ is the number of pixels. A $1000 \times 1000$ image results in a matrix with a million entries, making the computational cost ($O(N^{6.5})$ for interior-point methods) and memory requirements astronomical. While specialized solvers exist for specific problems, there hasn't been a general-purpose, high-speed alternative that works across different types of SDPs—until now.

Methods

The authors introduce Biconvex Relaxation (BCR), which operates directly in the original low-dimensional space. The method consists of three main components:

  1. Factorization: Instead of solving for a large matrix $Y$, they substitute $Y = XX^T$, where $X$ is a thin $N \times r$ matrix ($r \ll N$). This immediately reduces the number of variables.
  2. Relaxation to Biconvexity: They transform the hard equality constraints of the SDP into a combination of inequality constraints and quadratic penalties in the objective function. This results in a problem that is "biconvex"—meaning if you hold one set of variables constant, the problem is convex with respect to the others.
  3. Alternating Minimization (AM): The problem is solved by toggling between updating auxiliary variables ($Q_i$) and the main variable ($X$).
The Alternating Minimization (AM) procedure for BCR.

Crucially, because AM can get stuck in local minima, the authors propose a principled initialization scheme. They use a spectral method—calculating the leading eigenvectors of a matrix constructed from the constraints—to start the solver very close to the global optimum.

Datasets

The authors evaluated BCR across three distinct computer vision applications using several standard benchmarks:

  • Image Segmentation: The Berkeley image segmentation dataset.
  • Co-segmentation: The Weizman horses and MSRC datasets (classes: horse, car-front, car-back, and face).
  • Manifold Metric Learning: ETH-80 (object categories), YouTube Celebrities (YTC), and YouTube Faces (YTF).

Key Insights and Ideas

  • Low-Rank Efficiency: The "aha" moment is that many computer vision problems don't actually need the full-rank matrix produced by standard SDP solvers. BCR allows users to specify a low rank $r$, drastically cutting memory usage without sacrificing solution quality.
  • Initialization is Everything: In non-convex optimization, where you start determines where you end up. By adapting spectral initialization techniques from phase retrieval research, the authors ensure their fast, non-convex solver behaves almost as reliably as a slow, convex one.
  • Generalization: Unlike previous fast solvers (like SDCut) which are hard-coded for specific binary quadratic problems, BCR is a general framework that can handle various equality and inequality constraints.

Key Results

  • Speed: BCR consistently outperformed state-of-the-art solvers. It was 35x faster than SDCut for image segmentation and roughly 9.5x faster for co-segmentation.
  • Accuracy: In manifold metric learning, BCR achieved classification results comparable to or better than specialized methods like LEML and SPDML, while training 2x to 3.5x faster.
  • Rank Reduction: For co-segmentation, BCR achieved superior results using only a rank-2 solution, whereas competing methods required rank-3 or rank-7 solutions to reach similar accuracy.

Limitations and Future Work

The primary limitation noted is the potential computational burden of factorizing constraint matrices. BCR assumes the square root factors ($L_i$) of the constraint matrices are easily obtained from the problem structure. If they aren't, calculating them could cost $O(N^3)$, which might negate some speed gains.

Future work could involve extending BCR to other domains like signal processing, control theory, and broader machine learning applications where large-scale SDPs are currently a bottleneck.

Summary updated

Abstract

Semidefinite programming is an indispensable tool in computer vision, but general-purpose solvers for semidefinite programs are often too slow and memory intensive for large-scale problems. We propose a general framework to approximately solve large-scale semidefinite problems (SDPs) at low complexity. Our approach, referred to as biconvex relaxation (BCR), transforms a general SDP into a specific biconvex optimization problem, which can then be solved in the original, low-dimensional variable space at low complexity. The resulting biconvex problem is solved using an efficient alternating minimization (AM) procedure. Since AM has the potential to get stuck in local minima, we propose a general initialization scheme that enables BCR to start close to a global optimum - this is key for our algorithm to quickly converge to optimal or near-optimal solutions. We showcase the efficacy of our approach on three applications in computer vision, namely segmentation, co-segmentation, and manifold metric learning. BCR achieves solution quality comparable to state-of-the-art SDP methods with speedups between 4X and 35X. At the same time, BCR handles a more general set of SDPs than previous approaches, which are more specialized.
BibTeX
@inproceedings{shah2016biconvex,
  author = {Sohil Shah and Abhay Kumar and Carlos Castillo and David Jacobs and Christoph Studer and Tom Goldstein},
  title = {{Biconvex Relaxation for Semidefinite Programming in Computer Vision}},
  booktitle = {European Conference on Computer Vision},
  year = {2016},
  doi = {10.1007/978-3-319-46466-4\_43},
}
Figure