Skip to content

FedDP-KMeans: A Differentially Private Federated k-means Clustering Algorithm Using Server-Side DataDifferentially Private Federated $k$-Means Clustering with Server-Side Data

arXiv· arXiv:2506.05408· ICML 2025· Jonathan Scott, Christoph H. Lampert, David SaulpicInstitute of Science and Technology Austria (ISTA); CNRS & Université Paris CitéIndexed by this site · 27 days ago· Originally publishedDefenses

Quick read

Other

Based on the paper PDF (AI-generated); refer to the original

The authors propose the federated differentially private k-means algorithm FedDP-KMeans, which uses OOD server data for initialization; the authors state that it outperforms all DP baselines on synthetic and real data.

Questions
Data is scattered across edge devices and involves privacy, so k-means clustering cannot be done centrally; the main difficulty of DP clustering methods is the need for good initialization, and under DP, accessing the data over multiple rounds consumes the privacy budget.
Methods
Proposes FedDP-KMeans: FedDP-Init uses a small amount of out-of-distribution data on the server to obtain initial centers in three steps—private PCA projection, client weighting, and clustering in the projected space—then connects to the federated DP version of the Lloyd algorithm, FedDP-Lloyds, for refinement.
Experiments and results
In data-point-level experiments (synthetic Gaussian mixture, US census) and client-level experiments (synthetic data, Stack Overflow), the authors state that FedDP-KMeans outperforms all DP baselines in most settings except at extremely low budgets, and on synthetic data reaches the non-private optimum at εtotal≈0.4.
Limitations and future work
The authors note that hyperparameters (the privacy budget allocation across steps) must be selected manually, and only heuristic suggestions are given; the theoretical guarantees require that the server data cover every mixture component and satisfy the separation condition; the experiments cover only the clustering task with k=10.
Experimental setupsynthetic mixture of Gaussians、US census (folktables ACSIncome) et al. · k-means cost、(ε, δ)-DP privacy budget
Benchmarks
synthetic mixture of GaussiansUS census (folktables ACSIncome)Stack Overflow (Tensorflow Federated)
Metrics
k-means cost(ε, δ)-DP privacy budget
AI summaryFedDP-KMeans is a new fully federated and differentially private k-means clustering algorithm. It uses potentially small or out-of-distribution server-side data to address the difficulty that differentially private clustering depends on good initialization; combined with the federated DP-Lloyds algorithm, it achieves excellent results on synthetic and real benchmark tasks. The authors also provide theoretical bounds on convergence rate and cluster identification success.

FedDP-KMeans is a new fully federated and differentially private k-means clustering algorithm. It uses potentially small or out-of-distribution server-side data to address the difficulty that differentially private clustering depends on good initialization; combined with the federated DP-Lloyds algorithm, it achieves excellent results on synthetic and real benchmark tasks. The authors also provide theoretical bounds on convergence rate and cluster identification success.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Doing k-means clustering under federated and differential privacy constraints, the core difficulty is that it is hard to obtain good initialization under DP.

    Core problem: how to perform k-means clustering under fully-federated conditions while satisfying differential privacy (DP).

    • Setting and motivation: data is increasingly generated and stored on distributed endpoints such as edge devices, and privacy concerns prevent the data from being sent to a central server; the authors point out that FL alone is insufficient to protect privacy, since client data may be extracted from model weights (for example, when a cluster contains only one point, its center directly leaks that point).
    • Shortcomings of existing methods: the authors state that existing private clustering methods are either federated but incompatible with DP, or have DP but are not applicable to the FL setting (Section 6); DP noise addition brings a privacy-utility trade-off, and under DP multiple rounds of data access must split the budget, limiting the number of Lloyd iterations.
    • Core observation: good initialization is more critical for DP federated clustering than in the centralized non-private setting, because privacy and communication constraints limit the number of times client data can be used to refine the initialization; the server usually holds a small amount of out-of-distribution public or synthetic data that can be exploited.
    • Proposed in the paper: FedDP-KMeans—FedDP-Init, which uses server data for initialization, plus a federated DP version of Lloyd (FedDP-Lloyds), with theoretical analysis of convergence rate and cluster identification success rate.
    • Privacy settings: covers two adjacency definitions—data-point-level privacy (common in cross-silo FL) and the stricter client-level privacy (common in cross-device FL); δ is fixed and ε is accounted for by strong composition.
  2. What related research exists?

    Related work falls into three categories: federated clustering, DP clustering, and Gaussian mixture theory; the authors state that previously only two papers combined DP and FL.

    Clustering in federated settings

    • Sattler et al. (2020), Ghosh et al. (2020), Xia et al. (2020)—clustered FL: group clients and train one model per group; the authors note that the task in this paper is different: it clusters the data points of clients rather than the clients themselves.
    • Dennis et al. (2021)—k-FED: a one-shot approach in which clients cluster locally, send centers to the server, and the server clusters again; the authors note that the shared quantities are not aggregated and there is no privacy guarantee.
    • Liu et al. (2020), Mohassel et al. (2020)—optimize the k-means objective using federated averaging or multi-party secure computation; the authors note that the final clustering result still exposes private information.

    Differentially private clustering

    • The DPLloyd line starting with Blum et al. (2005): Su et al. (2016) construct a proxy dataset by spatial binning (the authors state this is feasible only in low dimensions), Ren et al. (2017) select initial centers using a subset of the original data, Zhang et al. (2022) randomly select points and aggregate with MPC; the authors state that none of these methods are compatible with the FL setting.
    • Local DP methods (Chang et al., 2021; Dupré la Tour et al., 2024)—the authors state they can be used directly in FL but the additive error is too large to be practical (citing Chaturvedi et al., 2022); the parallel DP algorithm of Cohen-Addad et al. (2022), if adapted to FL, would require a large number of communication rounds.
    • Appendix A supplement: Dupré la Tour et al. (2024) under FL requires Ω(k) rounds of communication or k^O(1) additive noise, and requires constructing a net of exponential dimension; Chang & Kamath (2021) has no theoretical guarantee and is not targeted at FL.

    Gaussian mixture clustering theory (Appendix A)

    • Achlioptas & McSherry (2005), Awasthi & Sheffet (2012)—spectral-method-based, requiring Ω(√k) separation; Kamath et al. (2019) privatizes it, and this paper follows this line. Bie et al. (2022) studies improving private algorithms with public data.
    • Methods based on Sum-of-Squares and Single Linkage such as Hopkins & Li (2018), Cohen et al. (2021), Tsfadia et al. (2022)—the authors state these are difficult to implement efficiently in the FL framework.

    Works combining DP and FL

    • Li et al. (2023)—targets vertical FL (clients share the same samples and each holds part of the features); the authors state it is orthogonal to this paper.
    • Diaa et al. (2024) (FastLloyd)—studies the same problem, but the authors point out that its custom aggregation scheme does not meet standard FL security requirements, and it uses SpherePacking initialization, which performed poorly in this paper's experiments.

    Baselines and benchmarks: the experimental baselines are three initializations—ServerKMeans++, ServerLloyds, SpherePacking (Su et al., 2017)—followed by FedDP-Lloyds, plus the non-private controls k-FED and the centralized optimum Optimal; the datasets are synthetic Gaussian mixture, US census (folktables), and Stack Overflow. The authors state that to their knowledge this paper is the first fully federated and DP k-means algorithm.

  3. How does the paper address this problem?

    Two stages: FedDP-Init uses server data to compute initial centers in three steps, then connects to a federated DP version of Lloyd for refinement.

    Overall approach: write all client accesses of k-means as cross-client sums and counts, and implement DP with secure aggregation plus noise; the key innovation, FedDP-Init, turns server data into a proxy dataset that can be manipulated freely, so that initialization requires only a small number of client interactions.

    Problem setup

    • m clients each hold data P j ∈ R^{d×nj}; the server holds data Q that can be shared freely but may be small and out-of-distribution; the goal is to compute the k-means clustering of the clients' joint data P in a federated and DP manner.
    • The objective is the standard k-means cost: min ∑i minj |pi − νj|2, i.e., the sum of squared distances from each point to its nearest center.
    • The main text develops only data-point-level DP; client-level requires only minor modifications (Section 5.2, Appendix G.4); δ is fixed, and the budgets of the three steps are denoted ε1, ε2, ε3 (ε3 further split into ε3G + ε3L), with allocation recommendations in Appendix H.1.

    FedDP-Init (Algorithm 1, three steps)

    • Step 1 private PCA projection: each client computes locally the outer product matrix P j(P j)^T, the server receives the aggregation with Gaussian noise added (sensitivity is the square of the data radius ∆), takes the top k eigenvectors to form the projection matrix Π, and reduces the data from d dimensions to k dimensions; the authors state that low dimensionality reduces the required noise and lowers communication volume.
    • Step 2 server point weighting: the server sends Π and the projected ΠQ to the clients; each client counts, for each server point q, how many of its projected points have q as their nearest neighbor, and the weights are aggregated with Laplace noise (scale 1/ε2) and returned, yielding a noisy histogram of the client data.
    • Step 3 clustering in the projected space plus one refinement: the server performs weighted k-means on ΠQ with the noisy weights to obtain projected centers ξ1..ξk; clients group by projected distance and report each cluster's point sum (Gaussian mechanism) and count (Laplace mechanism), and the server divides them to obtain the initial centers νr in the original space.

    FedDP-Lloyds (Algorithm 2)

    • A federated DP version of standard Lloyd iterations: the server broadcasts the current centers, clients group in the full-dimensional space and report each cluster's noisy sum and count, and the server updates the centers, for T rounds in total.
    • The budget per round is split as ε4G/T, δ/T; Theorem 1 gives overall (ε, δ)-DP, where ε is the sum of the budgets of the steps.

    Theoretical analysis (Section 4)

    • Assumes the data come from a k-component Gaussian mixture satisfying the separation condition (Definition 2): the distance between any two means is at least c√(k/wi) σmaxlog(n); two further assumptions are that the data diameter is bounded and that the server data size |Q| is not too large (the authors state these usually hold automatically in practice, and Appendix G.2 verifies them).
    • Theorem 3: under conditions including that Q contains at least one sample from each component, the centers converge exponentially to the true means at rate 2^{−T}, and the clustering induced after ζ3·log(n) rounds of communication is the true partition; the proofs are in Appendices E and F.

    Implementation notes

    • Sensitivity is enforced by clipping: at the data-point level, each point's norm is clipped to ∆ (in the experiments, the server data radius); at the client level, each client's reported statistics are clipped, and Step 3 is changed so that clients first compute local cluster means and then take the "mean of means" (Appendix G.4).
  4. What experiments did the paper conduct?

    Plots the Pareto frontier of k-means cost–ε at two privacy levels on synthetic and real data, and the authors state that it outperforms all DP baselines in most settings.

    Experimental setup

    • Privacy levels and data: data-point-level (cross-silo): synthetic Gaussian mixture (d=100, k=10, 100 clients × 1000 points; server has 200 in-distribution points + 100 uniform points) and US census folktables (51 states as clients, d=819, three employment types, totaling 127491/44720/98475 points; server has 20 same-class + 1000 different-class points). client-level (cross-device): synthetic data (1000/2000/5000 clients × 50 points) and Stack Overflow (pretrained sentence embeddings, d=384, four topic groups, client counts 10394/9237/23266/2720; server has 1000 different-class + 20 same-class questions).
    • Baselines: three initializations—ServerKMeans++, ServerLloyds, SpherePacking—followed by FedDP-Lloyds (none consume initialization budget); non-private controls k-FED and centralized Optimal (lower bound on k-means cost).
    • Metrics and protocol: k-means cost is scaled by data size 1/n; δ=10⁻⁶ is fixed, the ε of each step and hyperparameters such as the number of Lloyds steps are varied, the total budget is accounted for by strong composition using the Google dp accounting library, and the Pareto frontier of (cost, εtotal) is plotted.
    • Implementation: pfl-research framework; the paper does not report the number of repetitions for each setting.

    Main results

    The paper's main results are the Pareto curves in Figures 1, 2 and Appendix Figures 8–14; the main text does not give a per-method numerical table; the following is information readable from the figures and the authors' interpretation.

    SettingFigureConclusion stated by the authors
    Data-point-level, synthetic (100 clients)Figure 1 leftFedDP-KMeans reaches the non-private optimum at εtotal≈0.4; DP baseline initializations are poor and stagnate as the budget increases
    Data-point-level, US census (federal employees)Figure 1 rightFedDP-KMeans outperforms the baselines except in the extremely low budget region; recovers the non-private optimum when the budget is sufficient
    Client-level, synthetic (2000 clients)Figure 2 leftBaselines using only server data cannot overcome poor initialization
    Client-level, Stack Overflow (github, pdf)Figure 2 rightFedDP-KMeans is best, with only a few exceptions in the low budget region; k-FED is overall worse
    • The authors attribute FedDP-KMeans's performance mainly to initialization quality: Tables 4 and 5 show that in Pareto-optimal runs the number of Lloyds steps never exceeds 2, and is mostly 0.
    • In the client-level experiments, when clients increase from 1000 to 5000, performance is better at the same budget and the budget point at which it surpasses server initialization is smaller; the authors state this is consistent with the sub-sampling amplification effect.
    • The extremely low budget region is an exception: the authors state that here client initialization is noisy, and pure server initialization (which consumes no budget) is instead more reasonable.

    Robustness to missing server clusters (Appendix H.2)

    • What was tested: on synthetic data (k=10, 100 clients), the server data is made to lack 0/1/2/5 clusters.
    • Results: Figure 3 shows that as missing clusters increase, cost rises from about 50.0 to about 52.5 (in the ε 0.1–0.8 range); the authors state that performance degrades (modestly) as the number of missing clusters increases.
    • Figures 4–6: other baselines that use server data also degrade, and the authors state that FedDP-KMeans is still the best method in this scenario.

    Hyperparameter analysis (Appendix H.1)

    • Budget allocation: Tables 2 and 3 give the mean proportion of εinit taken by each step's ε in Pareto-optimal runs; based on this the authors give empirical recommendations: about [0.2, 0.2, 0.45, 0.15] for data-point-level and about [0.35, 0.1, 0.45, 0.1] for client-level (Step 3 Gaussian mechanism is the most important).
    • Number of Lloyds steps: in Table 4 the proportion of 0 steps is 0.61–0.92, and in Table 5 it is 0.80–1.0; the authors state that fewer, more accurate steps are better than many steps, and that Step 3 of FedDP-Init itself approximates one Lloyd step.

    Other analyses

    • Choosing k (Appendix H.3): using the elbow method on the weighted projected server data, Figure 7 shows the elbow at k=10, consistent with the true number of clusters (the preceding steps use k′=20).
    • Assumption verification (Appendix G.2): Table 1 gives the radius ∆ for each dataset (synthetic 10.57, census 2.65); the authors estimate that the two theoretical assumptions hold on the datasets used.
  5. What are some points that can be further explored?

    The authors note that hyperparameter selection is difficult and hope for a more principled approach; the theory relies on assumptions such as the server covering every cluster.

    Limitations and future directions noted by the authors

    • Difficulty of hyperparameter selection (Section 7 Conclusion): the authors state that one shortcoming of the method is that it requires choosing hyperparameters, which is difficult when privacy must be guaranteed; Appendix H.1 only gives heuristic recommendations, and the authors consider a more principled approach preferable.
    • Replacing server data with client data (Section 7): the authors consider it worth exploring whether server data can be replaced by a private mechanism based on client data.
    • Scope of the budget allocation recommendations (Appendix H.1): the authors state that the recommended proportions are based only on the datasets experimented with, and that the optimal setting varies with the dataset, especially depending on the number of clients and the number of points per client.
    • Theoretical assumptions (Section 4, Appendix H.2): the guarantee requires that the server data contain at least one sample from each mixture component and satisfy the separation condition and the diameter and server data size assumptions; the authors state that missing clusters are not a necessary condition for running, but performance degrades.

    Scope of experimental coverage

    • All tested tasks are k=10 clustering: synthetic Gaussian mixture (d=100), US census three employment types (d=819), Stack Overflow four topic groups (d=384).
    • Privacy levels cover both data-point-level (100 or 51 clients) and client-level (1000–5000 or 2720–23266 clients).
    • The compared methods are three DP initialization baselines plus two non-private controls (k-FED, Optimal); no experimental comparison with other DP clustering algorithms was made, and Appendix A explains why methods such as Dupré la Tour et al. (2024) are difficult to implement under FL.
    • The paper does not report the number of repetitions or variance for each setting; results are presented as Pareto frontier curves, with no per-method numerical table.
    • The theoretical analysis is limited to separated Gaussian mixtures and data-point-level DP; client-level was only tested experimentally.
  6. Summarize the main content of the paper

    FedDP-KMeans: initializes federated DP k-means with OOD server data; in experiments it outperforms DP baselines and has an exponential convergence guarantee.

    A federated differentially private clustering paper that proposes FedDP-KMeans, addressing the problem that data is dispersed across clients and k-means cannot be done centrally under privacy constraints.

    • Problem: the main difficulty of DP clustering is initialization—under DP every access to client data consumes budget, the number of Lloyd iterations is limited, and initialization quality is therefore more critical than in the centralized setting.
    • Method: FedDP-Init uses a small amount of data on the server that may be out-of-distribution, and obtains initial centers in three steps: private PCA projection, clients weighting server points, and weighted clustering in the projected space plus one refinement; it is then followed by a federated DP version of Lloyd (FedDP-Lloyds). All client interactions are noisy aggregation and are compatible with secure aggregation.
    • Theory: under the separated Gaussian mixture assumption, the authors prove that the centers converge exponentially to the true means at rate 2^{−T}, and that the true partition is recovered after O(log n) rounds of communication (Theorem 3).
    • Experiments: two settings, data-point-level (synthetic data, US census) and client-level (synthetic data, Stack Overflow); the authors state that FedDP-KMeans outperforms all DP baselines except in the extremely low budget region, and on synthetic data reaches the non-private optimum at εtotal≈0.4 (Figure 1).
    • Attribution: in Pareto-optimal runs the number of Lloyds steps is mostly 0 and at most 2 (Tables 4, 5), and the authors attribute the advantage to initialization quality on this basis; when the server lacks clusters, performance degrades but still outperforms the baselines (Figures 3–6).
    • Authors' conclusion: the method is practical at both privacy levels; the limitation is that hyperparameters (especially the budget allocation across steps) must be chosen manually, and the authors hope for a more principled approach in the future and explore replacing server data with a private mechanism based on client data.
Read originalICML 2025