Fair Clustering with Multiple Colors

Matteo Böhm, Adriano Fazzone, Stefano Leonardi, Chris SchwiegelshohnarXiv 2020

Abstract

Traditional clustering algorithms often ignore protected attributes, leading to demographically skewed results. While fair clustering has been explored for binary attributes, scaling to multiple protected groups (colors) has historically faced significant theoretical and computational hurdles. This paper introduces a general reduction that transforms any standard $k$-clustering algorithm into a fair one. We prove that an $\alpha$-approximation for a standard clustering objective yields an $(\alpha + 2)$ approximation for the fair version, providing the first constant-factor approximation for the multi-color case across various center-based objectives.

Introduction

In center-based clustering, such as $k$-means, $k$-median, or $k$-center, the objective is to partition data points into $k$ groups to minimize a distance-based cost. However, these objectives do not inherently account for the distribution of protected attributes like race, gender, or age. Consequently, the resulting clusters may not reflect the global demographic balance of the dataset.

"Fair clustering" seeks to ensure that every cluster maintains the same proportion of protected groups as the overall population. While previous research successfully addressed this for two groups, extending these guarantees to multiple colors proved difficult. Prior attempts often lacked constant-factor guarantees, were restricted to specific objectives like $k$-center, or suffered from prohibitive computational costs. This work provides a unified framework applicable to any center-based clustering objective with an arbitrary number of colors.

The Fair to Unfair Reduction

The core contribution of this work is a "Fair to Unfair Reduction" framework. The algorithm simplifies the complex fair clustering problem into a standard clustering task followed by a matching step. The process follows four primary stages:

  1. Reference Group Selection: The algorithm identifies one color group to serve as the "reference group."
  2. Unconstrained Clustering: A standard, non-fair clustering algorithm (providing an $\alpha$-approximation) is run exclusively on the reference group to determine $k$ centers.
  3. Fair Assignment via Matching: To incorporate the other color groups, the algorithm utilizes the Earth Mover’s Distance (EMD). This involves solving a min-cost perfect matching problem to map points from every other color group to the points in the reference group.
  4. Final Mapping: Each point in a non-reference group is assigned to the cluster center associated with its "matched partner" in the reference group.

By construction, because the reference group is partitioned into clusters and every other group follows its matched partners, the resulting clusters are perfectly balanced. Using the triangle inequality, we demonstrate that the total cost of this fair assignment does not exceed the optimal fair cost by more than a factor of $(\alpha + 2)$.

Computational Efficiency and Scalability

A significant challenge in this approach is the computational cost of EMD, which typically requires $O(n^3)$ time. To mitigate this, the authors introduce a Fast Randomized Fair $n$-Median algorithm. By using sampling techniques to identify a suitable reference group, the algorithm achieves nearly linear running time.

In empirical tests, this randomized approach (Algorithm 2) ran approximately 100x faster than previous state-of-the-art methods. Furthermore, the framework demonstrated superior scalability, successfully processing the CensusII dataset (comprising 450,000 points)—a scale at which previous fair clustering implementations typically failed to terminate.

Theoretical Insights

Beyond the reduction framework, the paper provides critical insights into the complexity of fairness:

  • Hardness Jump: The authors prove that moving from two colors to three colors makes the fair clustering problem APX-hard. This explains why previous research struggled to generalize binary fairness; the complexity of the problem fundamentally shifts once a third group is introduced.
  • Strict Fairness: Unlike "bicriteria" approximations that allow for slight demographic deviations (e.g., 48/52 splits), this method guarantees perfect balance across all clusters, provided the input groups are of equal size.

Experimental Evaluation

The algorithms were evaluated on six real-world datasets: Adults, Athletes, Bank, Diabetes, Credit Cards, and CensusII. For the purpose of the experiments, these datasets were subsampled to create balanced groups of eight colors each. The results consistently showed that the reduction framework maintains high clustering quality while strictly adhering to fairness constraints across diverse data types, from Olympic athlete metrics to clinical records.

Limitations and Future Work

While this framework represents a significant advancement, several avenues for future research remain:

  • Balanced Input Constraints: The current reduction assumes the input dataset is already balanced (each color group has an equal number of points). While the authors used subsampling to meet this requirement, extending the theory to handle arbitrary group ratios is a necessary next step for real-world applications.
  • Intersectional Fairness: The model currently assumes disjoint groups (each point has exactly one color). Future work could explore intersectional fairness, where individuals belong to multiple protected categories simultaneously.
  • Tightness of Bounds: While $(\alpha + 2)$ is a constant factor, it remains an open question whether a more sophisticated reduction could achieve an $(\alpha + 1)$ bound or if $(\alpha + 2)$ is the theoretical limit for this class of reductions.

Summary updated

BibTeX
@misc{bohm2020fair,
  author = {Matteo Böhm and Adriano Fazzone and Stefano Leonardi and Chris Schwiegelshohn},
  title = {{Fair Clustering with Multiple Colors}},
  year = {2020},
  eprint = {2002.07892},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.07892},
}
Figure