Differentially Private Histogram, Predecessor, and Set Cardinality under Continual Observation

Monika Henzinger, A. R. Sricharan, Teresa Anna SteinerarXiv 2023

Abstract

Differential privacy is the de-facto privacy standard in data analysis. The classic model of differential privacy considers the data to be static. The dynamic setting, called differential privacy under continual observation, captures many applications more realistically. In this work we consider several natural dynamic data structure problems under continual observation, where we want to maintain information about a changing data set such that we can answer certain sets of queries at any given time while satisfying $\epsilon$-differential privacy. The problems we consider include (a) maintaining a histogram and various extensions of histogram queries such as quantile queries, (b) maintaining a predecessor search data structure of a dynamically changing set in a given ordered universe, and (c) maintaining the cardinality of a dynamically changing set. For (a) we give new error bounds parameterized in the maximum output of any query $c_{\max}$: our algorithm gives an upper bound of $O(d\log^2dc_{\max}+\log T)$ for computing histogram, the maximum and minimum column sum, quantiles on the column sums, and related queries. The bound holds for unknown $c_{\max}$ and $T$. For (b), we give a general reduction to orthogonal range counting. Further, we give an improvement for the case where only insertions are allowed. We get a data structure which for a given query, returns an interval that contains the predecessor, and at most $O(\log^2 u \sqrt{\log T})$ more elements, where $u$ is the size of the universe. The bound holds for unknown $T$. Lastly, for (c), we give a parameterized upper bound of $O(\min(d,\sqrt{K\log T}))$, where $K$ is an upper bound on the number of updates. We show a matching lower bound. Finally, we show how to extend the bound for (c) for unknown $K$ and $T$.

Introduction

While traditional Differential Privacy (DP) research focuses on static datasets, real-world data is often dynamic. Information such as website traffic, medical logs, or financial transactions arrives as a continuous stream. This scenario, known as continual observation, presents a unique challenge: every time an answer is released about a changing dataset, a small amount of privacy is leaked. Without careful management, the "privacy budget" is quickly exhausted, or the noise required to maintain privacy renders the data useless.

This paper addresses three fundamental dynamic data structure problems under the continual observation model:

  1. Histograms: Counting occurrences across $d$ different categories.
  2. Predecessor Search: Finding the largest element in a set less than or equal to a query value.
  3. Set Cardinality: Tracking the number of unique elements in a set under a user-level privacy model.

Methodology

The authors propose several algorithmic innovations to overcome the limitations of existing DP techniques:

  • Adaptive Sparse Vector Technique (SVT): For histogram maintenance, the authors adapt the SVT to partition data streams into intervals. Updates are only released when a "significant" change occurs. A key contribution is the proof that this method remains private even against an adaptive adversary who might choose future data points based on previous outputs.
  • Dyadic Interval Decomposition: To address the predecessor problem, the universe of possible values is represented as a tree of dyadic intervals. The algorithm uses a "top-down" approach, monitoring only the "heavy" parts of the tree (those containing enough elements) to conserve the privacy budget.
  • Doubling Strategy for Unknown Parameters: Many DP algorithms require prior knowledge of the total updates ($K$) or time steps ($T$). The authors implement a "doubling" strategy—starting with a small estimate and doubling it as needed—while carefully scaling the privacy parameter ($\epsilon$) to ensure the total privacy loss remains bounded.

Key Results

The paper establishes new state-of-the-art upper bounds for error, often achieving near-optimality as evidenced by their matching lower bounds.

A major breakthrough is the decoupling of the number of dimensions ($d$) from the time parameter ($T$) in histogram queries. Previous methods often featured an error term where $d$ was multiplied by $\log T$. This work reduces this to an additive relationship ($d + \log T$), which is significantly more efficient for high-dimensional data. Furthermore, the error for histograms is now parameterized by the maximum output of the query ($c_{max}$) rather than the total number of items seen ($n_{max}$), allowing for higher accuracy when query results are small.

Summary of theoretical error bounds compared to existing techniques.

For the predecessor search, the authors introduce a "relaxed" version of the problem. Since a perfectly private predecessor search is mathematically impossible (as the answer depends too heavily on a single element), the algorithm returns an interval containing the true predecessor and a small number of additional elements.

Conclusion and Future Work

This research significantly advances the theoretical foundations of dynamic data privacy. By parameterizing error bounds based on query outputs and update counts, the authors provide more practical and accurate tools for streaming data analysis.

However, some challenges remain. The predecessor search currently provides an approximate interval rather than a point estimate. Additionally, while the error bounds are theoretically optimal, the computational complexity per update requires further optimization for high-throughput production environments. Future work may also focus on closing the error gap between fully dynamic (insertions and deletions) and partially dynamic (insertions only) predecessor search.

Summary updated

BibTeX
@misc{henzinger2023differentially,
  author = {Monika Henzinger and A. R. Sricharan and Teresa Anna Steiner},
  title = {{Differentially Private Histogram, Predecessor, and Set Cardinality under Continual Observation}},
  year = {2023},
  eprint = {2306.10428},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.10428},
}
Figure