Differentially Private Change-Point Detection

Rachel Cummings, Sara Krehbiel, Yajun Mei, Rui Tuo, Wanrong Zhang

Detecting a shift in data distribution is a critical task across many domains, but doing so without compromising the privacy of the individuals who make up that data presents a significant challenge. This paper addresses this intersection of statistics and security, presenting the first differentially private algorithms for both offline and online change-point detection. By integrating standard privacy mechanisms with log-likelihood ratio tests, the authors provide rigorous finite-sample accuracy guarantees and demonstrate that privacy can be maintained with a quantifiable cost to detection precision.

The Problem: Privacy in Data Streams

Change-point detection is the task of identifying the exact moment ($k^*$) a data stream switches from one distribution ($P_0$) to another ($P_1$). This is vital for applications like biosurveillance (detecting disease outbreaks), IoT security (detecting home intrusions), and finance.

However, these data streams often contain sensitive personal information. Standard statistical methods for finding $k^*$ are highly sensitive to individual data points; a single outlier or a specific person's record could significantly shift the estimated change-point. Differential privacy (DP) offers a mathematical framework to ensure that the output of an algorithm doesn't reveal whether any specific individual's data was included in the dataset. Prior to this work, there was a notable lack of private algorithms that provided "finite-sample" guarantees—meaning they work reliably for a fixed, limited amount of data rather than just in the theoretical limit of infinite data.

Methods: Private Detection Algorithms

The authors propose two primary algorithms to tackle this problem in different settings:

1. OFFLINEPCPD (Offline Private Change-Point Detector)

This algorithm is used when the entire dataset is available at once. It calculates the log-likelihood ratio for every possible change-point $k$. To make it private, it uses the REPORTMAX mechanism: it adds Laplace noise to each calculated ratio and then returns the index $k$ that produces the maximum noisy value.

Algorithm 1: Offline Private Change-Point Detector (OFFLINEPCPD)

2. ONLINEPCPD (Online Private Change-Point Detector)

Designed for streaming data, this algorithm uses the ABOVETHRESH (or Sparse Vector) mechanism to monitor the stream continuously. Once a noisy log-likelihood ratio exceeds a pre-set threshold, the algorithm "flags" a potential change and then runs the offline algorithm on a local window of data to pinpoint the exact change-time.

A key technical contribution of these methods is how they handle sensitivity. DP requires knowing how much a single data point can change the output. For some distributions (like Bernoulli), this is easy to bound. For others (like Gaussians), a single extreme value could theoretically have infinite influence. The authors provide solutions for both "bounded sensitivity" and a relaxed version for more complex distributions.

Key Insights and Theoretical Guarantees

  • Finite-Sample Guarantees: Unlike traditional statistics that often rely on asymptotic results (what happens as $n$ goes to infinity), this paper provides the first accuracy bounds for the standard Maximum Likelihood Estimator (MLE) in a finite-sample setting, directly comparing it to the private alternative.
Theoretical bounds comparing MLE and OFFLINEPCPD
  • The Cost of Privacy: The authors mathematically quantify the "privacy tax." They show that the accuracy loss of the private estimator compared to the non-private one is roughly proportional to $D_{KL}(P_0||P_1)/\epsilon$. In plain English: if the two distributions are very similar, you need more data or less privacy (a higher $\epsilon$) to find the change-point accurately.
  • Robustness to Misspecification: Surprisingly, the algorithms perform well even if the hypothesized distributions ($P_0, P_1$) aren't perfectly accurate. As long as the direction of the change is correct, the private detector remains effective.
  • Constant Error: They find that the additive error of the MLE is constant with respect to the size of the database. This means that as your dataset grows, the "mistake" in the change-point estimate doesn't necessarily grow with it.

Evaluation and Results

The paper evaluates the algorithms using Monte Carlo simulations, allowing precise control over the "ground truth" change-point and the distance between distributions. Tests included Bernoulli distributions (shifts in success probability) and Gaussian distributions (shifts in the mean), as well as misspecified scenarios.

Simulations confirmed that as the privacy parameter $\epsilon$ increases (less privacy), the error in the estimated change-point decreases. The private algorithms proved highly effective at "Large Change" scenarios (e.g., a mean shift of 1.0) even under strong privacy constraints ($\epsilon = 0.1$). Furthermore, the online algorithm successfully identified changes shortly after they occurred, inheriting the accuracy of the offline method once the initial threshold was triggered.

Limitations and Future Work

While groundbreaking, the approach has limitations. The algorithms require the user to have hypothesized distributions ($P_0$ and $P_1$) in mind, meaning the method isn't fully "distribution-free." Additionally, the online algorithm's performance depends heavily on choosing a good threshold $T$, which requires a rough prior estimate of when the change might occur.

Finally, the current work assumes data points are independent and identically distributed (i.i.d.) within their respective regimes. Future work could explore more complex data types, such as time-series data with internal correlations, expanding the utility of private change-point detection to even broader real-world applications.

Summary updated

BibTeX
@inproceedings{cummings2018differentially,
  author = {Rachel Cummings and Sara Krehbiel and Yajun Mei and Rui Tuo and Wanrong Zhang},
  title = {{Differentially Private Change-Point Detection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=H1lWVP-ubr},
}
Figure