A Hybrid Algorithm for Convex Semidefinite Optimization

Sören LaueICML 2012

Abstract

Semidefinite Programming (SDP) is a cornerstone of modern machine learning, yet its application to large-scale datasets is often hindered by the computational cost of traditional solvers. This paper presents a hybrid algorithm that combines the global convergence guarantees of convex optimization with the local efficiency of non-convex search. By interleaving a Frank-Wolfe-style rank-1 update with a quasi-Newton local optimization step, the proposed method achieves state-of-the-art performance across several benchmark tasks, including matrix completion and metric learning, while maintaining a remarkably simple implementation.

Introduction

Many fundamental problems in machine learning—such as matrix completion for collaborative filtering, metric learning, and sparse Principal Component Analysis (PCA)—can be framed as convex semidefinite optimization problems. These tasks involve optimizing a function over the cone of positive semidefinite (PSD) matrices.

However, practitioners face a significant dilemma: scalability. Traditional interior-point methods provide high accuracy but fail to scale beyond small datasets. To circumvent this, researchers often employ low-rank factorizations (e.g., $X = VV^T$), which reduce memory requirements but transform the convex problem into a non-convex, NP-hard one. Such approaches lack the global convergence guarantees essential for reliable optimization. This paper introduces a "best of both worlds" approach: a hybrid algorithm that retains the speed of low-rank methods without sacrificing the global convergence of convex frameworks.

The Hybrid Algorithm

The proposed algorithm operates through an iterative process that alternates between two distinct phases:

1. The Global Convex Step (Rank-1 Update)

Drawing on Hazan’s Frank-Wolfe-style algorithm, this step computes a linear approximation of the objective function. It identifies the eigenvector corresponding to the largest eigenvalue of the negative gradient and uses it to perform a rank-1 update on the current solution. This step is critical as it ensures the algorithm consistently moves toward the global optimum.

2. The Local Non-convex Step (Nonlinear Update)

Following the rank-1 update, the algorithm factors the current matrix into a low-rank form ($X = VV^T$) and applies a standard quasi-Newton optimization (L-BFGS) directly to $V$. While this phase is technically non-convex and only guaranteed to find a local minimum, it provides a massive acceleration in the descent toward the objective.

Theoretical Novelty

The primary theoretical contribution is the proof that interleaving a non-convex local search within a convex Frank-Wolfe framework does not compromise the global convergence guarantee. The author demonstrates that any improvement made by the L-BFGS step—no matter how small—is sufficient to maintain an $O(1/\epsilon)$ convergence rate. Additionally, the author shows that the computationally expensive eigenvector calculation in the convex step can be performed with lower precision ($O(\epsilon)$ instead of $O(\epsilon^2)$), significantly reducing the total compute time.

Experimental Evaluation

The hybrid algorithm was tested against specialized solvers across three major machine learning domains:

Matrix Completion

Using the MovieLens 10M dataset to predict movie ratings, the hybrid algorithm reached an optimal test error (RMSE 0.815) in just 2,663 seconds with a rank of 5. In comparison, the state-of-the-art GECO algorithm required 784,941 seconds (approximately 9 days) and a higher rank of 12 to achieve a slightly worse error of 0.821.

Metric Learning

On the UCI Ionosphere dataset, the hybrid algorithm identified the optimal solution in 0.28 seconds. Standard Interior Point (IP) methods took 1,513 seconds, while specialized Projected Gradient (PG) methods required 88 seconds. This represents a multi-order-of-magnitude improvement in speed.

Sparse PCA

When applied to a 1600-dimensional colon cancer microarray dataset, the hybrid algorithm converged in 464 seconds. The specialized DSPCA algorithm, by contrast, took 10,034 seconds to reach the same level of sparsity and explained variance.

Discussion and Conclusion

The hybrid algorithm's success stems from its ability to exploit the naturally low-rank structure of many ML problems. By building solutions through rank-1 updates and then refining them via local optimization, it maintains high memory efficiency. Perhaps most impressively, the core logic of this high-performance solver can be implemented in fewer than 30 lines of MATLAB code, making it highly accessible for practical applications.

Future work includes transitioning the current MATLAB prototype to C++ to further enhance computational speed. The results presented here suggest that the synergy between convex global frameworks and non-convex local search is a powerful paradigm for solving the next generation of large-scale optimization challenges in machine learning.

Summary updated

BibTeX
@misc{laue2012hybrid,
  author = {Sören Laue},
  title = {{A Hybrid Algorithm for Convex Semidefinite Optimization}},
  year = {2012},
  eprint = {1206.4608},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1206.4608},
}
Figure