arXiv:2610.13717cs.LGOct 2026

Manuscript Offprint

arXiv:2610.13717

Machine Unlearning for Federated Socially Fair k-Means Clustering

Aravind Reddy, Deeraj S K, Mohd Wasif Raza, Saurav Prakash

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Federated clustering can support applications such as patient stratification across hospitals and customer segmentation across distributed financial datasets. Responsible AI calls for fair representation of demographic groups and support for data deletion, motivated in part by rights such as the GDPR's right to erasure. These goals interact: deleting records can change the balance between groups and alter the clustering of the remaining population. We study exact machine unlearning for federated socially fair k-means, whose objective is to minimize the largest group-average squared distance to the nearest center. Our approach keeps separate local summaries for each group, so summaries at unaffected institutions remain valid as global fairness weights change. For two groups, we prove an initialization approximation guarantee independent of client group proportions under ideal sampling, and we show that same-seed replay reproduces retraining exactly. Reuse pays off most when a whole client withdraws: across three datasets, replay is 35.8×35.8\times faster than retraining for the initialization-only model and remains 2.4×2.4\times and 1.7×1.7\times faster with one and two fair-refinement rounds, which improve worst-group cost. For individual record deletions, gains are modest (about 1.06×1.06\times), and certifying cached assignments can cost more than it saves. These results map where exact unlearning can profitably reuse computation. Code and reproducibility materials are available at https://github.com/arareddy/mufsc.

1 INTRODUCTION

Hospitals can cluster patients with similar clinical profiles and banks can segment customers with similar activity (Aliyev et al., 2020). Prior works already cluster patients across hospitals without pooling their records (Huang et al., 2019; Elhussein and Gürsoy, 2023), though neither addresses group fairness or deletion. When records cannot be pooled, federated clustering learns shared centers from local summaries. Such a system should represent demographic groups fairly: centers that fit a majority well can describe a smaller group poorly. It should also honor deletion requests, motivated in part by the GDPR's conditional right to erasure (European Parliament and Council of the European Union, 2016). For deletion requests, we adopt the framework of exact unlearning: after a deletion, the released model should be the one that retraining on the remaining records with the same random seed would produce.

Groups, clusters, and weights. Demographic groups are fixed attributes of records, such as census SEX categories. Clusters are learned: each record joins its nearest center, so a cluster usually contains both groups. Socially fair k-means (Ghadiri et al., 2021; Abbasi et al., 2021) computes each group's average squared distance to the nearest center and minimizes the worse of the group averages. It asks whether the centers describe every group comparably well, not whether each cluster mirrors the population. Because each group's cost is an average, each record of group g carries weight 1/ng1/n_g, where ngn_g is the group's global size.

∗^{*}Equal contribution.

Why deletion is harder under this objective. Deletion has global effects even in ordinary k-means: removing one record can move a center and so reassign records held anywhere. Socially fair k-means adds a structural effect. Deleting a group-g record changes ngn_{g}, and with it the weight of every remaining group-g record, including records at institutions that received no request. The data change at one site, but the normalization that determines how every site's records count changes globally. This mismatch shapes how clients should summarize their data. Suppose, hypothetically, that a hospital holds 30% of all group-A patients but only 3% of all group-B patients. In the global objective each group's records carry total weight one, so this hospital's group-A records carry 0.30 and its group-B records 0.03. If the hospital instead balances its two groups locally, its group-B patients receive ten times more influence, relative to its group-A patients, than the global objective gives them. For a natural merged summary, we show that the expected initialization loss can grow linearly with this ratio. Using global group sizes in local sampling avoids that mismatch but can make a deletion invalidate summaries at otherwise untouched hospitals. Changed weights can also alter the initial centers and, through them, later assignments and fair updates, so subtracting a deleted record from old cluster statistics does not in general reproduce retraining.

This raises the question we study: which parts of a federated fair-clustering computation can be kept after a deletion while the released model remains exactly the one retraining would produce, and when does keeping more of them save work?

Our approach. We separate local summary construction from work that depends on global group sizes. Each (institution, group) pair selects up to k representatives by D2D^{2}-sampling (k-means++ initialization) (Arthur and Vassilvitskii, 2007; Wei, 2016) and reports how many records each represents. These summaries never use global group sizes, so a deletion elsewhere changes only how the server weights them, not the summaries themselves. The server divides the counts by current group sizes and selects initial centers by weighted D2D^{2}-sampling from at most 2Ck representatives for C institutions. After a deletion, only the touched summaries are rebuilt before the server reweights and resamples. Fair refinement then alternates nearest-center assignment with center updates targeting the largest group-average squared distance, following Fair-Lloyd (Ghadiri et al., 2021). Our guarded version accepts only updates that do not increase this cost (Section 3.2), using exact per-cluster, per-group statistics. Direct replay reassigns every retained record each round; certified replay first uses cached distances to test whether its nearest center is unchanged.

Refinement budget. Let T count fair-refinement rounds after initialization. At a matched configuration and seed, replay reproduces fresh training exactly, including its quality. When a whole client withdraws, every surviving slice is unchanged, so an initialization-only (T=0)(T = 0) model can be replayed from summaries alone. This specializes our replay theorem and follows the server-only retraining of Pan et al. (2023, Section 5.3) (Appendix J.2). For T > 0, direct replay keeps this initialization saving but still recomputes surviving assignments every round.

References (100)

Couldn't load all references. Reload the page to try again.