An Optimal-Storage Approach to Semidefinite Programming Using Approximate Complementarity

Lijun Ding, Alp Yurtsever, Volkan Cevher, Joel A. Tropp, Madeleine Udell · OpenReview

Introduction

Semidefinite Programming (SDP) is a cornerstone of convex optimization, with applications ranging from medical imaging and signal processing to recommendation systems. Despite their versatility, SDPs are notoriously difficult to scale. The primary variable in a standard SDP is an $n \times n$ matrix, which requires $O(n^2)$ storage. When $n$ reaches the millions—a common scenario in modern data science—storing this matrix becomes impossible on standard hardware.

This paper introduces a storage-optimal algorithm that leverages a new "approximate complementarity principle" to solve large-scale SDPs using memory that scales linearly with the problem size, $O(m + n)$, rather than quadratically.

The Storage Bottleneck

Existing "storage-efficient" methods, such as the Burer-Monteiro factorization, often lack global convergence guarantees or require storage that scales as $O(n\sqrt{m})$, where $m$ is the number of constraints. The authors aim to reach the theoretical limit of "optimal storage," which is just enough memory to store the problem data and report the final answer in a factored form.

The Three-Step Framework

The authors propose a framework based on Approximate Complementarity. This approach shifts the computational burden from the massive primal matrix to a much smaller dual vector and a low-dimensional subspace.

Comparison of exact and practical primal recovery steps.
  1. Solve the Dual: Instead of the primal, the algorithm solves the Lagrange dual of the SDP. The dual variable is a vector of length $m$, which is significantly smaller than the $n \times n$ primal matrix. They use a penalized version of the dual solved via first-order subgradient methods (like AcceleGrad) to maintain low memory overhead.
  2. Identify the Subspace: According to the complementarity principle, the primal solution must lie in the null space of the dual slack matrix ($Z = C - \mathcal{A}^*y$). In practice, only an approximate dual solution is available. The authors prove that the primal solution remains very close to the eigenspace associated with the smallest eigenvalues of this approximate slack matrix.
  3. Primal Recovery: The original massive SDP is compressed into this tiny subspace (of dimension $r \approx \text{rank of the solution}$). The algorithm then solves a much smaller SDP—minimizing infeasibility (MinFeasSDP) or the objective function—to recover the final primal variable in a factored, low-rank form.

Key Insights: Approximate Complementarity

The theoretical "aha moment" of this work is the Approximate Complementarity Principle. The authors prove that if a dual solution is $\epsilon$-suboptimal, the primal solution is $O(\sqrt{\epsilon})$ close to the subspace spanned by the bottom eigenvectors of the dual slack matrix.

A surprising practical insight is that when recovering the primal from a subspace, one must allow for infeasible solutions. The true feasible set of the original SDP almost never intersects with the low-dimensional subspace identified from an approximate dual. Consequently, the recovery phase focuses on finding the "most feasible" point within that subspace.

Performance and Results

The algorithm was evaluated on classic large-scale SDP applications, including Max-Cut (using Gset and DIMACS10 graphs) and Matrix Completion.

Linear Scaling and Accuracy

The algorithm's memory usage scales linearly with $n$. The authors successfully solved SDPs with $n = 10^6$ (representing one trillion entries in the implicit matrix) on a standard 16GB laptop. While traditional interior-point solvers like Mosek or SDPT3 failed due to memory limits once $n > 10^4$, this method (CSSDP) continued to scale efficiently.

To measure success, the authors track suboptimality, infeasibility, and distance to the true solution using the metrics defined below:

Definitions of suboptimality, infeasibility, and distance to solution for primal and dual variables.

The method achieves "medium accuracy" (roughly $10^{-3}$ relative error), which is sufficient for most machine learning and signal processing applications. For a Max-Cut problem with $10^5$ variables, the algorithm reached a solution in roughly $10^4$ seconds, outperforming state-of-the-art solvers that hit memory walls.

Limitations and Future Work

While the method breaks the $O(n\sqrt{m})$ barrier, it has some limitations:

  • Regularity Requirements: Theoretical guarantees rely on "strict complementarity" and "dual uniqueness," which are generic but may not hold for all structured problems.
  • Rank Estimation: The recovery phase requires an estimate of the solution's rank ($r$). Choosing $r$ too small leads to failure, while choosing it too large increases cost.
  • Convergence Speed: As a first-order method, it converges slowly to very high precision and is not intended to replace interior-point methods when 10+ digits of accuracy are required.
  • Constraint Complexity: Future work will look to extend this framework from standard equality constraints to more complex inequality structures.

Summary updated

BibTeX
@article{ding2021optimal,
  author = {Lijun Ding and Alp Yurtsever and Volkan Cevher and Joel A. Tropp and Madeleine Udell},
  title = {{An Optimal-Storage Approach to Semidefinite Programming Using Approximate Complementarity}},
  journal = {SIAM J. Optim.},
  year = {2021},
  doi = {10.1137/19m1244603},
}
Figure