Abstract
This technical note addresses the challenge of data sanitization in a streaming context, where data points arrive sequentially and memory is limited. We present a generic reduction that transforms any offline differentially private (DP) data sanitizer into a streaming one. By partitioning the stream into disjoint chunks and applying offline sanitization locally, we achieve a streaming output that preserves statistical utility while maintaining privacy. This approach effectively removes the dependency of space complexity on the total stream length and significantly improves the state-of-the-art for DP quantile estimation.
Introduction
Data sanitization—the process of generating a synthetic version of a sensitive dataset that preserves statistical properties—is a cornerstone of privacy-preserving data analysis. While well-established for offline datasets, sanitization becomes significantly more complex in streaming environments. In these settings, algorithms must operate with sublinear memory relative to the data size, and previous solutions often resulted in complex architectures with memory requirements tied to the total stream length ($m$) or the domain size ($|X|$).
Kaplan and Stemmer propose a bridge between these two paradigms. Their work demonstrates that instead of designing specialized streaming algorithms from scratch, one can leverage existing offline tools through a modular reduction. This "meta-algorithm" simplifies the construction of private streaming tools and provides sharper complexity bounds for fundamental problems like quantile estimation.
The Generic Reduction
The core contribution of this work is a modular framework that treats an offline DP sanitizer $\mathcal{A}$ as a black box. The process follows three primary steps:
- Chunking: The incoming data stream is divided into disjoint chunks, each of size $n$.
- Local Sanitization: The offline DP sanitizer $\mathcal{A}$ is applied to each individual chunk to produce a corresponding synthetic chunk.
- Streaming Output: These synthetic chunks are released sequentially as a new, "sanitized" stream.
Because the chunks are disjoint, the privacy loss is managed through standard DP composition theorems. The utility of the aggregated stream is established using a union bound (or Chernoff bounds for longer streams), ensuring that if the offline sanitizer is accurate on small batches, the resulting synthetic stream remains accurate for the dataset as a whole.
Key Insights
The Power of Modularity
The reduction proves that streaming sanitization does not necessarily require a specialized streaming architecture. By processing data in batches, researchers can repurpose high-performance offline sanitizers for real-time applications. This modularity allows for "continual monitoring," where any post-processing performed on the sanitized output is automatically private.
Breaking the $\log(m)$ Barrier
Historically, streaming algorithms for DP quantiles required space that grew with the logarithm of the stream length ($m$). This reduction demonstrates that space complexity can be made independent of $m$, depending instead on the memory required to process a single chunk. This is a significant theoretical shift, suggesting that the duration of the stream does not inherently limit the efficiency of the privacy mechanism.
Privacy Amplification
For exceptionally long streams, the authors suggest that privacy can be further enhanced via subsampling. By only processing a random subset of the incoming stream, one can achieve tighter privacy guarantees or improved utility for a fixed privacy budget.
Application: DP Quantile Estimation
The authors apply their reduction to the problem of DP quantile estimation—identifying the value below which a specific percentage of data falls. Compared to previous state-of-the-art methods (e.g., Alabi et al., 2021), this method yields several improvements:
- Reduced Space Complexity: The achieved space complexity is $\tilde{O}\left(\frac{1}{\alpha\epsilon} \log\left(\frac{1}{\beta} ight) \log\left(\frac{1}{\delta} ight) \log^* |X|^{1.5}\right)$.
- Domain Independence: The dependency on the domain size $|X|$ is reduced from $\log |X|$ to the iterated logarithm $\log^* |X|$, making the algorithm highly robust to large data domains.
- Algorithmic Flexibility: The method allows for the use of any non-private streaming algorithm for final analysis, provided it is executed on the sanitized synthetic output.
Limitations and Future Directions
While the reduction is powerful, it relies on the stream being long enough to be partitioned into chunks that meet the accuracy requirements of the offline sanitizer. For very sparse or short streams, the "chunking" method may introduce too much noise. Additionally, while the asymptotic improvements are clear, the specific constant factors involved in the reduction remain an area for future empirical study. Expanding this framework beyond threshold functions to more complex predicate classes also remains a promising avenue for future research.
Summary updated