New Parallel and Streaming Algorithms for Directed Densest Subgraph

Slobodan Mitrović, Theodore Pan, Mahdi Qaempanah, Mohammad Amin Raeisi

Introduction

Identifying the "densest" regions of a graph—areas where the concentration of edges relative to vertices is highest—is a cornerstone of modern data mining. This task, known as the Densest Subgraph Problem, is essential for applications ranging from community detection in social networks to identifying fraudulent clusters in financial transaction data. While the problem is well-studied for undirected graphs, the complexity increases significantly when dealing with directed graphs, especially at the scale of billions of edges. This paper introduces breakthrough algorithms designed for the Massively Parallel Computation (MPC) and streaming models, providing efficient solutions for the Directed Densest Subgraph (DDS) problem on massive datasets.

The Directed Densest Subgraph Problem

In an undirected graph, density is typically defined as the ratio of edges to vertices. In a directed graph, however, the problem requires finding two potentially distinct sets of vertices, $S$ and $T$, such that the number of edges directed from $S$ to $T$ is maximized relative to the geometric mean of the sizes of $S$ and $T$. Formally, we seek to maximize the density $d(S, T) = \frac{|E(S, T)|}{\sqrt{|S||T|}}$.

As datasets grow to include billions of edges, traditional exact algorithms and even standard approximation techniques become computationally prohibitive. They often require the entire graph to fit in memory or necessitate a high number of passes over the data, which is impractical in distributed or streaming environments. The challenge addressed by this research is to achieve high-quality approximations using sublinear memory per machine and a minimal number of communication rounds or data passes.

Algorithmic Innovations

The authors base their approach on a "peeling" framework. Standard peeling algorithms iteratively remove vertices with the lowest degrees, but these typically require recalculating the average degree of the remaining graph at every step—a process that is inherently sequential and slow in parallel settings. To overcome this, the paper introduces three key innovations:

1. Fixed Threshold Peeling

Instead of recalculating degrees dynamically, the authors utilize fixed degree thresholds ($k_S$ and $k_T$). This decoupling allows the algorithm to make local decisions about vertex removal, making it highly suitable for both MPC and streaming architectures.

2. MPC with "Freezing" and Graph Exponentiation

To accelerate the parallel version, the algorithm employs graph exponentiation, which effectively doubles the explored neighborhood of a vertex in each round. A common bottleneck in MPC is the presence of "super-nodes"—vertices with massive degrees that can exceed the memory capacity of a single machine. The authors introduce a "freezing" strategy: high-degree nodes are temporarily ignored (frozen) until the rest of the graph is processed, allowing the algorithm to handle the "long tail" of the graph efficiently on machines with limited memory.

3. Level-Based Streaming

For the streaming model, the authors developed a level-based approach. As edges arrive in a single pass, the algorithm maintains and increments "levels" for each vertex. Degrees are only updated if a neighbor is at a compatible level, simulating the peeling process without the need to store the entire edge set. This results in the first-ever deterministic single-pass semi-streaming algorithm for the DDS problem.

Empirical Evaluation

The researchers evaluated their algorithms using 10 diverse datasets from the Stanford Large Network Dataset Collection (SNAP). These included general directed graphs (such as Google Web, Slashdot, and LiveJournal) and temporal directed graphs (such as Ask Ubuntu, Wikipedia, and Twitter) where edges are ordered by time.

Key Results

  • MPC Efficiency: The new MPC algorithm achieves a $(2 + \epsilon)$-approximation in $\tilde{O}(\sqrt{\log n})$ rounds. This matches the best-known round complexity for undirected graphs and represents a significant speedup over previous directed graph methods.
  • Streaming Breakthrough: The paper provides a deterministic single-pass algorithm with an $O(\log n)$-approximation guarantee. In practice, the algorithm outperformed its theoretical bounds, matching the quality of multi-pass algorithms on temporal datasets.
  • Dynamic Capability: The streaming approach also functions as a dynamic algorithm with a worst-case update time of $O(\log^2 n)$, making it viable for real-time edge processing in evolving networks.

Conclusion and Future Work

This work significantly advances the state-of-the-art for finding dense subgraphs in massive directed networks. By introducing fixed thresholds and freezing strategies, the authors have bridged the gap between theoretical complexity and practical scalability.

Several avenues for future research remain. There is currently an approximation gap between undirected graphs ($(1 + \epsilon)$) and directed graphs ($(2 + \epsilon)$); determining if directed graphs can reach the $(1 + \epsilon)$ mark without increasing round complexity is a key open question. Additionally, while $O(\log n)$ is a major step for deterministic streaming, the authors aim to investigate whether a constant-factor approximation is achievable in a single pass.

Summary updated

BibTeX
@inproceedings{mitrovic2025new,
  author = {Slobodan Mitrović and Theodore Pan and Mahdi Qaempanah and Mohammad Amin Raeisi},
  title = {{New Parallel and Streaming Algorithms for Directed Densest Subgraph}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=ZsySJqavh3},
}
Figure