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

Kernelization via Sampling with Applications to Dynamic Graph Streams

Rajesh Hemant Chitnis, Graham Cormode, Hossein Esfandiari, MohammadTaghi Hajiaghayi, Andrew McGregor, Morteza Monemizadeh, Sofya VorotnikovaarXiv 2015

Abstract

This paper presents a novel algorithmic framework for processing dynamic graph streams, where edges are both added and deleted over time. By introducing a "subgraph sampling" primitive that utilizes vertex coloring and $\ell_0$-sampling, the authors bridge the gap between parameterized complexity and streaming algorithms. This approach yields optimal or near-optimal space bounds for fundamental problems such as Maximum Matching and Minimum Hitting Set in the challenging dynamic setting.

Introduction

In the era of massive datasets, graphs are often processed as streams because their full structure cannot fit into memory. While early research focused on insert-only streams, real-world networks—such as social media interactions or routing tables—are inherently dynamic, characterized by frequent edge deletions.

Handling deletions is significantly more complex than handling insertions; standard greedy heuristics often fail when a previously selected edge is removed. To address this, researchers have turned to linear sketching, but applying these techniques to complex combinatorial problems like Maximum Matching or Hitting Set remains a challenge. This paper introduces a general framework for "kernelization via sampling," creating a compact representation (a kernel) of the graph that preserves the solution to the original problem even under dynamic updates.

The Subgraph Sampling Primitive

The core contribution of this work is a sampling mechanism designed to maintain a representative subgraph $G'$ of the dynamic stream $G$. The process involves several key steps:

  1. Coloring and Hashing: Each vertex is assigned a "color" from a set $[b]$ using a pairwise independent hash function.
  2. Edge Selection: For every possible subset of colors (e.g., pairs for graphs, $d$-tuples for hypergraphs), the algorithm maintains a sample of exactly one edge whose endpoints match those specific colors.
  3. Dynamic Implementation via $\ell_0$-Samplers: To handle deletions, the authors employ $\ell_0$-samplers—sophisticated data structures capable of returning a random non-zero element from a vector undergoing updates. Here, the vector tracks the presence of edges within specific color classes.
  4. Kernel Construction: The resulting subgraph $G'$ acts as a kernel. The authors prove that if $G$ contains a solution of size $k$, $G'$ will also contain that solution with high probability, provided the number of color classes $b$ is appropriately scaled (typically proportional to $k$).

Key Insights

Mitigating High-Degree Bias

Uniform edge sampling often fails in matching problems because it favors edges incident to high-degree vertices, potentially overlooking the structural edges necessary for a maximum matching. The coloring approach effectively "levels the playing field," ensuring samples are drawn across the graph's structure rather than just from high-density areas.

The Streaming-Kernel Connection

The paper formalizes how properties preserved under "vertex contraction" (such as $b$-matching and vertex coloring) can be solved using this sampling strategy to build a streaming kernel. This provides a bridge between the field of parameterized complexity and the constraints of streaming environments.

Application of the Sunflower Lemma

For the Hitting Set problem in hypergraphs (a generalization of Vertex Cover), the authors utilize the Sunflower Lemma from extremal set theory. This allows them to bound the sample size by showing that once a "cluster" of edges (a sunflower) reaches a certain size, any hitting set must intersect its core, allowing the algorithm to bound the necessary sample size.

Results and Complexity

The framework yields several state-of-the-art results for the dynamic streaming model:

  • Maximum Matching: The authors achieve an $\tilde{O}(k^2)$ space algorithm (where $k$ is the matching size), which is proven to be optimal. This improves upon previous results that depended on the total number of vertices $n$.
  • Approximations: For scenarios where the matching size is unknown, an $\alpha$-approximation is achieved using $\tilde{O}(n^2/\alpha^3)$ space.
  • Sparse Graphs: For graphs with bounded arboricity (such as planar graphs), a constant approximation is possible in sub-linear $\tilde{O}(n^{4/5})$ space.
  • Hitting Set: The paper provides an optimal $\tilde{O}(k^d)$ space algorithm for $d$-Hitting Set.
  • Efficiency: Most of these algorithms feature $\tilde{O}(1)$ update time per edge, making them highly efficient for high-velocity data streams.

Conclusion and Future Work

While the framework is powerful, it presents certain trade-offs. The $\alpha$-approximation for matching requires $O(k)$-wise independent hash functions, which can increase update latency as $k$ grows. Furthermore, the approach is primarily suited for properties preserved under vertex contraction; the authors demonstrate that problems outside this class may require significantly more space, suggesting a fundamental limit to this sampling approach. Future work may explore improving the space complexity for weighted matchings and extending the framework to a broader range of combinatorial problems.

Summary updated

BibTeX
@misc{chitnis2015kernelization,
  author = {Rajesh Hemant Chitnis and Graham Cormode and Hossein Esfandiari and MohammadTaghi Hajiaghayi and Andrew McGregor and Morteza Monemizadeh and Sofya Vorotnikova},
  title = {{Kernelization via Sampling with Applications to Dynamic Graph Streams}},
  year = {2015},
  eprint = {1505.01731},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1505.01731},
}
Figure