arXiv:2608.27896cs.DSAug 2026

Manuscript Offprint

arXiv:2608.27896

Online Differentially Private Consistent Clustering

Edith Cohen, Vadym Doroshenko, Badih Ghazi, Pritish Kamath, Alexander Knop, Ravi Kumar, Ethan Leeman, Pasin Manurangsi, Adam Sealfon, Marika Swanberg

Abstract

We study differentially private (DP) k-means and k-median clustering in the online streaming setting. In this model, points arrive sequentially, and at each time step, we need to output a set of k centers that optimizes the clustering objective for all points seen so far. We give a generic reduction that transforms the (sensitive) input stream into a private stream, which is a semi-coreset of the input stream. This implies that any (non-private) online clustering algorithm, run as a post-processing step, can achieve good utility for the original clustering objective. Our algorithm matches or improves upon the approximation ratio, space usage, and running time of existing algorithms [Epasto et al., 2026, Dupré la Tour et al., 2024]. A key aspect of our reduction is that it inherits desirable properties of the underlying non-private clustering algorithm, such as consistency [Lattanzi and Vassilvitskii, 2017]—a property not satisfied by previous DP algorithms.

1 Introduction

Differential Privacy (DP) [Dwork et al., 2006a,b] has emerged as the mathematically rigorous, widely used gold standard for privacy-preserving large-scale data analysis. By injecting carefully calibrated statistical noise into computations, DP provides a formal, quantifiable guarantee that limits the information an adversary can infer about any single data point, making it a foundational tool for government agencies and technology companies alike (e.g., Abowd [2018], Erlingsson et al. [2014]).

Within the domain of large-scale data analysis, clustering remains one of the most basic unsupervised learning tasks. In this work, we focus on the (k,p)(k,p)-clustering objective: given a dataset X=(x1,…,xn)∈(Rd)nX = (x_1, \ldots, x_n) \in (\mathbb{R}^d)^n, the goal is to output a set CC of kk centers that minimizes costXp(C):=∑i∈[n]dist(xi,C)p\text{cost}_X^p(C) := \sum_{i \in [n]} \text{dist}(x_i, C)^p, where dist(xi,C)\text{dist}(x_i, C) denotes the (Euclidean) distance from xix_i to its closest point in CC. When p=1p = 1 (resp., 2), this corresponds to the kk-median (resp., kk-means) clustering, which are among the most well-studied objectives. Since finding the exact minimizer is NP-hard, clustering algorithms focus on providing a small multiplicative approximation ratio [Matousek, 2000, Kanungo et al., 2004, Har-Peled and Mazumdar, 2004, Awasthi et al., 2015, Lee et al., 2017, Cohen-Addad and Karthik C. S., 2019, Friggstad et al., 2019, Ahmadian et al., 2020]. We

*Google Research and Tel Aviv University. edith@cohenwang.com

†^{\dagger}Google. dvadym@google.com

‡^{\ddagger}Google Deepmind. badihghazi@gmail.com

§^{§}Google Research. pritish@alum.mit.edu, alexanderknop@google.com, ravi.k53@gmail.com, ethanleeman@google.com, pasin@google.com, adamsealfon@google.com, marikaswanberg@google.com assume throughout that p≥1p \geq 1 is a fixed constant and we will omit the dependency on p in notations and bounds for brevity.

Traditionally, clustering algorithms were designed for static datasets, where x1,…,xnx_{1}, \ldots, x_{n} are processed simultaneously. However, in modern applications, continuous data generation and collection are prevalent. Online clustering is a natural task that arises in analyzing dynamically changing data streams. In the streaming (a.k.a. continuous release) model, the data points x1,…,xnx_{1}, \ldots, x_{n} arrive sequentially and after the arrival of each xtx_{t}, the algorithm must return a set CtC_{t} of k centers for all the data points seen so far, i.e., x1,…,xtx_{1}, \ldots, x_{t}. Non-private algorithms with small approximation ratios and low space complexity are known in this model, e.g., [Guha et al., 2000, Charikar et al., 2003, Har-Peled and Mazumdar, 2004].

DP Clustering. Given the significance of clustering, a vast body of literature has explored DP clustering algorithms [Blum et al., 2005, Gupta et al., 2010, Balcan et al., 2017, Feldman et al., 2017, Nissim et al., 2016, Nissim and Stemmer, 2018, Huang and Liu, 2018, Stemmer, 2020, Ghazi et al., 2020, Chang et al., 2021, Ghazi et al., 2023, Dupré la Tour et al., 2024]. In particular, significant progress has been made in the static setting, where efficient DP clustering algorithms with constant approximation ratios and nearly-optimal additive errors are known [Ghazi et al., 2020, Dupré la Tour et al., 2024]. Unfortunately, the same cannot be said in the streaming model. Specifically, while Dupré la Tour et al. [2024] proposed a DP online (k,p)(k, p)-clustering algorithm with nearly optimal approximation ratios and additive errors, their algorithm is inefficient, requiring super-polynomial time and space. Meanwhile, Epasto et al. [2026] proposed an efficient algorithm—based on the merge-and-reduce framework for coresets [Agarwal et al., 2004, Feldman et al., 2020]—but with suboptimal additive errors in terms of the dimension d. Furthermore, neither algorithm is designed to preserve desirable properties (such as consistency) of their underlying non-private counterpart, as explained next.

Consistency in Online Clustering. While online clustering algorithms must adapt to changing data, this can cause a volatile output sequence. For example, if an algorithm blindly recalculates cluster centers based on x1,…,xtx_1, \ldots, x_t for every t∈[n]t \in [n], the cluster centers can vary wildly even across consecutive time steps. The need for a temporally stable output sequence motivated the definition of consistency [Lattanzi and Vassilvitskii, 2017]: An output sequence (C1,…,Cn)(C_1, \ldots, C_n) is said to be mm-consistent if ∑t∈[n]∣Ct∖Ct−1∣≤m\sum_{t \in [n]} |C_t \setminus C_{t-1}| \leq m where we use the convention C0=∅C_0 = \emptyset, i.e., the total number of centers removed/added throughout the entire sequence is at most m=m(n)m = m(n). Consistency ensures that the clusters do not change unpredictably at every time step. Maintaining consistency is preferred because temporal instability can be undesirable in many real-world scenarios.

Since the notion was formalized, many consistent clustering algorithms have been proposed in the literature [Lattanzi and Vassilvitskii, 2017, Guo et al., 2021, Fichtenberger et al., 2021, Chan et al., 2025]. In particular, Fichtenberger et al. [2021] devised a non-private algorithm for clustering in arbitrary metric space that achieves O(1)O(1)-approximation and O~(k)\tilde{O}(k)-consistency (which is known to be nearly optimal [Lattanzi and Vassilvitskii, 2017]). Unfortunately, as mentioned earlier, neither of the previous DP online clustering algorithms [Dupré la Tour et al., 2024, Epasto et al., 2026] provides non-trivial guarantees on the consistency of their output sequence.