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

Tight Bounds for Linear Sketches of Approximate Matchings

Sepehr Assadi, Sanjeev Khanna, Yang Li, Grigory YaroslavtsevarXiv 2015

Abstract

We resolve the space complexity of linear sketches for approximating the maximum matching problem in dynamic graph streams where the stream may include both edge insertion and deletion. Specifically, we show that for any $\epsilon > 0$, there exists a one-pass streaming algorithm, which only maintains a linear sketch of size $\tilde{O}(n^{2-3\epsilon})$ bits and recovers an $n^\epsilon$-approximate maximum matching in dynamic graph streams, where $n$ is the number of vertices in the graph. In contrast to the extensively studied insertion-only model, to the best of our knowledge, no non-trivial single-pass streaming algorithms were previously known for approximating the maximum matching problem on general dynamic graph streams. Furthermore, we show that our upper bound is essentially tight. Namely, any linear sketch for approximating the maximum matching to within a factor of $O(n^\epsilon)$ has to be of size $n^{2-3\epsilon -o(1)}$ bits. We establish this lower bound by analyzing the corresponding simultaneous number-in-hand communication model, with a combinatorial construction based on Ruzsa-Szemerédi graphs.

Introduction

In the era of massive datasets, many graphs—such as social networks, web crawls, and transaction logs—are too large to be stored in traditional memory. This has necessitated the development of streaming algorithms, which process data in a single pass using sublinear space. A fundamental problem in this domain is finding a Maximum Matching: the largest set of edges that do not share any common vertices.

While the "insertion-only" model (where edges are only added) has been studied extensively, real-world data is often dynamic, featuring both insertions and deletions. Dynamic streams are significantly more challenging because an algorithm cannot simply commit to a greedy matching; an edge selected early in the stream might be deleted later, potentially rendering the remaining matching highly sub-optimal. This paper settles the space complexity for this problem within the framework of linear sketches.

The Linear Sketching Paradigm

Linear sketches are the "gold standard" for dynamic graph streams. A sketch $L(G)$ is a linear function of the input graph's adjacency vector. This linearity is powerful because it handles deletions naturally: if an edge $e$ is deleted, the algorithm simply subtracts the contribution of $e$ from the current sketch. Most known algorithms for dynamic streams rely on this property. The authors of this paper specifically investigate the efficiency frontier of these sketches: how much memory (in bits) is required to achieve a specific approximation ratio?

Algorithmic Framework: Coordinated $\ell_0$-Sampling

The paper's upper bound is established through a randomized algorithm utilizing $\ell_0$-samplers. An $\ell_0$-sampler is a linear sketch capable of retrieving a random edge from the current graph, even after a complex sequence of insertions and deletions.

The Challenge of Collisions

Simple random sampling is insufficient for matchings. If an algorithm samples edges blindly, it is likely to pick edges that share vertices, which does not help in building a large matching. To overcome this, the authors introduce coordinated sampling:

  1. Vertex Partitioning: The $n$ vertices are partitioned into specific groups.
  2. Targeted Sampling: The algorithm maintains samplers for specific pairs of these groups.
  3. Spread Optimization: By carefully selecting which pairs to track, the algorithm ensures that the sampled edges are "well-spread" across the graph.

This approach allows the recovery of a matching of size $\Omega(\text{opt}/n^\epsilon)$ using only $\tilde{O}(n^{2-3\epsilon})$ bits of space.

Information-Theoretic Limits: Ruzsa-Szemerédi Graphs

To prove that their algorithm is optimal, the authors employ Communication Complexity. They model the streaming process as a game where multiple players hold different parts of a graph and must send a single message to a central coordinator.

The core of the lower bound proof relies on Ruzsa-Szemerédi (RS) graphs. These are sophisticated combinatorial structures that are simultaneously "dense" (containing many edges) and "sparse" (decomposable into many large induced matchings). By embedding a matching within these complex structures, the authors demonstrate that any algorithm using less than $n^{2-3\epsilon}$ space fundamentally lacks the information capacity to distinguish the matching edges from the surrounding "noise" of the graph.

Key Results and Implications

The paper provides a complete characterization of the space-approximation trade-off for linear sketches in dynamic streams:

  • The $2-3\epsilon$ Bound: The space requirement is established as $n^{2-3\epsilon}$. For example, if a user requires a $\sqrt{n}$ approximation (where $\epsilon = 0.5$), the space needed is approximately $n^{0.5}$. If a more precise $n^{1/3}$ approximation is required, the space requirement jumps to $n^1$ (linear space).
  • Closing the Gap: This work provides the first non-trivial single-pass streaming algorithms for general dynamic graphs and proves they are essentially optimal.
  • The Power of Linearity: The results suggest that for dynamic streams, linear sketching is likely the only viable approach, as the lower bounds for linear sketches match the best known upper bounds.

Future Directions

While this work resolves the complexity for linear sketches, several questions remain:

  1. Non-linear Algorithms: Could a non-linear algorithm bypass these lower bounds? Current evidence suggests they might be equivalent in this model, but a formal proof is lacking.
  2. Constant Approximations: A major open question is whether a constant-factor approximation (e.g., a 2-approximation) is possible in $o(n^2)$ space. This paper's results suggest that for linear sketches, the answer is likely negative, as the space requirement approaches $n^2$ as $\epsilon$ approaches 0.
  3. Multi-pass Streams: The current bounds apply to single-pass algorithms. Investigating how additional passes over the data could reduce the space-per-pass remains a fertile area for research.

Summary updated

BibTeX
@misc{assadi2015tight,
  author = {Sepehr Assadi and Sanjeev Khanna and Yang Li and Grigory Yaroslavtsev},
  title = {{Tight Bounds for Linear Sketches of Approximate Matchings}},
  year = {2015},
  eprint = {1505.01467},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1505.01467},
}
Figure