Faster Private Minimum Spanning Trees

Rasmus Pagh, Lukas RetschmeierarXiv 2024 · DOI

Introduction

The Minimum Spanning Tree (MST) is a fundamental building block in computer science, essential for designing efficient networks and performing machine learning tasks like clustering. However, when edge weights represent sensitive data—such as patient information or proprietary traffic flows—releasing the exact MST can compromise privacy.

To mitigate this, researchers use Differential Privacy (DP). In the context of graph analysis, the $\ell_\infty$ neighboring relationship is particularly challenging: a change in a single individual's data can potentially affect every edge weight in the graph. Historically, practitioners faced a stark trade-off: use fast $O(n^2)$ "post-processing" algorithms that suffer from high noise, or use accurate "in-place" algorithms that are computationally prohibitive at $O(n^3)$ for dense graphs.

The Fast-PAMST Algorithm

Researchers have introduced Fast-PAMST, a new algorithm that achieves the high accuracy of in-place methods while matching the $O(n^2)$ speed of non-private algorithms for dense graphs. The algorithm optimizes the classic Prim-Jarník approach by using the Report-Noisy-Max (RNM) mechanism to select edges privately.

The core innovation lies in several clever optimizations that avoid the need to inspect every edge at every step:

  • Weight Discretization: By rounding edge weights to multiples of the sensitivity parameter, the algorithm groups edges, allowing for batch processing.
  • Grouped Sampling: Leveraging the memoryless property of exponential noise, the algorithm can mathematically determine the "winning" edge within a group without sampling every individual edge.
  • Sublinear Simulation: The algorithm identifies and "clips" statistically irrelevant edges (those with weights far from the minimum), treating them as a single bulk group.
  • Specialized Data Structure: To manage these operations efficiently, the authors implemented a 4-layer "sqrt-decomposition" priority queue.
The sqrt-decomposition data structure used to achieve sublinear-time sampling and constant-time updates.

Key Results and Performance

Fast-PAMST is theoretically optimal, matching known lower bounds for error in the $\ell_\infty$ setting. In practical evaluations on complete graphs ($K_n$) with up to 5,000 vertices, the algorithm demonstrated significant improvements over previous state-of-the-art methods.

For a graph with 400 vertices, Fast-PAMST is approximately 100x faster than the original PAMST algorithm. Crucially, it maintains the same low error rate as slower in-place methods, whereas post-processing approaches often result in trees that are nearly random as the graph size increases.

Comparison of MST algorithms under different privacy and neighborhood settings, highlighting Fast-PAMST's improved running time and optimal error.

Conclusion

Fast-PAMST effectively eliminates the computational bottleneck that previously hindered accurate private graph analysis. While its advantages are most pronounced for dense graphs, its ability to scale linearly with the number of edges makes it a practical choice for real-world engineering applications. Future work may explore its performance in specific machine learning pipelines, such as the private construction of Chow-Liu trees for synthetic data generation.

Summary updated

BibTeX
@misc{pagh2024faster,
  author = {Rasmus Pagh and Lukas Retschmeier},
  title = {{Faster Private Minimum Spanning Trees}},
  year = {2024},
  eprint = {2408.06997},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.06997},
}
Figure