Parallel and Streaming Algorithms for K-Core Decomposition

Hossein Esfandiari, Silvio Lattanzi, Vahab S. Mirrokni

Introduction

This paper introduces the first distributed and streaming algorithms for approximate $k$-core decomposition with provable guarantees. By utilizing a novel adaptive sketching technique, the authors enable the analysis of massive graphs in MapReduce and single-pass streaming settings. Crucially, this approach uses space that scales with the number of nodes rather than the number of edges, making it highly efficient for dense networks.

The Challenge of $k$-Core Decomposition

$k$-core decomposition is a fundamental tool in graph theory used to uncover the hierarchical structure of networks. A $k$-core is defined as the maximal subgraph where every node has a degree of at least $k$. It is widely used for community detection, identifying influential nodes, and visualizing complex networks.

The primary challenge lies in computation. The standard "peeling" algorithm is inherently sequential: it finds all nodes with a degree less than $k$, removes them, and repeats the process until no such nodes remain. This "onion-peeling" dependency is a nightmare for modern big data architectures. In a streaming setting (where edges are observed one by one and cannot all be stored) or a MapReduce setting (where data is processed in parallel), this sequential nature usually leads to an impractical number of passes or rounds for graphs with billions of edges.

Approximate vs Exact k-core

To bypass this bottleneck, the authors shift the goalpost from finding an exact $k$-core to finding a $(1 - \epsilon)$-approximation, allowing for highly parallelizable and space-efficient computation.

Methodology: Adaptive Sketching

The researchers propose a new adaptive sketching technique based on iterative adaptive sampling:

  1. Sparse Sampling: The algorithm starts by sampling a very small fraction of edges to create a sparse subgraph.
  2. Estimation: A modified peeling algorithm is run on this sparse graph. If a node has a high coreness in this sparse sample, its coreness in the original graph can be mathematically proven with high precision.
  3. Locking & Recursing: Nodes with high-confidence estimates are "locked" into a set, and their edges are removed from the original graph.
  4. Adaptive Scaling: The sampling probability is then doubled, and the process repeats for the remaining nodes.

By sampling more aggressively in "denser" areas and less in "sparser" ones, the algorithm maintains a small memory footprint—specifically $O(n \text{ polylog } n)$ space—while capturing enough structural information to estimate coreness for all nodes. Simple uniform sampling fails here because it cannot accurately estimate the coreness of low-degree nodes; the adaptive approach is necessary to "zoom in" on different density levels.

Key Results and Performance

The researchers evaluated their sketch on eight real-world graphs from the Stanford Large Network Dataset Library (SNAP), ranging from ~180k edges (Enron) to over 117 million edges (Orkut).

  • MapReduce Scalability: In MapReduce, the algorithm runs in $O(\log n)$ rounds. Experimentally, the running time scales exceptionally well. As graph density increases, the parallelization effectively handles the load, resulting in sublinear relative running time growth compared to the number of edges.
Relative Running Time Scaling
  • Streaming Power: The paper demonstrates a one-pass streaming algorithm that uses $O(n \log^2 n / \epsilon^2)$ space. This makes it feasible to monitor $k$-core structures on a single machine even for massive graphs that cannot fit into RAM.
  • Accuracy: The approximation error remains remarkably low. For nodes with a coreness of at least 5, the median error was consistently below 25% when the estimation threshold parameter was properly tuned.

Limitations and Future Work

While highly efficient, the current streaming algorithm is a "semi-streaming" model, meaning it handles edge insertions well but does not explicitly address edge deletions. Additionally, while the approximation is tight and theoretically bounded, certain high-precision scientific applications might still require exact values.

The authors point toward the development of a fully dynamic algorithm—one capable of maintaining core labels in real-time as edges are both added and deleted—as the next major frontier in $k$-core decomposition research.

Summary updated

BibTeX
@inproceedings{esfandiari2018parallel,
  author = {Hossein Esfandiari and Silvio Lattanzi and Vahab S. Mirrokni},
  title = {{Parallel and Streaming Algorithms for K-Core Decomposition}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
}
Figure