Differentially Private Clustering in Data Streams

Alessandro Epasto, Tamalika Mukherjee, Peilin Zhong · DOI · OpenReview

Abstract

Clustering is a fundamental task in unsupervised machine learning, yet performing it on streaming data while maintaining formal privacy guarantees presents significant technical challenges. This paper introduces the first differentially private (DP) algorithms for $k$-means and $k$-median clustering in the "continual release" streaming model. By employing a novel spatial partitioning strategy using concentric rings to manage additive error, the authors achieve constant-factor approximations using space that is sublinear in the stream length $T$.

Introduction

In the modern data landscape, information often arrives as a continuous stream rather than a static dataset. Analyzing these streams for patterns—specifically through clustering—is essential for applications ranging from network traffic monitoring to user behavior analysis. However, two primary hurdles exist: scale and privacy.

In a streaming setting, memory is a scarce resource. Algorithms must operate in sublinear space, ideally proportional to $\log T$, where $T$ is the number of points seen so far. Simultaneously, when data involves sensitive information (such as GPS coordinates), individual privacy must be protected. Differential Privacy (DP) provides a robust framework for this, but its application to streaming data is notoriously difficult. The most demanding version of this problem is the "continual release" setting, which requires the algorithm to output a valid clustering at every single timestep. Previous DP methods for clustering either required storing the entire dataset or suffered from "error explosion," where the noise added to maintain privacy accumulated so rapidly that it rendered the results useless as the stream grew.

Methodology

The authors propose a modular framework that transforms offline DP clustering algorithms into streaming ones. This transformation is built upon three technical pillars:

1. Bicriteria Approximation and Candidate Centers

The algorithm begins by identifying a set of "candidate centers"—a collection of points larger than $k$ that roughly represent the data distribution. This is achieved through a combination of quadtrees and DP heavy-hitter algorithms. This step provides a coarse "map" of high-density regions without violating individual privacy, serving as a foundation for more refined clustering.

2. The Ring Partitioning Strategy

The paper’s most significant innovation is the "ring" partitioning strategy. Standard streaming techniques, such as the Merge-and-Reduce framework, often fail under DP because the additive noise required scales with the diameter of the data. In a hierarchy of merges, this noise compounds. To mitigate this, the authors partition the space into concentric rings around the candidate centers. Because each ring has a bounded diameter, the DP noise added to each partition remains controlled. This allows the algorithm to "charge" the additive error to the actual clustering cost, preventing the noise from overwhelming the signal.

3. DP Merge-and-Reduce with Semicoresets

The authors adapt the classic Merge-and-Reduce framework by introducing semicoresets. A semicoreset is a compressed representation of the data that permits a small, controlled amount of additive error. The framework uses a DP algorithm as a "black box" at the base level to generate these semicoresets. These are then merged using non-private methods that remain privacy-preserving due to the post-processing property of Differential Privacy.

Theoretical Results

As a theoretical contribution, the paper provides mathematical proofs and complexity bounds for two primary algorithmic variants:

  • Constant-Factor Approximation: By utilizing an existing DP $k$-means algorithm as a base, the framework achieves an $O(1)$-multiplicative approximation. It maintains a space complexity of $\tilde{O}(k^{1.5} \cdot \text{poly}(d, \log T))$, making it the first algorithm to achieve sublinear space in $T$ for this specific problem.
  • $(1 + \gamma)$-Multiplicative Approximation: For applications requiring higher precision, the authors provide a $(1 + \gamma)$ approximation. However, this accuracy comes at the cost of space complexity that scales exponentially with the dimension $d$ (specifically $2^{O_\gamma(d)}$), making it most effective for low-dimensional datasets.

Both algorithms maintain privacy and utility even when outputting results at every timestep $t=1, \dots, T$, successfully addressing the continual release requirement.

Discussion and Limitations

While this work establishes a new frontier for private streaming clustering, several avenues for future research remain. The current framework is "insertion-only," meaning it cannot handle "sliding windows" or "fully dynamic" streams where data points are deleted or expire over time. Additionally, the "curse of dimensionality" affects the $(1 + \gamma)$ approximation, limiting its utility in high-dimensional feature spaces. Finally, while the authors provide robust upper bounds for space and error, the information-theoretic lower bounds for DP streaming clustering remain an open question in the field.

Summary updated

BibTeX
@inproceedings{epasto2023differentially,
  author = {Alessandro Epasto and Tamalika Mukherjee and Peilin Zhong},
  title = {{Differentially Private Clustering in Data Streams}},
  booktitle = {TAGML @ ICML},
  year = {2023},
  url = {https://openreview.net/forum?id=5yU7rYxm49},
}
Figure