TL;DR
This paper introduces the first efficient, differentially private (DP) online streaming algorithm for $k$-means and $k$-median clustering that guarantees consistency (stable cluster centers over time). By transforming a sensitive data stream into a private "semi-coreset," the authors enable any standard non-private online clustering algorithm to be used securely as a post-processing step.
What Problem Does This Paper Address?
In many modern applications, data arrives continuously as a stream, and we need to maintain an up-to-date clustering (like $k$-means or $k$-median) in real time. When this data contains sensitive user information, applying Differential Privacy (DP) is essential to ensure that individual data points cannot be reverse-engineered from the cluster centers.
However, doing DP clustering on a live stream introduces two major challenges:
- Efficiency vs. Accuracy: Prior DP streaming algorithms were either highly inefficient (requiring super-polynomial time and space) or suffered from massive errors that scaled poorly with the dimensionality of the data.
- Consistency: If an algorithm completely recalculates cluster centers at every time step to accommodate new data, the centers can change wildly. This temporal instability is highly undesirable in real-world systems.
While non-private algorithms can achieve both efficiency and consistency, previous private streaming algorithms failed to provide non-trivial consistency guarantees.
Methods
The authors solve this by designing a private version of Meyerson’s Sketch, a classic non-private streaming algorithm that samples incoming points based on their distance to existing cluster centers.
Directly outputting raw sampled points violates privacy, so the authors introduce a generic reduction framework with two key components:
- DP Dense Balls: Instead of releasing raw points, the algorithm feeds the sampled points into a DP subroutine that only outputs "representative points" from dense regions of the data space.
- Continual Counting: Running a DP algorithm at every single time step would rapidly deplete the privacy budget, leading to massive noise injection. To avoid this, the authors use a DP continual counting mechanism to track the sample size and "lazily" trigger the DP Dense Ball algorithm only when the sample size has grown significantly.
The output of this reduction is a private semi-coreset—a heavily compressed, sanitized version of the input stream that preserves the underlying geometric structure. Because DP is immune to post-processing, any non-private online clustering algorithm can be run on top of this semi-coreset. To achieve stable clusters, the authors post-process the stream using a known non-private consistent clustering algorithm (Fichtenberger et al., 2021).
Datasets
Not discussed in the paper. This work is entirely theoretical and focuses on algorithmic design, complexity analysis, and mathematical proofs; no empirical evaluations or datasets were used.
Key Insights and Ideas
- Privacy via Coresets: Instead of modifying complex clustering algorithms to be private, the authors realized it is much cleaner to privatize the data stream itself into a coreset. Once the data is safe, the actual clustering can be handled by any state-of-the-art non-private algorithm.
- Flexibility of Meyerson's Sketch: A key "aha moment" was realizing that Meyerson's sketch analysis is robust enough to tolerate proxy points. It doesn't need the exact raw samples; it just needs some representative point nearby, which perfectly matches what DP dense ball algorithms provide.
- The "Lazy Update" Trick: Using a DP counter to hide exactly when the sample set grows allows the algorithm to safely batch updates, preventing the polynomial error accumulation that usually plagues continuous DP releases.
Key Results
The proposed algorithm achieves a constant approximation ratio with a nearly optimal additive error of $k^{2.5}\sqrt{d}$ (ignoring polylogarithmic factors) under approximate-DP. Crucially, it is the first DP streaming algorithm to achieve a consistency bound of $k \cdot \text{polylog}(nd)$, matching known non-private lower bounds up to polylog factors.
Furthermore, for low-dimensional data, the algorithm runs in near-linear time ($ndk^2 + (dk)^{O(1)}$) and uses sublinear space.
A detailed comparison with prior state-of-the-art methods is shown in the table below:
Limitations and Future Work
- Theoretical Subroutines: While the high-level framework is practical, the underlying DP dense ball algorithms used as subroutines are currently purely theoretical and lack efficient, real-world implementations.
- Dependency on $k$: The additive error scales with $k^{2.5}$. The authors note that this sub-optimality stems from DP composition across multiple runs and suggest that developing an inherently "online" DP dense ball algorithm could improve this dependency.
- Oblivious Streams: The utility analysis assumes an oblivious data stream (where the sequence of points is fixed in advance). Extending these utility guarantees to adversarial streaming models—where future data points might depend on past clustering outputs—remains an open challenge.
- Semi-Coreset vs. True Coreset: The algorithm yields a semi-coreset (which allows an additive error term in the approximation). Whether a true online DP coreset (with zero additive approximation error) can be constructed remains unknown.
Summary updated