Differentially Private Stream Processing at Scale

Bing Zhang, Vadym Doroshenko, Peter Kairouz, Thomas Steinke, Abhradeep Thakurta, Ziyin Ma, Eidan Cohen, Himani Apte, Jodi Spacek

TL;DR

This paper introduces DP-SQLP, the first system for differentially private (DP) stream aggregation processing at scale. It tackles the challenge of providing robust privacy guarantees for continuous data streams by developing novel algorithms for private key selection and hierarchical perturbation, enabling scalable DP analytics for applications like Google Shopping and Google Trends.

What Problem Does This Paper Address?

Analyzing streaming data often involves aggregating information from numerous users, raising significant privacy concerns. Traditional differential privacy (DP) techniques, designed for static datasets, struggle with the continuous, unbounded nature of data streams. Key challenges include:

  • Unknown Key Space: New keys can emerge at any time, making it difficult to pre-define what data needs privacy protection.
  • Synchronous Execution: Stream processing systems must react to incoming data in real-time, complicating DP mechanisms that might require batching or delayed processing.
  • Scalability: Handling billions of distinct keys and millions of updates per second requires efficient algorithms and system design.
  • User-Level Privacy: Protecting individual users' entire contribution history, not just single actions, is crucial but introduces algorithmic complexity and bias-variance trade-offs.
  • Continual Release: Releasing statistics at frequent intervals (triggering times) can rapidly amplify privacy costs due to composition, necessitating careful noise management.

Existing DP streaming works often focus on algorithmic design without addressing the system-level challenges of large-scale industrial deployments. This paper aims to bridge that gap by building a practical, scalable DP stream processing system.

Methods

The core of DP-SQLP lies in its novel algorithmic and system design, built upon a Spark-like streaming framework, Spanner database, and F1 query engine. Key techniques include:

  • User Contribution Bounding: To achieve user-level DP, the system bounds the maximum influence of any single user. This is done by limiting the number of records a user can contribute to a maximum value C and clamping the aggregation column value to Lm, defining a per-user sensitivity L1 = C * Lm.
  • Private Key Selection (Algorithm 1): This novel algorithm addresses the unknown key space and privacy leakage concerns. It combines a binary tree aggregation protocol with a thresholding scheme that only operates on keys with at least μ user contributions. This prevents releasing information about keys with very few contributors, which could easily reveal individual user data.
  • Preemptive Execution (Algorithm 3): To avoid scanning all keys at every triggering time (which is computationally prohibitive for large key spaces), this algorithm predicts when a key might be released in the future, even if it has no new records in the current micro-batch. This significantly reduces I/O and memory costs.
  • Hierarchical Perturbation (Algorithm 2): This component applies DP noise to the aggregated statistics for selected keys. It uses DP-Trees to maintain privacy over time, leveraging the "bottom-up Honaker" variance reduction technique for improved utility.
  • Streaming System Architecture: DP-SQLP is designed to integrate with existing streaming frameworks, managing state efficiently through a persistent Spanner database. It handles micro-batches and uses a user contribution bounding server and a data perturbation server for parallel processing.

Datasets

  • Synthetic Data: Generated to mimic real-world long-tailed distributions, with 10 million unique users and 10⁶ distinct keys. This dataset was used to evaluate data utility and scalability.
  • Reddit Data (Webis-tldr-17-corpus): A real-world dataset of 3.8 million posts from 1.4 million users, used to count user participation per subreddit.

The paper does not introduce new benchmarks but evaluates against established baselines for data utility.

Key Insights and Ideas

  • Scalable DP for Streaming is Achievable: The paper demonstrates that it's possible to build a DP stream processing system that can handle industrial-scale workloads (billions of keys, millions of updates/sec) without significant performance degradation.
  • User-Level Privacy is Critical and Challenging: The need for user-level DP in streaming applications is highlighted, and the paper shows how to address it through contribution bounding and careful algorithmic design, balancing bias and variance.
  • Predictive Key Selection is Key to Performance: The "empty key release prediction" algorithm is a crucial innovation for scalability, allowing the system to efficiently manage a vast, dynamic key space by predicting future releases rather than constantly re-evaluating all keys.
  • Utility Improvements Over One-Shot DP: DP-SQLP significantly outperforms naive approaches that repeatedly apply one-shot DP queries or process micro-batches independently, especially as the number of micro-batches increases. This is attributed to better privacy budget management and stateful processing.

Key Results

  • Data Utility: DP-SQLP achieved significant improvements in data utility compared to baselines. For synthetic data with 1000 micro-batches, it retained 22,280 keys compared to 0 for baselines, and showed substantial reductions in worst-case error (l1 and l2 norms). Similar improvements were observed for Reddit data.
  • Scalability: The system demonstrated its ability to handle large key spaces (up to 1 billion keys) and high throughput (20GB/s for Google Shopping) with low end-to-end latency (20 minutes for Google Shopping, 15 minutes for Google Trends).
  • Performance: Micro-batch execution time grew sub-linearly with micro-batch size, and horizontal scalability was evident with increased workers reducing latency.

Limitations and Future Work

  • Limitations:
    • The current implementation uses DP-Tree aggregation, which the authors note is sub-optimal compared to more advanced mechanisms like matrix factorization.
  • The system provides a centralized DP guarantee; exploring stronger privacy models like pan-privacy is a future direction.
  • User contribution bounding is currently global. Per-key contribution bounding is more desirable for higher fidelity but is more complex in an input-driven stream setting.
  • Future Work:
    • Incorporate more advanced DP aggregation mechanisms (e.g., matrix factorization) into the streaming pipeline.
  • Investigate DP streaming system designs that support stronger privacy guarantees like pan-privacy.
  • Explore approaches for per-key contribution bounding to further improve data utility.

Summary updated

BibTeX
@article{zhang2024differentially,
  author = {Bing Zhang and Vadym Doroshenko and Peter Kairouz and Thomas Steinke and Abhradeep Thakurta and Ziyin Ma and Eidan Cohen and Himani Apte and Jodi Spacek},
  title = {{Differentially Private Stream Processing at Scale}},
  journal = {Proc. VLDB Endow.},
  year = {2024},
  doi = {10.14778/3685800.3685833},
}
Figure