Differentially Private Fractional Frequency Moments Estimation with Polylogarithmic Space

Lun Wang, Iosif Pinelis, Dawn Song

This paper explores the intersection of data streaming and privacy, demonstrating that a classic algorithm for estimating frequency moments is inherently private. This finding offers a massive leap in memory efficiency for privacy-preserving data analysis.

Executive Summary

The authors prove that the well-known $F_p$ sketch algorithm is "differentially private as is" for fractional moments ($p \in (0, 1]$). This discovery allows for privacy-preserving data streaming using only polylogarithmic space—an exponential improvement over previous differentially private (DP) methods.

The Challenge of Private Data Streaming

In the world of big data, we often need to calculate "frequency moments" ($F_p$) of a stream (e.g., determining the number of distinct items or the power sum of item frequencies). These statistics are vital for network monitoring, database optimization, and anomaly detection.

However, two major challenges often collide in these scenarios:

  1. Memory Constraints: Streaming data is often too massive to store entirely. Algorithms must use "polylogarithmic space"—meaning they use a tiny amount of memory relative to the total data size.
  2. Privacy: The data being streamed (like IP addresses or medical IDs) is often sensitive. Differential Privacy (DP) is the gold standard for ensuring that the output of an algorithm doesn't leak information about any single individual in the dataset.

While DP algorithms exist for specific cases (like $p=0, 1, 2$), there was previously no efficient, low-space DP solution for fractional frequency moments ($p \in (0, 1]$), which are used in complex tasks like Shannon entropy estimation.

Methods: Re-evaluating the $F_p$ Sketch

The researchers didn't invent a new algorithm; instead, they analyzed an existing one: the $F_p$ sketch (introduced by Indyk in 2006).

The Core Technique: $p$-stable Distributions

The $F_p$ sketch works by multiplying the incoming data stream by a matrix of random numbers drawn from a $p$-stable distribution (like the Cauchy distribution for $p=1$). This "sketches" the high-dimensional data into a very small vector.

The Privacy Breakthrough

Standard DP proofs usually look at "additive sensitivity"—how much one record can change the sum. However, $F_p$ sketches have high additive sensitivity. The authors instead used pure multiplicative sensitivity. They proved that for $p \in (0, 1]$, the ratio of the probability distributions of the sketch for two neighboring datasets is bounded.

Pure Multiplicative Sensitivity vs. p

Essentially, they showed that the randomness already inherent in the $p$-stable projections provides enough "noise" to satisfy differential privacy without needing to add extra, utility-destroying noise.

Sub-sampling for Enhanced Privacy

To further improve the privacy-utility trade-off, they introduced a version of the sketch that uses sub-sampling. By only processing each item with a certain probability $q$, they can amplify the privacy guarantee, allowing for larger sketches (and thus higher accuracy) within the same privacy budget ($\epsilon$).

Key Insights and Results

The authors evaluated their findings using both synthetic data (Uniform and Binomial distributions) and real-world data (the TalkingData SDK dataset, containing over 30 million application usage events).

  • Intrinsic Privacy: The most profound insight is that the $F_p$ sketch is "DP as is." The mathematical properties of $p$-stable distributions naturally mask individual contributions.
  • Solving the Trilemma: The paper addresses the "trilemma" between efficiency (low space), accuracy, and privacy. By proving the $F_p$ sketch is private, they achieve all three simultaneously.
  • Exponential Space Savings: Compared to existing DP baselines that require linear space, this method uses polylogarithmic space.
  • High Accuracy: In empirical tests on real-world data, the algorithm maintained low multiplicative error. As the stream size increased, the error decreased, showing that the sketch effectively captures the distribution even under privacy constraints.
Multiplicative Error vs. Stream Size

Limitations and Future Work

  • The $p > 1$ Gap: The current proof only covers $p \in (0, 1]$. For $p \in (1, 2)$, the ratio of the density functions becomes non-monotonic and much more complex to bound. The authors suggest this as a primary area for future research.
  • Logarithmic Gap: While the space complexity is polylogarithmic, it is still a factor of $\log(m)$ larger than the absolute optimal non-private streaming algorithm.
  • Turnstile Model: While the paper focuses on the "cash register" model (where frequencies only increase), extending the full privacy analysis to the "turnstile" model (where items can be removed) remains a secondary challenge.

Summary updated

BibTeX
@inproceedings{wang2022differentially,
  author = {Lun Wang and Iosif Pinelis and Dawn Song},
  title = {{Differentially Private Fractional Frequency Moments Estimation with Polylogarithmic Space}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=7I8LPkcx8V},
}
Figure