Privately detecting changes in unknown distributions

Rachel Cummings, Sara Krehbiel, Yuliia Lut, Wanrong Zhang

Overview

This paper introduces the first differentially private algorithms for "nonparametric" change-point detection—identifying shifts in data streams without knowing the underlying distributions beforehand. By leveraging the low sensitivity of rank-based statistics like the Mann-Whitney test, the authors achieve high accuracy in both offline and streaming settings while providing formal privacy guarantees for sensitive data.

The Challenge: Privacy vs. Unknowns

Change-point detection is the bread and butter of anomaly detection: it’s how we spot a sudden disease outbreak in hospital records or a security breach in IoT sensor data. However, most existing tools face two major hurdles:

  1. The Knowledge Gap: Traditional algorithms are "parametric," meaning they assume you already know exactly what the data looked like before and after the change. In the real world, we rarely have this luxury.
  2. The Privacy Paradox: The data we want to monitor is often highly sensitive (e.g., health records, financial transactions). Standard "nonparametric" methods (which don't require prior knowledge) are usually very sensitive to individual data points. In the world of Differential Privacy (DP), high sensitivity means you have to add massive amounts of noise to protect individuals, which often destroys the utility of the analysis.

The authors tackle the challenge of creating a change-point detector that is both distribution-agnostic and privacy-preserving.

Methods: The Power of Rank-Based Statistics

The researchers' "secret sauce" is the use of rank-based statistics, specifically the Mann-Whitney test. Instead of looking at raw values (which can vary wildly and increase sensitivity), they look at the relative order of data points.

The Mann-Whitney statistic V(k) plotted over time for different change-points.
  • The Statistic ($V(k)$): This measures the fraction of pairs of data points where a point before time $k$ is greater than a point after time $k$. Because this is a proportion, changing a single data point has a very small impact on the total—giving it a low sensitivity of $O(1/n)$.
  • Offline Algorithm (PNCPD): For a fixed dataset, the algorithm uses the REPORTMAX framework. It calculates the Mann-Whitney statistic for every possible change-point, adds a small amount of Laplace noise to each, and returns the index with the highest noisy value.
  • Online Algorithm (ONLINEPNCPD): For streaming data, they use the ABOVETHRESHOLD framework. It monitors a sliding window of data and "fires" only when the noisy statistic exceeds a certain threshold, signaling a likely change.
  • Drift Detection: They extend these tools to "drift" settings (where data changes smoothly over time, like a gradual price increase) by analyzing the differences between consecutive samples to turn the trend into a detectable shift in mean.

Datasets and Empirical Results

The authors validated their algorithms using both synthetic Gaussian streams and real-world data.

Real-world stock data trajectory and the corresponding accuracy of the PNCPD algorithm.

For the real-world evaluation, they used a dataset of stock prices collected every second over five hours, specifically focusing on a 200-second window containing a visible price drop. On this stock price dataset, the algorithm correctly identified the change-point with minimal error, even when the privacy parameter $\epsilon$ was set to a very strict value (0.1).

Key Insights

  • Rank is Robust for Privacy: The biggest takeaway is that rank-based statistics are naturally "privacy-friendly." Because they bound the influence of any single outlier, you can achieve strong privacy with much less noise than you'd need for mean-based or kernel-based methods.
  • Beating the Non-Private Baseline: Surprisingly, the authors improved the theoretical accuracy bounds for the non-private version of this problem. Previous work suggested an additive error of $O(n^{2/3})$, but this paper proves it can actually be $O(1)$—meaning the error doesn't necessarily grow with the size of the database.
  • Constant Offline Error & Logarithmic Online Error: In the offline setting, the private algorithm achieves an additive error independent of the database size $n$. For the streaming setting, the error grows only as $O(\log n)$, allowing for quick detection even in long-running streams.

Limitations and Future Work

While groundbreaking, the approach has a few limitations:

  • Threshold Tuning: The online algorithm requires setting a threshold ($T$). While the paper provides theoretical bounds, in practice, an analyst still needs a rough estimate of how large a change they are looking for to avoid false alarms.
  • Non-Linear Trends: The paper demonstrates a reduction for linear drift, but extending this to more complex, non-linear "smooth" changes remains an open area for further development.
  • Computational Overhead: Calculating the Mann-Whitney statistic for every point in a sliding window can be computationally expensive for extremely high-frequency streams, suggesting a need for more optimized implementations.

Summary updated

BibTeX
@inproceedings{cummings2020privately,
  author = {Rachel Cummings and Sara Krehbiel and Yuliia Lut and Wanrong Zhang},
  title = {{Privately detecting changes in unknown distributions}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
  url = {https://openreview.net/forum?id=92couHhH28},
}
Figure