An Algorithm for Streaming Differentially Private Data

Girish Kumar, Thomas Strohmer, Roman VershyninarXiv 2024 · DOI

Abstract

Differential privacy (DP) is the gold standard for privacy-preserving data analysis, yet its application to continuous data streams remains a significant challenge. This paper introduces PHDStream, a novel algorithm designed to generate synthetic multi-dimensional data from a continuous stream while maintaining rigorous DP guarantees. By integrating hierarchical spatial decomposition with specialized streaming counters, PHDStream provides high-utility location data in real-time, effectively managing the privacy budget over extended time horizons.

Introduction

Traditional differential privacy techniques are primarily designed for static datasets. However, real-world data—such as GPS coordinates for ride-sharing applications or real-time health data—arrives in a never-ending stream. Applying offline DP algorithms to these streams is problematic; naive re-execution quickly exhausts the "privacy budget," resulting in either a total loss of privacy or data so noisy it becomes useless. While existing streaming DP methods can handle simple one-dimensional statistics, there is a significant gap in processing complex, multi-dimensional spatial data in a streaming fashion.

Methodology: The PHDStream Framework

PHDStream (Private Hierarchical Decomposition of Stream) addresses the streaming challenge through several key innovations:

  1. Private Spatial Decomposition (PSD): The algorithm utilizes a tree-based structure (similar to a quadtree) to partition the spatial domain. It builds upon PrivTree, an efficient offline algorithm that determines spatial splits based on data density.
  2. Streaming on Trees: PHDStream converts raw data points into a stream of counts at different nodes within the tree structure.
  3. Consistent Extension: To prevent sensitivity explosion, the algorithm employs a novel linear operator. This ensures that counts across the tree remain consistent (e.g., a parent node's count equals the sum of its children) without allowing small input changes to propagate excessively up the tree, which would otherwise require prohibitive amounts of noise.
  4. Selective Counting Framework: This meta-framework manages a collection of DP counters, activating only those for leaf nodes of the current private subtree. This strategy preserves the privacy budget while allowing the tree structure to evolve as the data distribution changes.
  5. Turnstile Model Support: PHDStream supports both data addition and deletion, making it robust for dynamic scenarios such as tracking active infection cases over time.

Key Insights

A critical realization in the development of PHDStream is that strict consistency can be detrimental to privacy in tree structures. By adding noise only at leaf nodes and using the "consistent extension" operator for reconstruction, the algorithm successfully halts sensitivity propagation. Furthermore, researchers found that a brief "initialization time" ($t_0$) significantly improves long-term utility for datasets that grow slowly at first.

Experimental Evaluation

The algorithm was evaluated against several baselines, including a non-private version and naive DP implementations that treat each time step independently.

Datasets

The evaluation utilized a mix of real-world and synthetic spatial datasets:

  • Gowalla: Location check-ins from a social media application.
  • NY Taxi: Pickup and drop-off locations in New York City.
  • Gowalla with Deletion: A modified version simulating data removal (e.g., recovery from an illness).
  • Synthetic Geometries: Including concentric circles to test the algorithm's ability to adapt to dramatic shifts in data distribution.

Results

PHDStream demonstrated competitive utility, with relative errors on range queries remaining impressively close to the non-private baseline. It consistently outperformed naive DP approaches, which often suffered from massive errors due to budget fragmentation.

Relative error of range queries across Gowalla and NY Taxi datasets over time, showing PHDStream's stability and utility compared to DP baselines.

Experimental results indicate that "Simple" DP counters often outperform more complex "Block" counters in sparse spatial datasets due to lower overhead. Additionally, the "Online Selective Counting" framework proved highly effective at adapting tree structures to moving data distributions, maintaining lower error than fixed-structure baselines.

Conclusion

PHDStream represents a significant advancement in streaming multi-dimensional DP data. By combining spatial decomposition with a selective counting framework, it achieves high utility without compromising privacy over time. Future work may address memory challenges associated with extremely deep trees in higher dimensions and explore adaptive privacy budget allocation based on data volatility. The underlying framework also holds promise for general query answering over non-spatial multi-dimensional streams.

Summary updated

BibTeX
@misc{kumar2024algorithm,
  author = {Girish Kumar and Thomas Strohmer and Roman Vershynin},
  title = {{An Algorithm for Streaming Differentially Private Data}},
  year = {2024},
  eprint = {2401.14577},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.14577},
}
Figure