Towards Distributed 2-Approximation Steiner Minimal Trees in Billion-edge Graphs

Tahsin Reza, Geoffrey Sanders, Roger Pearce · DOI

Introduction

The Steiner Minimal Tree (SMT) problem is a fundamental challenge in combinatorial optimization and network science. Given a graph and a subset of "seed" vertices, the goal is to find a minimum-weight tree that connects all seeds. While finding the optimal SMT is NP-hard, 2-approximation algorithms—which guarantee a solution no more than twice the optimal weight—offer a practical alternative. However, existing 2-approximation methods typically fail to scale to the massive graphs encountered in modern data science, which can contain hundreds of billions of edges.

Researchers from Lawrence Livermore National Laboratory (LLNL) have developed a distributed algorithm designed to bridge this gap. Their solution scales to graphs with over 128 billion edges, producing high-quality connections for thousands of points in under a minute.

The Bottleneck of Scale

Traditional 2-approximation algorithms often rely on calculating the shortest paths between all pairs of seeds. For a set of $k$ seeds, this requires $O(k^2)$ path computations. In a graph with billions of edges and thousands of seeds, this approach becomes computationally intractable and memory-intensive. To address this, the researchers developed a distributed implementation of Mehlhorn’s algorithm, which avoids the all-pairs shortest path bottleneck by partitioning the problem.

Distributed Mehlhorn’s Algorithm

The proposed approach leverages a multi-stage pipeline to reduce the global problem into a manageable sub-problem:

  1. Parallel Voronoi Cell Computation: The entire graph is partitioned into Voronoi cells, where every node is assigned to its nearest seed vertex. This is achieved using a distributed, asynchronous version of the Bellman-Ford algorithm.
  2. Distance Graph Construction: The algorithm identifies "cross-cell edges"—edges that connect two different Voronoi cells. These are used to build a much smaller "distance graph" where the nodes represent the original seeds.
  3. Sequential Minimum Spanning Tree (MST): Because the distance graph is orders of magnitude smaller than the original (e.g., 50 million edges compared to 128 billion), the algorithm can efficiently compute an MST of this smaller graph using a standard sequential algorithm (such as Prim's) on a single node.
  4. Path Identification and Pruning: Finally, the edges of the MST are mapped back to the original graph's paths, and any unnecessary branches are pruned to finalize the Steiner Tree.

Implementation and Optimization

The system was implemented using HavoqGT, an MPI-based graph framework. A key technical innovation in this work is the use of message prioritization. In distributed pathfinding, "shorter" distance updates are more critical than "longer" ones. By utilizing a priority queue for asynchronous updates rather than a standard first-in-first-out (FIFO) queue, the researchers achieved up to a 13x speedup in runtime and a 22x reduction in network traffic.

Experimental Evaluation

The authors evaluated their system using eight massive real-world datasets, including:

  • Web Graphs: WDC12 (257 billion edges), ClueWeb12 (85B edges), and UKWeb07.
  • Social Networks: Friendster (3.6B edges) and LiveJournal.
  • Citation/Co-author Graphs: Patent, MiCo, and CiteSeer.

Key Results

  • Extreme Scalability: The system successfully processed the 128-billion-edge WDC12 graph using 512 compute nodes (8,000 processes).
  • Speed and Efficiency: The algorithm can identify a Steiner tree for 10,000 seed vertices in under 60 seconds. It demonstrated "strong scaling" efficiency of up to 90%, meaning that doubling the hardware nearly halved the runtime.
  • Solution Quality: While the theoretical bound is 2x the optimal, empirical tests against an exact solver (SCIP-Jack) showed that the results were significantly better, averaging only 1.0527x the optimal (approximately 5.3% error).

Limitations and Future Work

Despite its success, the approach has limitations. The sequential MST step could become a bottleneck if a user requests a Steiner tree for millions of seeds. Additionally, the MPI collective operations used to synchronize the distance graph can cause memory spikes, occasionally requiring more compute nodes simply to provide sufficient RAM. Future research will focus on exploring tighter approximation bounds and further optimizing the memory footprint of the distance graph construction.

Reference: Reza, T., Sanders, G., & Pearce, R. (2022). Towards Distributed 2-Approximation Steiner Minimal Trees in Billion-edge Graphs. arXiv:2205.14503v1 [cs.DC].

Summary updated

BibTeX
@inproceedings{reza2022towards,
  author = {Tahsin Reza and Geoffrey Sanders and Roger Pearce},
  title = {{Towards Distributed 2-Approximation Steiner Minimal Trees in Billion-edge Graphs}},
  booktitle = {IPDPS},
  year = {2022},
  doi = {10.1109/ipdps53621.2022.00060},
}
Figure