Abstract: Semidefinite programming (SDP) is a fundamental tool in optimization and theoretical computer science, extensively used as a black-box for solving problems in embedding, complexity, learning, and discrepancy. A natural setting for SDP is the small treewidth regime. The best previous SDP solver in this setting, due to Zhang and Lavaei (2018), requires $O(n^{1.5} \tau^{6.5})$ time. In this work, we present a new solver for SDPs with $n \times n$ variables, $m$ constraints, and treewidth $\tau$ that runs in $O(n \tau^{2\omega+0.5})$ time, where $\omega < 2.373$ is the exponent of matrix multiplication. This represents the first SDP solver to achieve running time linear in the number of variables $n$. Additionally, we improve the complexity of solving linear programs (LP) with treewidth $\tau$ from $O(n \tau^2)$ to $O(n \tau^{(\omega+1)/2})$.
Introduction
Semidefinite Programming (SDP) is often described as the "Swiss Army Knife" of modern optimization, providing powerful approximations for NP-hard problems like MaxCut and verifying the robustness of complex systems like neural networks. Despite their utility, SDPs are computationally expensive; general solvers typically scale at $O(n^{3.5})$, making them prohibitive for large-scale applications.
While Linear Programming (LP) has seen significant progress toward near-linear time complexity, SDPs have remained bottlenecked. This paper addresses that gap by focusing on problems with an underlying graph structure characterized by small treewidth ($\tau$). Treewidth measures how closely a graph resembles a tree; many real-world networks, including circuit designs and road networks, exhibit low treewidth, making this a highly relevant parameter for optimization.
The Small Treewidth Setting
In the context of SDP, the sparsity of the problem can be captured by a sparsity graph. When this graph has a small treewidth, it is possible to exploit the structure to avoid the $O(n^3)$ cost associated with dense matrix operations. Previous work by Zhang and Lavaei (2018) made strides in this direction but still resulted in a super-linear dependence on $n$ ($n^{1.5}$). The primary goal of this research is to determine if SDPs can be solved in time that is strictly linear in $n$ when $\tau$ is small.
Algorithmic Framework
The authors utilize a Robust Interior Point Method (IPM) enhanced by several novel techniques to achieve linear scaling:
- Variable Reduction: By leveraging the tree decomposition of the sparsity graph, the original problem with $n^2$ variables is reformulated into an SDP with only $O(n \cdot \text{poly}(\tau))$ variables.
- Multiscale Representation: To avoid the cost of updating every variable in each iteration, the algorithm maintains primal and dual variables implicitly. It only updates specific coordinates that have changed significantly, a strategy inspired by recent advancements in high-performance LP solvers.
- Block-Sparse Cholesky Factorization: The computational core of IPMs involves solving linear systems with the Hessian matrix. The authors demonstrate that for small treewidth, this matrix possesses a block-sparse structure. They develop a novel algorithm to update Cholesky factorizations using fast matrix multiplication, reducing the per-iteration cost.
- Efficient Data Structures: Specialized structures such as
ExactDS,ApproxDS, andBatchSketchare employed to track the central path of the optimization process without requiring full $O(n)$ updates at every step.
Main Results
The theoretical contributions of this work establish new state-of-the-art bounds for both SDP and LP solvers in the small treewidth setting. The most significant result is the achievement of the linear milestone for SDPs.
As shown in the table above, the new SDP solver improves the time complexity from $O(n^{1.5} \tau^{6.5})$ to $O(n \tau^{2\omega+0.5})$. With the current value of $\omega \approx 2.373$, the treewidth dependence is approximately $\tau^{5.25}$. For Linear Programming, the solver reduces the treewidth dependence from $\tau^2$ to $\tau^{(\omega+1)/2} \approx \tau^{1.69}$.
Conclusion and Future Work
This work proves that for structured problems, SDPs are not fundamentally more difficult to scale than LPs in terms of the number of variables. Achieving $O(n)$ complexity is a major theoretical milestone. However, challenges remain for practical implementation. The high polynomial dependence on $\tau$ (over 5 for SDPs) means that for problems where $\tau$ is not extremely small, standard solvers may still be more efficient. Future research may focus on reducing the exponent of $\tau$ and bridging the gap between these "galactic algorithms" and practical, deployable software.
Summary updated