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

An SDP-based algorithm for linear-sized spectral sparsification

Yin Tat Lee, He SunSTOC 2017 · OpenReview

Abstract

Spectral sparsification is a fundamental technique in graph theory and numerical linear algebra used to approximate a dense graph with a sparse subgraph that preserves its essential structural and spectral properties. Historically, algorithms have faced a trade-off between achieving optimal sparsity ($O(n)$ edges) and nearly-linear runtime ($\tilde{O}(m)$). This paper presents the first algorithm to achieve both simultaneously. By leveraging a novel exponential potential function and a semi-definite programming (SDP) "filtering" technique, the authors provide a solution that is both theoretically optimal and highly parallelizable.

The Challenge of Spectral Sparsification

In many large-scale graph applications, processing dense graphs with $m$ edges is computationally prohibitive. Sparsification seeks to replace a graph $G$ with a subgraph $H$ that has significantly fewer edges but remains a "good" approximation. A spectral sparsifier $H$ satisfies $(1-\epsilon)L_G \preceq L_H \preceq (1+\epsilon)L_G$, where $L$ denotes the Laplacian matrix. This ensures that $H$ preserves cut values, eigenvalues, and the behavior of heat kernels and random walks.

Spectral sparsification reduces a dense graph $G$ to a sparse subgraph $H$ while preserving its structural properties.

The "Holy Grail" of this field has been to construct a sparsifier with $O(n/\epsilon^2)$ edges in nearly-linear time. Previous works like the BSS algorithm (2012) achieved the edge count but required high polynomial time, while others like Spielman and Teng (2011) achieved speed at the cost of $O(n \log^c n)$ edges. This paper bridges the gap, resolving a major open question regarding the existence of fast, linear-sized sparsification algorithms.

Algorithmic Innovations

The breakthrough relies on three primary technical components that allow the algorithm to move beyond the limitations of previous iterative approaches.

1. Exponential Potential Functions

Previous iterative methods used barrier functions to keep the eigenvalues of the sparsifier within a specific range. This paper introduces a more aggressive exponential potential function: $\Phi_u(A) = \text{tr exp}((uI - A)^{-1})$. This function grows rapidly as eigenvalues approach the boundaries, providing a stronger signal that allows the algorithm to take larger, more confident steps without violating spectral constraints.

2. SDP Filtering

To achieve nearly-linear time, the algorithm must add many edges simultaneously rather than one by one. The authors employ a Semi-Definite Program (SDP) to "filter" large batches of sampled edges. By using a "packing SDP," which can be solved efficiently in nearly-linear time, the algorithm ensures that the batch of edges collectively respects the spectral bounds.

The iterative expansion of spectral boundaries toward the final sparsifier $T$.

3. Breaking the Iteration Barrier

Traditional linear-sized constructions required $\Omega(n)$ iterations. The combination of the new potential function and SDP filtering allows the algorithm to add $\Omega(n / \text{polylog } n)$ edges per iteration. This reduces the total number of iterations to a polylogarithmic factor, which is key to the nearly-linear total runtime.

Key Results and Theoretical Impact

The algorithm produces a $(1+\epsilon)$-spectral sparsifier with $O(n/\epsilon^2)$ edges in $O(m/\epsilon^{O(1)})$ time. Beyond the runtime improvement, the algorithm is highly parallelizable, with a depth of $O(1/\epsilon^{O(1)})$. This makes it suitable for modern high-performance computing environments.

Furthermore, the result is not limited to graph Laplacians. It generalizes to the problem of sparsifying any sum of Positive Semi-Definite (PSD) matrices, a problem with broad applications in randomized numerical linear algebra and optimization.

Future Directions

While this work marks a theoretical milestone, several avenues for future research remain. The current runtime has a high-degree polynomial dependence on the error parameter $\epsilon$, which may limit practical performance for high-precision requirements. Additionally, simplifying the SDP filtering step could lead to more straightforward implementations. Finally, extending these techniques to directed graphs remains one of the most significant open challenges in the field of graph sparsification.

Summary updated

BibTeX
@misc{lee2017sdp,
  author = {Yin Tat Lee and He Sun},
  title = {{An SDP-based algorithm for linear-sized spectral sparsification}},
  year = {2017},
  eprint = {1702.08415},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1702.08415},
}
Figure