Abstract
Semidefinite programming (SDP) is a powerful framework from convex optimization that has striking potential for data science applications. This paper develops a provably correct randomized algorithm for solving large, weakly constrained SDP problems by economizing on the storage and arithmetic costs. Numerical evidence shows that the method is effective for a range of applications, including relaxations of MaxCut, abstract phase retrieval, and quadratic assignment. Running on a laptop equivalent, the algorithm can handle SDP instances where the matrix variable has over $10^{14}$ entries.
Introduction
Semidefinite programming (SDP) is a versatile tool in convex optimization, applicable to diverse fields from graph theory to signal processing. However, it has traditionally been limited by the "curse of dimensionality": standard solvers require $O(n^2)$ storage for an $n \times n$ matrix variable. For large-scale problems where $n$ reaches millions, the memory requirements become prohibitive, often exceeding the capacity of even high-performance servers.
This paper introduces SketchyCGAL, a randomized algorithm designed to overcome these storage limitations. By integrating primal–dual optimization with randomized sketching, SketchyCGAL enables the solution of SDPs where the matrix variable contains over $10^{14}$ entries, all while operating within the memory constraints of a standard laptop.
The Storage Bottleneck in SDP
The primary obstacle in scaling SDP is the matrix variable $X$. Traditional interior-point methods and even many first-order methods require storing and manipulating the full $n \times n$ matrix to maintain positive semidefiniteness.
SketchyCGAL targets "weakly constrained" SDPs, where the number of constraints $d$ is significantly smaller than the number of entries in the matrix ($d \ll n^2$). Such problems are prevalent in data science, including MaxCut and Phase Retrieval. The authors demonstrate that it is possible to find a near-optimal low-rank approximation of the solution using only $O(n + d)$ storage, effectively reducing memory requirements from quadratic to linear.
The SketchyCGAL Algorithm
SketchyCGAL achieves its efficiency through the synergy of three key components:
- CGAL (Conditional Gradient Augmented Lagrangian): A primal–dual framework that avoids expensive projection steps by using Frank-Wolfe updates. Each iteration requires only the computation of the minimum eigenvector of a gradient matrix.
- Randomized Sketching: Instead of the full matrix $X$, the algorithm maintains a Nyström sketch. By storing the product $S = X\Omega$ with a random test matrix $\Omega$, the algorithm captures the essential low-rank structure of $X$ without the $O(n^2)$ overhead.
- Storage-Optimal Lanczos: The minimum eigenvector is computed using a Lanczos implementation that regenerates vectors on the fly, maintaining $O(n)$ memory usage.
The algorithm interacts with problem data solely through matrix-vector multiplications (primitives). This makes it highly flexible and compatible with efficient data structures like sparse matrices or FFT-based operators.
Experimental Results
The authors evaluated SketchyCGAL on several benchmarks, including MaxCut (Gset and Dimacs10), Abstract Phase Retrieval, and the Quadratic Assignment Problem (QAP).
Key findings include:
- Unprecedented Scale: SketchyCGAL solved a MaxCut problem with 23 million vertices (549 trillion implicit matrix entries) on a laptop-equivalent machine.
- Efficiency: It successfully handled Phase Retrieval instances with $n=10^6$ where standard solvers like SDPT3 failed due to memory limits.
- Practical Convergence: While the theoretical convergence rate is $O(t^{-1/2})$, experiments often showed a faster $O(t^{-1})$ rate.
- Solution Quality: In QAP benchmarks, the method solved tighter relaxations than competitors, resulting in smaller optimality gaps.
Conclusion
SketchyCGAL represents a significant leap in the scalability of semidefinite programming. By shifting from full-matrix storage to randomized sketching, it allows for the solution of massive-scale problems previously considered intractable. Future work will focus on addressing the arithmetic bottleneck of Lanczos iterations and reconciling the gap between theoretical and observed convergence rates.
Summary updated