Skip to main content
Proceedings of the National Academy of Sciences of the United States of America logoLink to Proceedings of the National Academy of Sciences of the United States of America
. 2026 Sep 28;123(40):e2516128123. doi: 10.1073/pnas.2516128123

Large-scale semidefinite programming with graphics processing units

Qiushi Han a, Zhenwei Lin b, Hanwen Liu c, Caihua Chen d,1, Qi Deng e, Dongdong Ge e,1, Yinyu Ye f
PMCID: PMC13643274  PMID: 42804647

Significance

Many scientific and engineering fields, including optimization, machine learning, and quantum computing, use semidefinite programming (SDP) to tackle complex problems. Unfortunately, as these problems grow, they rapidly exceed the capabilities of conventional SDP solvers, creating a critical bottleneck. By leveraging the hidden low-rank structure of large SDPs with sparse problem data, we demonstrate that the parallel processing power of modern graphics processing units can substantially accelerate the solution process and enable much larger problems to be solved. This breakthrough removes a long-standing computational barrier, enabling previously impossible experiments and optimizations across diverse areas of science and engineering.

Keywords: large-/huge-scale SDP, GPU acceleration, low-rank factorization, logarithmic rank reduction

Abstract

Semidefinite programming (SDP) provides a powerful framework in applied mathematics with applications spanning optimization, machine learning, quantum computing, and beyond. However, the computational cost of solving large-scale SDP problems remains a significant practical limitation. We break this long-standing computational bottleneck through a synergistic codesign of low-rank algorithms and graphics processing unit (GPU) architectures, developing accelerated first-order methods that leverage both algorithmic innovations and hardware-aware implementation to achieve up to 4 orders of magnitude improvements in speed and scalability for large-scale SDPs with sparse and low-rank structure, thereby opening frontiers in large-scale scientific computing. Our solver, GPU-accelerated Low-Rank Alternating Direction Method of Multipliers Splitting (cuLoRADS), exemplifies this approach, combining the Burer-Monteiro method with a splitting scheme to efficiently solve massive-scale SDPs. Specifically, it can solve a set of MaxCut problems whose matrix variables have dimensions of 107×107 in 10 s to 1 min each on an NVIDIA H100 GPU with 80 GB of memory, whereas previously reported central processing unit solvers required dozens of hours. Additionally, cuLoRADS shows exceptional scalability by solving 1) a MaxCut problem with a 170million×170million matrix variable and 2) a Minimum-Rank Matrix Completion problem with a 20 million × 20 million matrix variable and approximately 200 million constraints, both in a matter of minutes. It also resolves a long-standing SDP computational barrier in the quantum ordered search problem, which had remained unsolved for 18 y.


Semidefinite programming (SDP) is a branch of convex optimization that deals with semidefinite matrix variables. A standard SDP can be formulated as

minX∈S+nC,Xs.t.A(X)=b, [1]

where Sn is the set of symmetric matrices in Rn×n, C∈Sn, and S+n={X∈Sn:v⊤Xv≥0,∀v∈Rn\{0}} denotes the semidefinite cone. The linear map A(·):Sn→Rm is specified as A(X)=[A1,X,…,Am,X]⊤, where Ai∈Sn.

The broad applicability of SDP stems from its capacity to model complex constraints across diverse scientific fields, offering a unified framework for constructing powerful convex relaxations for computationally hard problems. In combinatorial optimization, SDP-based relaxations have led to landmark results. For example, an SDP relaxation coupled with a geometric rounding technique yields the best-known approximation algorithm for the NP-hard MaxCut problem (1, 2) in the case of nonnegative weights. Beyond discrete problems, SDP is a cornerstone of modern polynomial optimization via sum-of-squares (SOS) methodology (3). The SOS framework offers tractable verification of nonnegative polynomials through SDPs, offering a powerful approach with broad applications. For instance, in quantum information, it is used to estimate the ground-state energy of complex chemical Hamiltonians and to analyze the limits of quantum ordered search algorithms (4–6). This same principle allows for the construction of polynomial Lyapunov functions in control and robotics, thereby providing formal certificates for the stability and safety of dynamical systems (7, 8). In machine learning and data science, SDP provides tractable convex surrogates for computationally hard problems that seek solutions with low-dimensional structure. Some examples include minimum-rank matrix completion, which relaxes the rank constraint into a convex trace-norm minimization solvable via SDP, and sparse Principal Component Analysis (PCA), where SDP formulations find sparse eigenvectors by balancing spectral properties with sparsity-inducing norms (9, 10). It also extends to a wide range of other scientific and real-world applications, including power-system optimization (11–14), sensor-network localization (15, 16), molecular conformation (17), and so on.

The immense modeling power of SDP is also supported by the importance of SDP in modeling languages such as CVX (18), CVXPY (19), and YALMIP (20). However, the SDP applications are often offset by the significant computational cost, creating a critical bottleneck for large-scale applications.

To address this scalability challenge, significant efforts have been made to improve SDP algorithms over the past few decades. Traditionally, interior-point methods (IPMs) have been the go-to approach for solving SDPs due to their ability to achieve high accuracy in polynomial time (21–24). However, IPMs face scalability issues for large-scale problems, primarily due to the computational burden of repeatedly solving Newton systems. Recent research has shifted toward first-order methods to overcome these limitations and improve scalability (25–27). Zhao et al. (28) proposed the SDPNAL, which employs the augmented Lagrangian method on the dual SDP and uses an inexact semismooth Newton-CG method to solve the inner subproblem. Subsequently, ref. 29 improved SDPNAL by incorporating a majorized semismooth Newton-CG augmented Lagrangian method when solving degenerate SDPs. To further avoid the quadratically increasing cost of maintaining the matrix variable, several works (12, 30–34) have explored finding low-rank solutions based on the Burer-Monteiro (BM) low-rank factorization of X, expressed as X=RR⊤, where the matrix R∈Rn×r. Theoretical guarantees for such approaches stem from results by refs. 35 and 36, which establish that an optimal solution exists with rank r satisfying r(r+1)/2≤m. Building on these developments, ref. 31 recently proposed a new first-order method to solve large-scale SDPs with a bounded domain. The enhanced solver can solve the SDP relaxation for the maximum stable set problem, the Lovász ϑ-function, for dimensions (n,m)≈(106,107) with 10−5 relative precision.

Despite steady algorithmic advances, virtually all existing SDP solvers still run on central processing units (CPUs), leaving the hardware dimension largely unexplored. Yet recent history shows how decisive specialized hardware can be: the modern boom in deep learning began only after researchers ported convolutional neural networks to graphics processing units (GPUs). Starting with the 2012 AlexNet breakthrough (37), GPUs’ massive parallelism slashed training times and enabled networks to scale from millions to trillions of parameters, ultimately powering today’s transformer models. This synergy between hardware and model architecture fueled a rapid evolution, culminating in modern models like the transformers with trillions of parameters. However, SDP, despite its profound scientific impact, has not yet enjoyed similar benefits from this hardware revolution.

To explore this opportunity, we adopt the low-rank methods tailored explicitly for GPUs. Such methods are appealing because i) their core computations reduce to inexpensive matrix–vector and small matrix–matrix products that map naturally onto massively parallel GPU hardware, and ii) their memory usage grows only with the size of the low-rank factors. By contrast, IPMs incur cubic-time factorizations at every iteration, and both interior-point and full-matrix first-order methods require memory that scales quadratically with the problem dimension. Since the completion of our work, GPU-accelerated libraries for direct sparse matrix factorization, such as CUDSS (38), have advanced significantly. These developments have enabled GPU-accelerated IPMs, as demonstrated by solvers such as cuClarabel (39). However, these decomposition approaches remain unable to handle the huge-scale problems that our low-rank methods can solve. A straightforward path to GPU acceleration is to port existing low-rank SDP solvers, SDPLR (33), HALLaR (31), and LoRADS (30), by replacing CPU BLAS calls with their GPU counterparts, as has proved effective for large-scale Linear Programming (LP) and Quadratic Programming (QP) solvers (40–43). In practice, however, SDP-specific operations, such as evaluating the linear map, involve irregular memory access patterns and high kernel launch overheads. Our exploratory experiments showed that a naive port of LoRADS to a GPU ran significantly slower than the original CPU version. Consequently, fully leveraging GPU capabilities requires a fundamental, architecture-aware redesign rather than a straightforward line-by-line porting approach.

In this work, we address the scalability challenges of SDP, with a particular focus on large-scale instances that exhibit exploitable sparsity and admit effective low-rank approximations. Our main contributions are summarized as follows. We introduce a GPU-centric framework that unifies first-order low-rank factorization-based SDP methods with the data-parallel architecture of modern GPUs. This approach identifies a subset of algorithms that are naturally suited to GPU parallel computing architectures and can bypass the quadratic memory bottleneck. We recast key linear operator evaluations as fused kernels aligned with thread-level parallelism and the memory hierarchy of GPUs. Furthermore, we implement a column-sparsity compression scheme that eliminates the critical quadratic storage bottleneck, while also improving computational efficiency. These innovations are embodied in cuLoRADS, our GPU implementation of the LoRADS algorithm. cuLoRADS surpasses leading CPU-based SDP solvers by 2 to 4 orders of magnitude in both speed and the scale of solvable problems. Remarkably, it solves a 170 million × 170 million MaxCut SDP with 170 million constraints in under 160 s. Furthermore, we overcome a long-standing computational barrier in quantum information by directly solving the SDP corresponding to the 5-query ordered search problem, a challenge that had remained open for 18 y.

Notation.

We use · to denote the Euclidean norm for vectors and the operator norm for matrices, and ·F to denote the Frobenius norm for matrices. For U,V∈Rn×n, the inner product is defined as U,V=tr(UV⊤), where tr(·) denotes the trace of a matrix. We define the vectorization operation vec(·), which stacks the columns of a matrix X=[x1,…,xn]∈Rn×n into a vector vec(X)=[x1; x2; …; xn]∈Rn2. We group all matrices in the map A:Rn×n→Rm into a single matrix A=[vec(A1)⊤; vec(A2)⊤; …; vec(Am)⊤]∈Rm×n2 so that the operator A(X) can be written compactly as A·vec(X). The adjoint operator A∗(λ)=∑i=1mλiAi can also be expressed as A∗(λ)=mat(A⊤λ), where mat(·) is the inverse operator of vec(·). We use σmin(A) to denote the smallest eigenvalue of the matrix A∈Sn. Define the nonzero index set I(v)={i:v(i)≠0}, where v(i) is the i-th entry of vector v. We also define the set of nonzero column indices as Ic(A)={j:∃iwith A(i,j)≠0}, where A(i,j) is the (i,j) entry of A.

SDP Algorithms Based on Low-Rank Factorization

Efficient and scalable solutions for large-scale SDPs on GPUs require algorithmic designs that both leverage GPU architectural advantages and avoid the prohibitive quadratic memory complexity associated with the decision variable. However, conventional SDP methods, such as interior-point methods and full-matrix first-order methods, face two fundamental limitations when implemented on GPUs: 1) matrix decompositions become severe performance bottlenecks on GPUs due to their sequential nature; 2) the decision variable X∈Rn×n requires O(n2) memory, which is unacceptable for large n. To overcome these challenges, we seek algorithms that align with the data-parallel nature of GPUs. First-order methods are particularly attractive in this context. They rely primarily on matrix and vector multiplications, operations that are highly parallelizable and have been extensively optimized for GPU hardware. Additionally, they avoid the use of sequential operations, such as matrix decompositions, which remain inefficient on GPUs. Fortunately, the optimal SDP solution frequently exhibits low-rank structure, and a range of first-order low-rank factorization-based algorithms have been developed that dramatically decrease both storage demands and computational cost. Two representative CPU-based methods are SDPLR (33) and LoRADS (30). Both approaches factorize the decision variable X∈Rn×n as X=RR⊤; LoRADS further generalizes this factorization to X=UV⊤. In SDPLR, X=RR⊤ is handled via the Augmented Lagrangian Method (ALM) that alternates between updating R and the dual multipliers. By contrast, LoRADS begins with the same ALM warm start on X=RR⊤ but then switches to Alternating Direction Method of Multipliers (ADMM) to solve the bilinear form X=UV⊤. Notably, to fully harness GPU computational efficiency while maximizing storage efficiency, we prove the existence of an approximate solution of rank O(logm) for general SDPs.

Theorem 1.

Let A1,A2,⋯,Am∈Rn×n be symmetric matrices and let X∗ be an optimal solution to the primal SDP [1]. Denote by Ai+:=ΠS+n(Ai) and C+:=ΠS+n(C) the projections of Ai and C onto S+n, respectively. Define Ai−:=Ai+−Ai and C−:=C+−C. Then, for any integer d≥kln(4m+4) with k≥22, there exists an approximate solution X0⪰0 to the primal SDP such that rank(X0)≤d:

−4kbi+−22kbi−≤Ai,X0−bi≤22kbi++4kbi−,
−4k(δ∗)+−22k(δ∗)−≤C,X0−C,X∗≤22k(δ∗)++4k(δ∗)−,

where bi+=Ai+,X∗,bi−=Ai−,X∗,(δ∗)+=C+,X∗,(δ∗)−=C−,X∗.

This theoretical guarantee motivated our low-rank O(logm) strategy in the ALM and ADMM framework (see SI Appendix, section S1.1 for detailed derivations).

ALM for X = RRT.

ALM solves SDPs with low-rank factorization by optimizing the following saddle-point problem:

minR∈Rn×rmaxλ∈RmLρ(R,λ)=C,RR⊤+A(RR⊤)−b,λ+ρ2A(RR⊤)−b2, [2]

At each iteration, the augmented Lagrangian method updates {R,λ} to optimize (Eq. 2) as follows:

Rk+1=argminRLρ(R,λk)+ϵ2‖R−Rk‖F2λk+1=λk+ρ(A(Rk+1(Rk+1)⊤)−b), [3]

where ρ is the penalty parameter and ϵ>0. The dual update λk+1 follows directly from the primal residual. To update the variable R, SDPLR employs the Limited-memory Broyden–Fletcher–Goldfarb–Shanno (L-BFGS) algorithm. In each L-BFGS iteration, the search direction is generated from a small history of curvature pairs, and the step length is determined exactly by a Wolfe-Powell line search (44).

ADMM for X = UVT.

ADMM solves SDPs with low-rank decomposition by optimizing the following problem:

minU,V∈Rn×rmaxλ∈RmLρ(U,V,λ)=C,UV⊤+A(UV⊤)−b,λ+ρ2A(UV⊤)−b2+ρ2U−VF2, [4]

At each ADMM iteration, updates for (Eq. 4) are given by

Uk+1=argminULρ(U,Vk,λk)Vk+1=argminVLρ(Uk+1,V,λk)λk+1=λk+ρ(A(Uk+1(Vk+1)⊤)−b). [5]

Since each U- and V-update reduces to a positive-definite linear system, each system can be solved efficiently using the conjugate gradient (CG) method (45). In the following discussion, we use RR⊤ to denote computations involving either UV⊤ or RR⊤, because U and V can be treated symmetrically.

Convergence and rank selection.

Under the regularity assumptions used in the LoRADS analysis, the ADMM phase converges to a KKT point of the corresponding low-rank bilinear penalized formulation. The convergence rate is sublinear in general and can become linear under a suitable Łojasiewicz condition. These results provide stationarity guarantees for the low-rank nonconvex formulation rather than unconditional global-optimality guarantees for every rank choice. The rank parameter is therefore central to both efficiency and robustness. LoRADS initializes the rank at logarithmic order, r=O(log(m)), and then uses a dynamic rank strategy: it starts from a small rank and increases the rank when the algorithm detects numerical difficulty or stagnation. This strategy preserves the memory advantage of low-rank factorization while providing a practical remedy when the initial rank is insufficient. Moreover, warm starting, penalty-parameter tuning, and termination checks affect the robustness of the algorithm. More details on LoRADS can be found in ref. 30.

Computation Patterns on CPUs.

Most open-source low-rank SDP solvers, whether using L-BFGS or CG [LoRADS (30)], rely heavily on three core operations: A(RR⊤), A∗(λ) and A∗(λ)R. Current CPU implementations [e.g., LoRADS (30), SDPLR (33), HDSDP (46)] treat each constraint matrix Ai individually, grouping them by storage format–sparse, dense, or low-rank–to apply the most efficient multiplication routines for each category. For A(RR⊤), one can either form the full product X=RR⊤ once and compute Ai,X for i=1,…,m or compute AiR first and then take inner products AiR,R for each constraint. Forming X requires storing an n×n dense matrix, which is feasible only when n is small to moderate. The second approach stores 2×(n×r) elements, although it may require more floating-point operations.

Similarly, evaluating A∗(λ) involves summing λiAi over i. Since each Ai may be stored in a different format, CPU solvers select matrix-addition routines optimized for sparse or low-rank structures. The result A∗(λ) might be sparse or dense, so subsequent matrix–matrix products A∗(λ)R will use the corresponding efficient method. These CPU-optimized strategies, however, do not directly translate to GPUs, where memory access patterns and parallel-compute kernels must be reorganized to avoid inefficiencies.

Accelerating Low-Rank Factorization-Based Methods on GPUs

Effectively harnessing the power of GPUs for SDP solving demands a departure from the design principles of traditional CPU-based solvers. The computational patterns optimized for serial execution are mismatched with a massively parallel architecture. This section details the design philosophy guiding our solver, cuLoRADS, demonstrating how a holistic approach to on-device data management and the restructuring of core computations are essential for achieving high performance.

The Structural Design.

To minimize GPU–CPU communication, our solver transfers all problem data to the GPU at initialization and performs every intermediate computation on the device. Only a few scalars, such as step-size values and convergence flags, are exchanged during each iteration. Once the algorithm converges, the final solution is copied back to the CPU. Fig. 1 illustrates this workflow in detail. By confining massive data transfers to the start and end of the solving process, we achieve high efficiency.

Fig. 1.

Flowchart showing Linear Mapping of A1, A2, A3 with R and R superT fused into vec(A1), vec(A2), vec(A3) for compressed GPU Computation.

The internal workflow of cuLoRADS.

Efficient Computation on GPUs.

An efficient GPU implementation requires fundamentally rethinking the one-matrix-at-a-time computational pattern of CPU solvers. While a complete, high-performance solver involves numerous detailed optimizations, its success hinges on a few essential conceptual shifts in how the key operations are structured. A naive GPU implementation that mirrors the CPU-efficient approach, processing each constraint matrix Ai in a separate operation, is profoundly inefficient. This strategy suffers from three compounding issues: it fails to saturate the GPU’s massive computational power with small, fine-grained tasks, it leads to scattered, low-bandwidth memory access patterns, and it incurs substantial kernel launch overhead as m increases. To overcome these barriers, we reformulate the linear operators into a small number of large, data-parallel computations architected for the GPU. The linear map A(RR⊤), for instance, is expressed as a single, large-scale matrix-vector product, Avec(RR⊤). This conceptual fusion allows the entire operation to be executed in just two main kernels, one to form X=RR⊤ and one to compute Avec(X), replacing what would otherwise be m separate, inefficient calls. Similarly, the adjoint operator A∗(λ) is reformulated as A⊤λ, yielding the same advantages. This shift from processing individual constraints to operating on a single, fused representation allows the GPU to achieve high, sustained throughput on core computational tasks for SDP.

Fusing the linear mapping computation reduces kernel launches but inevitably requires forming a full vec(RR⊤)∈Rn2×1, which is unacceptable for scaling up. For instance, with n=500,000, the dense vector would require over 1.8 TB of memory in double precision. We circumvent this barrier by exploiting the sparsity structure of the multiplication. The key insight is that any entry in vec(RR⊤) is irrelevant if its corresponding column in the matrix A contains only zeros. Therefore, instead of maintaining the entire O(n2) vector, we only need to compute the small subset of its entries that contributes to the product. Similar sparsity-exploiting strategies within interior-point methods for SDP were developed by Fukuda et al. (47). By restricting attention to this smaller indexed set, we avoid allocating or manipulating an O(n2) buffer at any time. In our implementation, we first identify the indices of columns in A that contain at least one nonzero entry, i.e., Ic(A). We then launch a customized GPU kernel that computes the corresponding entries of the matrix–matrix product only at those indices. The essence of the fusion and compression techniques for computing the linear mapping is illustrated in Fig. 2.

Fig. 2.

Two scatter plots on log-log scales show solving time (second) versus problem dimension (n) and number of constraints (m) for five solvers.

The efficient computation of the linear mapping on GPU.

Discussion of the Scope.

The preceding discussion clarifies the type of computational structure on which the proposed approach relies. The approach is most effective for large-scale SDP instances with sufficiently sparse constraint data, or with problem-specific compact operator representations that permit efficient GPU evaluation of A(RR⊤), A∗(λ), and A∗(λ)R. These properties allow the solver to avoid storing dense decision matrices while keeping the dominant computations highly parallel on GPUs. Therefore, cuLoRADS should not be viewed as a general-purpose replacement for SDP solvers on arbitrary dense or unstructured instances. Its scalability also depends on whether high-quality solutions can be represented with moderate factor ranks; when substantially larger ranks are required, the memory and speed advantages of the low-rank formulation diminish.

Numerical Study

We demonstrate the effectiveness of our approach by examining the numerical performance of cuLoRADS* implemented in the Julia programming language. We compare cuLoRADS with its CPU counterpart, LoRADS, implemented in the C programming language (30). We also present results from other advanced SDP solvers, including SDPLR (33), SDPNAL+ (29), and COPT (48), on several problems of more modest size. Additionally, we test cuLoRADS on a range of large- to huge-scale problems that can only be solved by cuLoRADS. The implementation details of LoRADS and cuLoRADS can be found in SI Appendix, section S2.1.

Experimental Setting.

We set a relative stopping tolerance of 10−5 for all the solvers in the following section, except for the ordered search problem. Note that due to a stricter normalization applied in cuLoRADS’s stopping criterion, the actual solution accuracy achieved by cuLoRADS can sometimes be well below 10−5. A detailed discussion of the solvers considered, the errors evaluated, and the stopping criteria can be found in SI Appendix, section S2.2.

Hardware.

For GPU benchmarks, we use an NVIDIA H100 with 80 GB Video Random-Access Memory (VRAM) deployed on a cluster with an Intel Xeon Platinum 8469C CPU. The CPU usage of Julia is restricted to 1 thread. For CPU benchmarks, we use a MacBook Pro with a 12-core M3 Pro chip and 18 GB RAM.†

The MaxCut Problem.

The MaxCut problem in a weighted graph G with edge weights w involves finding a division of its vertices into two distinct groups such that the sum of the weights of the edges between these groups is maximized. A semidefinite programming approach can be utilized to solve this problem, formulated as follows:

maxX∈S+n14L(G,w),Xs.t.Xii=1,∀i∈[n],

where L(G,w) is the Laplacian matrix of the graph:

L(G,w)ij:=−wijif (i,j)∈E∑kwikif i=j0otherwise.

We consider MaxCut problems from two sources: the Gset‡ (49) and a set of large- to huge-scale MaxCut problems generated from the sparse matrices in the University of Florida Sparse Matrix Collection§ (50). The Gset includes MaxCut problems ranging in size from n=m=800 to n=m=10,000. We select a set of random sparse matrices from the University of Florida Sparse Matrix Collection, specifically from the DIMACS10, SNAP, and GenBank groups, to generate larger problems. SDPNAL+ is not included for MaxCut problems as it is inefficient for this type of problem, according to refs. 51 and 30.

In Fig. 3, cuLoRADS demonstrates its efficiency compared to CPU solvers. Furthermore, cuLoRADS can solve MaxCut problems with n≈107 to an accuracy of max(err1,err2,err3) ≲10−8 in 10 s to 1 min. According to the work by ref. 52, SketchyCGAL, the only other solver reported to handle SDP problems of this scale, requires about 30 to 50 h to solve each problem to an accuracy where the three errors are under 10−1 (noting that they use ‖·‖2 to normalize primal infeasibility and dual infeasibility). The largest problem, with n≈1.7×108, is solved by cuLoRADS in 158 s.

Fig. 3.

Log-log scatter plot of solving time in seconds versus problem dimension n for cuLoRADS, LoRADS, SDPLR, and COPT solvers from 10 sub -3 to 10 sub -9.

Scalability and efficiency of cuLoRADS on MaxCut problems. The figure shows the growth in solving times of the solvers as the problem dimensions increase (i.e., the dimension of the matrix variable n and number of constraints m, where m=n for MaxCut problems). The solving times and problem dimensions are presented on a logarithmic scale. The figure shows that cuLoRADS is significantly faster than all CPU-based solvers and can scale to problems several orders of magnitude larger, up to a matrix dimension of 108, solving problem sizes that were previously unattainable. The full results and a detailed discussion can be found in SI Appendix, section S2.3.

The Minimum-Rank Matrix Completion problem.

Consider a matrix M∈Rn×m with observed entries in Ω⊆{1,…,n}×{1,…,m}. The goal of the minimum-rank matrix completion problem is to determine a matrix Y such that Yij=Mij for all (i,j)∈Ω, while minimizing the rank of Y. This problem can be expressed as the following convex optimization problem:

minY∈Rn×mY∗s.t.Yij=Mij,∀(i,j)∈Ω,

where Y∗ represents the nuclear norm of Y. Additionally, the nuclear norm minimization problem can be reformulated into a semidefinite programming problem as follows:

minY∈Rn×mtrace(W1)+trace(W2)s.t.Yij=Mij,∀(i,j)∈Ω,W1Y⊤YW2⪰0,

which is equivalent to:

minX∈S+(m+n)⟨I,X⟩s.t.0m×mEij⊤Eij0n×n,X=2Mij,∀(i,j)∈Ω,

where X=W1Y⊤YW2, and Eij is the ij-th adjacency matrix with (Eij)ij=1 and zeros elsewhere.

We randomly generated minimum-rank matrix completion problems following the procedure described in ref. 51. Fig. 4 presents the performance of cuLoRADS on minimum-rank matrix completion problems and compares it to other state-of-the-art solvers. cuLoRADS substantially outperforms the CPU solvers. For instance, on a problem with a 40,000×40,000 matrix variable and approximately 16 million constraints, cuLoRADS achieves more than a 100-fold speedup relative to its CPU counterpart LoRADS. Within a similar runtime, cuLoRADS solves problems orders of magnitude larger than those tackled by LoRADS: it solves a problem with an 8million×8million matrix variable in about 89 s, whereas LoRADS requires a comparable amount of time for a problem with a 20,000×20,000 matrix variable. Moreover, cuLoRADS is capable of addressing problem sizes far beyond the reach of those CPU-based solvers. The largest minimum-rank matrix completion problem solved by cuLoRADS features a 20million×20million matrix variable and 200 million constraints, which cuLoRADS solves in less than 8 min.

Fig. 4.

Flowchart of SDP problem solving. CPU reads and preprocesses data, transfers it to GPU for solver initialization, LR-LBFGS-ALM, and LR-CG-ADMM.

Scalability and efficiency of cuLoRADS on minimum-rank matrix completion problems. The figure shows the growth in solving times of the solvers as both the dimension of the matrix variable n and the number of constraints m increase. The solving times and problem dimensions are presented on a logarithmic scale. The figure shows that cuLoRADS is orders of magnitude more efficient and scalable than advanced CPU-based solvers. The previous record for the largest problem solved by CPU-based methods, as reported in ref. 31, involved a matrix of size 200,000 × 200,000 with 21,970,931 constraints, solved in 7.8 h. In contrast, cuLoRADS solves similarly sized problems in just a few seconds. The full results and a detailed discussion can be found in SI Appendix, section S2.4.

The Ordered Search Problem.

The ordered search problem (OSP), which involves finding a specific item in a sorted list of N elements, is a fundamental computational task. Classically, the optimal binary search algorithm requires ⌈log2N⌉ queries. Quantum computers, however, can solve the OSP with a constant-factor speedup. Though the precise optimal constant remains unknown, any exact quantum algorithm for the problem requires a minimum of (lnN−1)/π≈0.221log2N queries (53). Existing upper bounds are mostly established by constructing explicit algorithms, often by first finding an exact, k-query algorithm for a fixed-size list and then applying it recursively. A fruitful line of research has focused on the framework of translation-invariant algorithms (4, 53–55). In 2007, Childs, Landahl, and Parrilo showed that an exact algorithm within this framework can be constructed by solving an equivalent SDP problem (4). Specifically, this involves solving the program S(k,N), which seeks a set of N×N real, symmetric, positive semidefinite matrices X0,X1,⋯,Xk that satisfy:

X0=E/NTtXt=TtXt−1∀t∈{1,⋯,k}Xk=I/NTr(Xt)=1∀t∈{0,⋯,k}, [6]

where k is the number of queries, E is the matrix of all ones, I is the identity matrix, and the linear operator Tt is defined via the trace along the i-th superdiagonal, (TtX)i:=TriX+(−1)tTri−NX. The trace operator Tri is defined as

TriX=∑ℓ=1N−iXℓ,ℓ+iif i≥0∑ℓ=1N+iXℓ−i,ℓif i<0.

Using this method, the optimal 4-query algorithm was found, which searches up to N=605 items in 4 queries and established the then-best upper bound of 4log605N≈0.433log2N (4).

However, the SDP approach hit a formidable computational barrier for the 5-query case. The program’s size scales quadratically with the list size N, while N itself grows exponentially in the number of queries. This scaling led to the 5-query SDP being considered “out of reach of SDP solvers despite 18 y of improvements to computer” in literature (56) as recently as 2025, prompting researchers to develop a less direct LP relaxation to find a 5-query algorithm that establishes the current best upper bound of 5log7265N≈0.390log2N (56).

Our GPU-based solver overcomes this long-standing computational barrier and directly solves the 5-query case via SDP.

  • Feasibility (N=7,265): Our solver successfully found a feasible solution for the SDP corresponding to an exact 5-query algorithm searching a 7,265-element list. The problem was solved to an absolute tolerance (‖A(X)−b‖) of 10−8 in 21 h. A full binary search using the direct SDP approach would require solving roughly a dozen SDPs similar to this one. For comparison, the search using the LP relaxation method was reported to take about a month in ref. 56.

  • Infeasibility Certificate (N=7,266): For the case N=7,266, our solver produced a feasible dual solution with a positive dual objective value of 1.92×103 based on a similar idea in ref. 57. Details of the construction of the dual feasible solution can be found in SI Appendix, section S2.5. This serves as a numerical certificate of the infeasibility of the primal problem, confirming that N=7,265 is the maximal list size for a 5-query algorithm.

By directly solving the complete SDP for the 5-query case, we essentially provide a proof of the upper bound of 5log7265N≈0.390log2N in ref. 56, and demonstrate a significant advance in SDP solver capability. Furthermore, ref. 58 extended this SDP-based approach to the 6-query case of quantum ordered search, bracketing the maximum searchable list size as 90,000≤N⋆<94,000 and improving the empirical query-complexity coefficient from approximately 0.390 to 0.365.

Conclusion

In this paper, we tackle the long-standing challenge of developing a scalable and efficient solver for semidefinite programming problems. We present a unified computational framework specifically designed for GPU architectures, integrating first-order low-rank SDP methods with massively parallel processing capabilities. Furthermore, we also introduce cuLoRADS, a GPU-based solver implementing the low-rank splitting ADMM approach described in ref. 30. By incorporating both the classic Burer-Monteiro method and ADMM, cuLoRADS demonstrates extraordinary performance across a range of SDP problems. Our results highlight cuLoRADS’s remarkable efficiency and scalability. cuLoRADS significantly outperforms traditional CPU solvers. These advantages are particularly pronounced for SDP instances whose sparsity can be exploited to evaluate the required operators efficiently on GPUs and whose solutions admit relatively low-rank representations. Its performance may degrade when operator evaluations remain computationally expensive, substantially higher-rank factors are required, or the low-rank splitting algorithm converges slowly and therefore requires many iterations. Such difficulties may arise, for example, in some higher-order SOS/Lasserre relaxations and other SDP formulations that are not well suited to the current computational and algorithmic framework. Developing more efficient GPU-based algorithms for these problems remains an important direction for future research.

Materials and Methods

We develop cuLoRADS, a GPU solver for large-scale SDPs with sparse problem data and exploitable low-rank structure. The solver combines Burer-Monteiro low-rank factorization with an augmented Lagrangian and ADMM splitting framework. To exploit GPU parallelism while controlling memory use, problem data are retained on the GPU and the core linear operators are reorganized using fused computation and column-sparsity compression. We evaluate cuLoRADS on MaxCut, matrix completion, and quantum ordered-search SDPs. Further implementation and experimental details are provided in SI Appendix.

Supplementary Material

Appendix 01 (PDF)

pnas.2516128123.sapp.pdf (311.5KB, pdf)

Acknowledgments

Disclosure of Delegation to Generative AI. The authors declare the use of generative AI in the research and writing process. According to the GAIDeT taxonomy (2025), the following tasks were delegated to GAI tools under full human supervision: code optimization, data analysis, proofreading and editing, adapting and adjusting emotional tone, reformatting. The GAI tools used were GPT-5.6, GPT-5.5, GPT-5, and GPT-4o. Responsibility for the final manuscript lies entirely with the authors. Generative Artificial Intelligence (GAI) tools are not listed as authors and do not bear responsibility for the final outcomes. Declaration submitted by Collective responsibility. C.C. was supported in part by the National Natural Science Foundation of China [No. 72394363/72394360]; Q.D. was supported in part by the National Natural Science Foundation of China [Grants 12571325 and 72394364/72394360] and the Natural Science Foundation of Shanghai [Grant 24ZR1421300]. D.G. was supported in part by the National Natural Science Foundation of China [Grant NSFC-72225009, 72394360, 72394365].

Author contributions

Q.H., C.C., Q.D., D.G., and Y.Y. designed research; Q.H., Z.L., H.L., C.C., Q.D., D.G., and Y.Y. performed research; Q.H. and Z.L. analyzed data; and Q.H., Z.L., C.C., Q.D., D.G., and Y.Y. wrote the paper.

Competing interests

The authors declare no competing interest.

Footnotes

This article is a PNAS Direct Submission.

*cuLoRADS is available at https://github.com/COPT-Public/cuLoRADS.

†In the following experiments, for the CPU solvers tested on the same problems as those in ref. 30, we directly use the results from that work since the settings and hardware are identical.

Contributor Information

Caihua Chen, Email: chchen@nju.edu.cn.

Dongdong Ge, Email: ddge@sjtu.edu.cn.

Data, Materials, and Software Availability

Benchmarking dataset and code scripts have been deposited in cuLoRADS (To be released). Some study data are available: The solver used in the experiments is provided as a compiled binary for reproducibility. Previously published data were used for this work (49, 50).

Supporting Information

References

  • 1.Goemans M. X., Williamson D. P., Improved approximation algorithms for maximum cut and satisfiability problems using semidefinite programming. JACM 42, 1115–1145 (1995). [Google Scholar]
  • 2.Bertsimas D., Ye Y., Semidefinite relaxations, multivariate normal distributions, and order statistics. Handb. Comb. Optim. 3, 1–19 (1998). [Google Scholar]
  • 3.Lasserre J. B., Global optimization with polynomials and the problem of moments. SIAM J. Optim. 11, 796–817 (2001). [Google Scholar]
  • 4.Childs A. M., Landahl A. J., Parrilo P. A., Quantum algorithms for the ordered search problem via semidefinite programming. Phys. Rev. A 75, 032335 (2007). [Google Scholar]
  • 5.A. E. DePrince III, Variational determination of the two-electron reduced density matrix: A tutorial review. WIREs Comput. Mol. Sci. 14, e1702 (2024).
  • 6.G. H. Low et al. , Fast quantum simulation of electronic structure by spectral amplification. Phys. Rev. X 15, 041016 (2025).
  • 7.P. Parrilo, “Structured semidenite programs and semialgebraic geometry methods in robustness and optimization,” PhD thesis, California Institute of Technology (2000).
  • 8.A. Papachristodoulou, S. Prajna, “A tutorial on sum of squares techniques for systems analysis” in Proceedings of the 2005, American Control Conference (IEEE, 2005), vol. 4, pp. 2686–2700.
  • 9.E. J. Candès, B. Recht, Exact matrix completion via convex optimization. Found. Comput. Math. 9, 717–772 (2009).
  • 10.A. d’Aspremont, L. El Ghaoui, M. I. Jordan, G. R. G. Lanckriet, A direct formulation for sparse PCA using semidefinite programming. SIAM Rev. 49, 434–448 (2007).
  • 11.Lavaei J., Low S. H., Zero duality gap in optimal power flow problem. IEEE Trans. Power syst. 27, 92–107 (2011). [Google Scholar]
  • 12.Mareček J., Takáč M., A low-rank coordinate-descent algorithm for semidefinite programming relaxations of optimal power flow. Optim. Methods Softw. 32, 849–871 (2017). [Google Scholar]
  • 13.Low S. H., Convex relaxation of optimal power flow-part I: Formulations and equivalence. IEEE Trans. Control. Netw. Syst. 1, 15–27 (2014). [Google Scholar]
  • 14.Low S. H., Convex relaxation of optimal power flow-part II: Exactness. IEEE Trans. Control. Netw. Syst. 1, 177–189 (2014). [Google Scholar]
  • 15.So A. M. C., Ye Y., Theory of semidefinite programming for sensor network localization. Math. Program. 109, 367–384 (2007). [Google Scholar]
  • 16.P. Biswas, Y. Ye, “Semidefinite programming for ad hoc wireless sensor network localization” in Proceedings of the 3rd International Symposium on Information Processing in Sensor Networks, IPSN ’04, K. Ramchandran, J. Sztipanovits, J. C. Hou, T. N. Pappas, Eds. (Association for Computing Machinery, New York, NY, 2004), pp. 46–54.
  • 17.Biswas P., Toh K. C., Ye Y., A distributed SDP approach for large-scale noisy anchor-free graph realization with applications to molecular conformation. SIAM J. Sci. Comput. 30, 1251–1277 (2008). [Google Scholar]
  • 18.M. Grant, S. Boyd, Y. Ye, Cvx users’ guide (2009).
  • 19.Diamond S., Boyd S., Cvxpy: A python-embedded modeling language for convex optimization. J. Mach. Learn. Res. 17, 1–5 (2016). [PMC free article] [PubMed] [Google Scholar]
  • 20.J. Löfberg, “YALMIP: A toolbox for modeling and optimization in MATLAB” in Proceedings of the 2004 IEEE International Symposium on Computer Aided Control Systems Design (IEEE, 2004), pp. 284–289.
  • 21.F. Alizadeh-Dehkharghani, “Combinatorial optimization with interior point methods and semidefinite matrices,” PhD thesis, University of Minnesota (1991). https://www.proquest.com/dissertations-theses/combinatorial-optimization-with-interior-point/docview/303943307/se-2.
  • 22.Alizadeh F., Interior point methods in semidefinite programming with applications to combinatorial optimization. SIAM J. Optim. 5, 13–51 (1995). [Google Scholar]
  • 23.Nesterov Y., Nemirovskii A., Interior-Point Polynomial Algorithms in Convex Programming (SIAM, 1994). [Google Scholar]
  • 24.Ye Y., Interior Point Algorithms: Theory and Analysis (John Wiley & Sons, 1997). [Google Scholar]
  • 25.Wen Z., Goldfarb D., Yin W., Alternating direction augmented lagrangian methods for semidefinite programming. Math. Program. Comput. 2, 203–230 (2010). [Google Scholar]
  • 26.Lan G., Lu Z., Monteiro R. D., Primal-dual first-order methods with iteration-complexity for cone programming. Math. Program. 126, 1–29 (2011). [Google Scholar]
  • 27.B O’donoghue, E Chu, N Parikh, S Boyd, Conic optimization via operator splitting and homogeneous self-dual embedding. J. Optim. Theory Appl. 169, 1042–1068 (2016). [Google Scholar]
  • 28.Zhao X. Y., Sun D., Toh K. C., A newton-cg augmented lagrangian method for semidefinite programming. SIAM J. Optim. 20, 1737–1765 (2010). [Google Scholar]
  • 29.Yang L., Sun D., Toh K. C., Sdpnal+: A majorized semismooth newton-cg augmented lagrangian method for semidefinite programming with nonnegative constraints Math. Program. Comput. 7, 331–366 (2015). [Google Scholar]
  • 30.Q. Han et al., A low-rank ADMM splitting approach for semidefinite programming. arXiv [Preprint] (2024). 10.48550/arXiv.2403.09133. [DOI]
  • 31.R. D. C. Monteiro, A. Sujanani, D. Cifuentes, A low-rank augmented Lagrangian method for large-scale semidefinite programming based on a hybrid convex-nonconvex approach. Math. Program, 10.1007/s10107-026-02338-0 (2026). [DOI]
  • 32.B. Yalçin, Z. Ma, J. Lavaei, S. Sojoudi, “Semidefinite programming versus burer-monteiro factorization for matrix sensing” in Proceedings of the AAAI Conference on Artificial Intelligence, B. Williams, Y. Chen, J. Neville, Eds. (AAAI Press, Washington, DC, 2023), vol. 37, pp. 10702–10710.
  • 33.Burer S., Choi C., Computational enhancements in low-rank semidefinite programming. Optim. Methods Softw. 21, 493–512 (2006). [Google Scholar]
  • 34.Erdogdu M. A., Ozdaglar A., Parrilo P. A., Vanli N. D., Convergence rate of block-coordinate maximization Burer-Monteiro method for solving large SDPS. Math. Program. 195, 243–281 (2022). [Google Scholar]
  • 35.Pataki G., On the rank of extreme matrices in semidefinite programs and the multiplicity of optimal eigenvalues. Math. Oper. Res. 23, 339–358 (1998). [Google Scholar]
  • 36.Barvinok A. I., Problems of distance geometry and convex properties of quadratic maps. Discrete Comput. Geom. 13, 189–202 (1995). [Google Scholar]
  • 37.A. Krizhevsky, I. Sutskever, G. E. Hinton, “Imagenet classification with deep convolutional neural networks” in Advances in Neural Information Processing Systems, F. Pereira, C. Burges, L. Bottou, K. Weinberger, Eds. (Curran Associates, Inc., 2012), vol. 25.
  • 38.N Corporation, NVIDIA cuDSS (2025). https://developer.NVIDIA.com/cudss. Accessed 26 November 2025.
  • 39.Y. Chen, D. Tse, P. Nobel, P. Goulart, S. Boyd, CuClarabel: GPU acceleration for a conic optimization solver. arXiv [Preprint] (2024). 10.48550/arXiv.2412.19027 (Accessed 11 September 2026). [DOI]
  • 40.H. Lu, J. Yang, cuPDLP.jl: A GPU implementation of restarted primal-dual hybrid gradient for linear programming in Julia. Oper. Res. 73, 3440–3452 (2025).
  • 41.H. Lu et al., cuPDLP-C: A strengthened implementation of cuPDLP for linear programming by C language. arXiv [Preprint] (2024). 10.48550/arXiv.2312.14832. [DOI]
  • 42.Y. Huang et al. , Restarted primal-dual hybrid conjugate gradient method for large-scale quadratic programming. arXiv [Preprint] (2024). 10.48550/arXiv.2405.16160. [DOI]
  • 43.H. Lu, J. Yang, A practical and optimal first-order method for large-scale convex quadratic programming. Math. Program. 215, 771–808 (2026).
  • 44.Fletcher R., Practical Methods of Optimization (John Wiley & Sons, 2000). [Google Scholar]
  • 45.Hestenes M. R., et al. , Methods of conjugate gradients for solving linear systems. J. Res. Natl. Bureau Stand. 49, 409–436 (1952). [Google Scholar]
  • 46.W. Gao, D. Ge, Y. Ye, Algorithm 1055: HDSDP: Software for semidefinite programming. ACM Trans. Math. Softw. 51, 30 (2025).
  • 47.Fukuda M., Kojima M., Murota K., Nakata K., Exploiting sparsity in semidefinite programming via matrix completion I: General framework. SIAM J. Optim. 11, 647–674 (2001). [Google Scholar]
  • 48.D. Ge, Q. Huangfu, Z. Wang, J. Wu, Y. Ye, Cardinal Optimizer (COPT) User Guide, version 6.0.1 (Cardinal Operations, 2022). arXiv [Preprint] (2022). 10.48550/arXiv.2208.14314. [DOI]
  • 49.Y. Ye, Gset [Data set] (2003). https://web.stanford.edu/~yyye/yyye/Gset/. Accessed 11 September 2026.
  • 50.Davis T. A., Hu Y., The university of Florida sparse matrix collection. ACM Trans. Math. Softw. 38, 1–25 (2011). [Google Scholar]
  • 51.Wang J., Hu L., Solving low-rank semidefinite programs via manifold optimization. J. Sci. Comput. 104, 1–33 (2025). [Google Scholar]
  • 52.Yurtsever A., Tropp J. A., Fercoq O., Udell M., Cevher V., Scalable semidefinite programming. SIAM J. Math. Data Sci. 3, 171–200 (2021). [Google Scholar]
  • 53.Høyer P., Neerbek J., Shi Y., Quantum Complexities of Ordered Searching, Sorting, and Element Distinctness (Springer, Berlin Heidelberg, 2001), pp. 346–357. [Google Scholar]
  • 54.E. Farhi, J. Goldstone, S. Gutmann, M. Sipser, Invariant quantum algorithms for insertion into an ordered list. arXiv [Preprint] (1999). 10.48550/arXiv.quant-ph/9901059. [DOI]
  • 55.B. Jacokes, “An improved quantum algorithm for searching an ordered list” in Research Science Institute Student Reports 2003, C. C. Mihelich, Ed. (Center for Excellence in Education, Vienna, VA, 2003), pp. 19–26.
  • 56.J. Carolan, A. M. Childs, M. Kovacs-Deak, L. Schaeffer, Translation-invariant quantum algorithms for ordered search are optimal. arXiv [Preprint] (2025). 10.48550/arXiv.2503.21090. [DOI]
  • 57.Y. E. Nesterov, M. J. Todd, Y. Ye, “Infeasible-start primal-dual methods and infeasibility detectors for nonlinear programming problems” (Tech. Rep. 1156, Cornell University Operations Research and Industrial Engineering, 1996).
  • 58.Y. Wu et al. , “Matrix-free GPU semidefinite programming for quantum ordered search at the k = 6 frontier” in Proceedings of the 43rd International Conference on Machine Learning (PMLR, 2026).

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Appendix 01 (PDF)

pnas.2516128123.sapp.pdf (311.5KB, pdf)

Data Availability Statement

Benchmarking dataset and code scripts have been deposited in cuLoRADS (To be released). Some study data are available: The solver used in the experiments is provided as a compiled binary for reproducibility. Previously published data were used for this work (49, 50).


Articles from Proceedings of the National Academy of Sciences of the United States of America are provided here courtesy of National Academy of Sciences

RESOURCES