A Computational Approach to Improving Fairness in K-means Clustering
Guancheng Zhou, Haiping Xu, Hongkang Xu, Chenyu Li, Donghui Yan
TL;DR
This work addresses fairness in K-means clustering, where clusters can disproportionately contain data from certain subpopulations. It proposes a two-stage approach: first perform standard clustering to obtain high-quality partitions, then adjust the membership of a small set of near-boundary points to improve fairness, thereby reducing bias with minimal loss in clustering quality. Two scalable heuristics are introduced—near-foreign, which targets far-from-centroid points near another cluster, and a Gini-index-based method that identifies highly mixed boundary points—along with formal definitions of fairness via $\mathcal{F}$ and cluster balance $\beta(A)$. Empirical results on seven UCI datasets show meaningful fairness gains with only slight perturbations to the clustering quality metric $\kappa$, demonstrating the methods’ practicality and broad applicability to other clustering algorithms and fairness notions.
Abstract
The popular K-means clustering algorithm potentially suffers from a major weakness for further analysis or interpretation. Some cluster may have disproportionately more (or fewer) points from one of the subpopulations in terms of some sensitive variable, e.g., gender or race. Such a fairness issue may cause bias and unexpected social consequences. This work attempts to improve the fairness of K-means clustering with a two-stage optimization formulation--clustering first and then adjust cluster membership of a small subset of selected data points. Two computationally efficient algorithms are proposed in identifying those data points that are expensive for fairness, with one focusing on nearest data points outside of a cluster and the other on highly 'mixed' data points. Experiments on benchmark datasets show substantial improvement on fairness with a minimal impact to clustering quality. The proposed algorithms can be easily extended to a broad class of clustering algorithms or fairness metrics.
