Practical Parallel Algorithms for Near-Optimal Densest Subgraphs on Massive Graphs

Pattara Sukprasert, Quanquan C. Liu, Laxman Dhulipala, Julian Shun

TL;DR

This paper introduces a high-performance parallel framework for finding "near-optimal" densest subgraphs in massive networks. By combining a novel iterative pruning strategy with parallelized multiplicative weight update (MWU) algorithms, the authors achieve up to a 114× speedup over previous state-of-the-art parallel methods, successfully scaling to graphs with over 100 billion edges for the first time.

What Problem Does This Paper Address?

The Densest Subgraph Problem (DSP) asks us to find a subset of vertices in a graph that maximizes the ratio of edges to vertices. It is a cornerstone of graph mining, used for detecting communities, identifying protein motifs, and spotting spam or fraud.

The challenge lies in the trade-off between accuracy and scale:

  1. Exact solutions (using Linear Programming or Max-Flow) are too slow for modern "massive" graphs.
  2. Simple approximations (like the "peeling" algorithm) are fast but only guarantee a 2-approximation (meaning the result might only be half as dense as the true optimum).
  3. Near-optimal approximations ($1+\epsilon$) exist, such as the sequential Greedy++ algorithm, but they haven't been able to scale to graphs with billions of edges because they are inherently sequential or require too many iterations.

Methods

The authors propose a Pruning-and-Refining Framework that works in two main stages:

  1. Pruning with Cores: The authors leverage the mathematical property that the densest subgraph must reside within a specific "$k$-core" of the graph. By calculating a lower bound on the maximum density, they can aggressively "prune" (discard) the vast majority of the graph that couldn't possibly contain the densest part.
  2. Parallel Refinement: Once the graph is small enough, they run a refinement algorithm. They introduce two new parallel algorithms:
  3. PaRGreedy++: A parallelization of the state-of-the-art Greedy++ algorithm.
  4. PaRSorting++: A novel variant that replaces the complex iterative peeling order of Greedy++ with a simple, highly parallelizable sorting step based on vertex "loads."

Crucially, they prove that PaRSorting++ maintains the same $(1+\epsilon)$ theoretical approximation guarantee as the sequential version, despite being much easier to run on many CPU cores simultaneously.

Datasets

The authors evaluated their work on a wide range of datasets, from standard benchmarks to "massive" web graphs:

  • Standard Benchmarks: SNAP datasets (e.g., dblp, youtube, livejournal, orkut).
  • Synthetic: closecliques, designed to be difficult for iterative algorithms.
  • Massive Scale:
    • clueweb: ~978 million vertices and 37 billion edges.
  • hyperlink2012: ~3.5 billion vertices and 113 billion edges. This is the largest publicly available real-world graph.

Key Insights and Ideas

  • The Power of Pruning: In real-world graphs, the densest subgraph is often a tiny "needle in a haystack." Pruning reduced the number of edges by an average of 175× and vertices by 3,596×. This makes the subsequent expensive iterations much faster.
  • Decoupling is Key: The "aha moment" for parallelization was realizing they could decouple the vertex load updates from the peeling order. By sorting vertices based on their loads at the start of an iteration, they could process the graph in parallel without losing accuracy.
  • Empirical "Width": Theoretical analysis of MWU algorithms often uses a "width" parameter (usually the maximum degree $\Delta$) to predict how many iterations are needed. The authors found that in practice, the "empirical width" is much smaller than $\Delta$, explaining why their algorithms converge in just 10–20 iterations rather than the thousands predicted by theory.

Key Results

  • Unprecedented Scale: This is the first work to provide near-optimal density statistics for the hyperlink2012 (113B edges) and clueweb (37B edges) graphs.
  • Massive Speedups:
    • Compared to the previous best parallel algorithm (FISTA), they achieved up to 114× speedup.
  • Compared to the sequential Greedy++, they achieved 2.6–34× speedup on a single thread.
  • Efficiency: On a 30-core machine, their algorithms achieved up to 22.37× self-relative speedup, showing excellent utilization of multi-core hardware.
  • Accuracy: Their algorithms consistently found subgraphs within 0.01% of the best-known densities in the literature.

Limitations and Future Work

  • Worst-case Pruning: The authors acknowledge that there exist "pathological" graphs where the $k$-core pruning doesn't help (e.g., if the entire graph is the densest subgraph). While rare in real-world data, the framework's performance would degrade to that of the refinement algorithm alone in these cases.
  • Memory Constraints: While the algorithms are fast, they still require the graph (or at least the pruned version) to fit in memory. For 100B+ edge graphs, this requires "mega-memory" instances (e.g., 1.4 TB RAM).
  • Future Direction: The authors suggest that their empirical findings on "width" could lead to more refined theoretical analyses for a whole class of iterative graph algorithms.

Summary updated

BibTeX
@inproceedings{sukprasert2024practical,
  author = {Pattara Sukprasert and Quanquan C. Liu and Laxman Dhulipala and Julian Shun},
  title = {{Practical Parallel Algorithms for Near-Optimal Densest Subgraphs on Massive Graphs}},
  booktitle = {ALENEX},
  year = {2024},
  doi = {10.1137/1.9781611977929.5},
}
Figure