A Sketching Algorithm for Spectral Graph Sparsification

Jiecao Chen, Bo Qin, David P. Woodruff, Qin ZhangarXiv 2014

Abstract

Spectral graph sparsification is a fundamental technique for approximating large graphs with smaller ones while preserving their spectral properties. Traditionally, achieving a $(1 \pm \epsilon)$ approximation for all possible query vectors required $O(n\epsilon^{-2})$ space. This paper breaks this long-standing barrier by relaxing the requirement to a "for each" guarantee. We present a sketching algorithm that achieves a space complexity of $\tilde{O}(n\epsilon^{-1.6})$, demonstrating that graph Laplacians possess structural properties that make them more compressible than general positive semidefinite matrices.

Introduction

Graph sparsification aims to replace a massive, dense graph $G$ with a much smaller representation that behaves similarly under various operations. In "spectral sparsification," the goal is to preserve the quadratic form $x^T L_G x$ for any vector $x \in \mathbb{R}^n$ within a factor of $(1 \pm \epsilon)$. This quadratic form is central to graph theory, as it relates to cuts, electrical resistance, and random walks.

The current state-of-the-art spectral sparsifiers require $O(n\epsilon^{-2})$ edges. This bound is optimal for "for all" guarantees, where the sketch must work for all possible query vectors simultaneously. However, many applications only require a "for each" guarantee: for any specific query vector $x$, the sketch should provide a $(1 \pm \epsilon)$ approximation with high probability. While general positive semidefinite (PSD) matrices require $\Omega(n\epsilon^{-2})$ space even for "for each" guarantees, this work investigates whether the unique structure of graph Laplacians allows for sub-quadratic space complexity in terms of $\epsilon$.

Methods

The proposed algorithm achieves sub-quadratic space through a multi-stage process that leverages the structural properties of graphs.

1. Initial Sparsification and Partitioning

The process begins with standard spectral sparsification to reduce the edge count to $O(n\epsilon^{-2})$. To handle the remaining complexity, the algorithm employs recursive partitioning based on the Cheeger constant ($h_G$). By identifying and explicitly storing "sparse cuts," the algorithm ensures that the remaining components are "well-expanded" (possess high conductance).

Algorithm for recursive partitioning using Cheeger cuts to identify well-expanded components.

2. Vertex and Edge Classification

Within these well-expanded components, vertices are classified as "heavy" (high degree) or "light" (low degree). Edges incident to light vertices are stored exactly. For edges between heavy vertices, the authors introduce a "buddy graph" technique. This directed graph structure allows each edge to be "assigned" to one of its endpoints.

3. Refined Sampling

By sampling edges from these assigned sets with probability proportional to their weights, the algorithm significantly reduces the variance of the estimator. A more granular partitioning of edges based on endpoint degrees further optimizes the sampling process, leading to the final space savings.

Key Results and Insights

The primary contribution of this work is the first data structure for spectral graph sketching with a sub-quadratic dependence on $\epsilon$, specifically achieving a space complexity of $\tilde{O}(n\epsilon^{-1.6})$ bits.

Graphs vs. General PSD Matrices

A profound insight of this research is the fundamental difference between graph Laplacians and general PSD matrices. The authors prove a lower bound of $\Omega(n\epsilon^{-2})$ for general matrices, highlighting that the Laplacian structure is the key to breaking the quadratic barrier.

Conductance and Variance Reduction

By ensuring high conductance in the sampled components, the algorithm bounds the variance of the random sampling estimator. In well-connected graphs, the influence of any single edge is distributed, making the sketch more robust to random sampling. This transition from "for all" to "for each" allows the use of different random samples tailored to specific query vectors at query time.

Conclusion and Future Work

This result bridges the gap between the $\tilde{O}(n\epsilon^{-1})$ space required for simple cut queries and the $O(n\epsilon^{-2})$ required for universal spectral sparsifiers. While $\epsilon^{-1.6}$ is a significant improvement, it remains higher than the $\epsilon^{-1}$ achieved for cut queries, suggesting potential for further refinement. Future research may explore pushing the complexity closer to $n\epsilon^{-1}$ or extending these sub-quadratic sketches to directed graph Laplacians.

Summary updated

BibTeX
@misc{chen2014sketching,
  author = {Jiecao Chen and Bo Qin and David P. Woodruff and Qin Zhang},
  title = {{A Sketching Algorithm for Spectral Graph Sparsification}},
  year = {2014},
  eprint = {1412.8225},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1412.8225},
}
Figure