NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Scalable Frank-Wolfe-Based Algorithm for the Max-Cut SDP

Chi Bach Pham, Wynita Griggs, James SaundersonICML 2023

TL;DR

This paper introduces a highly scalable, memory-efficient algorithm for solving the Max-Cut Semidefinite Program (SDP) by reformulating it into a smooth concave maximization problem. By combining this reformulation with the Frank-Wolfe method and Gaussian sampling, the authors achieve a working storage cost of $O(n)$, allowing them to solve problems with over a million variables on standard hardware.

The Curse of Dimensionality in SDPs

Semidefinite Programming (SDP) is a powerful tool for machine learning and combinatorial optimization, but it suffers from a massive "curse of dimensionality." For a problem with $n$ variables, a standard SDP solver needs to store and manipulate an $n \times n$ matrix, leading to $O(n^2)$ memory requirements. When $n$ reaches $10^6$, storing this matrix requires terabytes of RAM, which is prohibitive for standard hardware.

Existing workarounds, like the Burer-Monteiro factorization, introduce non-convexity (leading to potential local optima), while recent "sketching" or "sampling" methods often struggle with slow convergence due to how they handle linear constraints. The authors specifically target the Max-Cut SDP, a fundamental problem used to find approximate solutions for partitioning graph nodes into two sets to maximize the edges between them.

Methodology

The authors' approach relies on three key pillars to bypass traditional memory bottlenecks:

  1. Exact Smooth Reformulation: They build upon a formulation by Nesterov that transforms the Max-Cut SDP into a problem of maximizing a sum of square roots ($\sum \sqrt{x_i}$) over a specific convex set. Because the square root function is non-smooth at zero, they apply a smoothing technique (regularizing the dual) and a diagonal shift to the cost matrix to improve numerical conditioning.
  2. Frank-Wolfe (Conditional Gradient) Method: This algorithm is ideal for large-scale optimization because it only requires a Linear Maximization Oracle (LMO). In this case, the LMO reduces to finding the largest eigenvalue of a matrix, which can be done efficiently using the Lanczos method without ever forming the full $n \times n$ matrix.
  3. Memory-Efficient Sampling: To avoid storing the $n \times n$ decision variable $X$, the algorithm maintains a set of Gaussian samples whose covariance matches the current iterate. This allows the user to perform "rounding" (extracting the actual Max-Cut solution) using only $O(n)$ memory.

Key Insights

  • Smoothness is Scalability: By ensuring the objective function is smooth and concave, the authors can leverage the convergence guarantees of the Frank-Wolfe method. Unlike previous methods that penalize constraints (making the objective "stiff"), this reformulation remains well-behaved.
  • Diagonal Shifting Matters: The authors show that shifting the cost matrix $C$ by a diagonal matrix $\text{diag}(\mu)$ doesn't change the optimal solution but significantly improves the "curvature constant" of the problem, leading to much faster convergence.
  • Factored LMO: They demonstrate that the Linear Maximization Oracle can be implemented in a "factored" way. Instead of returning a rank-one matrix, it returns a vector, keeping the entire pipeline within the strict $O(n)$ memory limit.

Key Results

The algorithm was evaluated on two main types of benchmarks: the Gset (a standard collection of unweighted graphs ranging from 800 to 3,000 vertices) and large-scale $d$-regular random graphs (ranging from $n=10$ to $n=10^6$).

  • Massive Scale: The algorithm successfully solved Max-Cut SDP instances with $1,000,000$ nodes and $5,000,000$ edges.
  • Superior Efficiency: On the Gset benchmarks, the proposed method significantly outperformed previous sampling-based methods (like Shinde et al., 2021) in terms of iteration counts, while remaining highly competitive with other state-of-the-art approaches.
Comparison of average iterations and relative error on Gset benchmarks
  • Practical Convergence: While theory predicts a convergence rate of $O(1/t)$, numerical experiments showed a much better local convergence rate, closer to $O(1/t^2)$.
Convergence gap over iterations for different graph groups
  • Robustness: The method proved particularly effective on graphs with skewed degree distributions, where other state-of-the-art sketching methods (like Yurtsever et al., 2021) showed weaker performance.

Limitations and Future Work

  • PSD Requirement: The core smoothing reformulation requires the cost matrix $C$ to be positive semidefinite (PSD). While the authors provide a workaround for general matrices by adding a diagonal term to make them diagonally dominant, this might increase the "rho" parameter (a ratio affecting convergence speed).
  • Algorithm Engineering: The authors note that their implementation is "very simple" and suggest that further engineering (e.g., optimized Lanczos subroutines or better step-size heuristics) could further improve practical performance.
  • Theoretical Gap: There is a gap between the $O(1/t)$ theoretical bound and the observed $O(1/t^2)$ performance; closing this gap remains an open theoretical challenge.

Summary updated

BibTeX
@inproceedings{pham2023scalable,
  author = {Chi Bach Pham and Wynita Griggs and James Saunderson},
  title = {{A Scalable Frank-Wolfe-Based Algorithm for the Max-Cut SDP}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=HaPz0YuD78},
}
Figure