Fair k-Center Clustering for Data Summarization

Matthäus Kleindessner, Pranjal Awasthi, Jamie Morgenstern

Introduction

Data summarization is the process of selecting a small, representative subset (or $k$ prototypes) from a massive dataset. A common approach is $k$-center clustering, which selects $k$ points such that the maximum distance from any data point to its nearest prototype is minimized.

However, standard clustering algorithms are "blind" to demographics. For instance, a search for "CEO" might return a summary that is 90% male simply because of how the points are distributed in the feature space, even if the underlying data is more balanced. To correct this, we need Fair $k$-Center Clustering, where the user specifies exact quotas for how many prototypes should come from each demographic group (e.g., an equal split of men and women).

The primary challenge in fair clustering has been computational cost. Existing "fair" algorithms often require $\Omega(n^2)$ time, causing a quadratic slowdown that is impractical for Big Data applications where $n$ can be in the millions. This paper introduces the first linear-time ($O(nk)$) approximation algorithm for fair $k$-center clustering, matching the efficiency of standard algorithms while strictly adhering to user-defined demographic quotas.

Methodology

The authors build their approach on Gonzalez’s algorithm, a classic greedy strategy that iteratively picks the point furthest away from the current set of centers.

  1. The Initial Greedy Pass: The algorithm begins by running a standard, "unfair" $k$-center clustering to establish initial cluster centers.
  2. The Swap Mechanism: If the initial pass violates the demographic quotas (e.g., selecting too many points from Group A and too few from Group B), the algorithm examines the clusters formed around the Group A centers. It attempts to find a point from Group B within those clusters to "swap" in as the new center.
  3. Graph-Based Transfers: When dealing with more than two groups, a simple direct swap might not be possible. The authors treat the groups as nodes in a directed graph. An edge exists from Group $S_i$ to $S_j$ if a cluster centered in $S_i$ contains a point from $S_j$. They then use shortest-path algorithms to find a chain of swaps that satisfies the quotas.
Illustration of clusters and points from different demographic groups ($S_1, S_2, S_3$) used to facilitate graph-based transfer swaps.
  1. Recursive Refinement: If swaps alone cannot satisfy the fairness constraints, the algorithm identifies a subset of the data that is "resolved" and recursively calls itself on the remaining points and groups.

Datasets and Evaluation

The algorithm was evaluated across three distinct types of data to test its speed, accuracy, and practical utility:

  • Image Data: A dataset of 14 medical doctor images (7 male, 7 female) was used to demonstrate how standard algorithms fail to produce balanced summaries and how the fair version corrects this without losing visual representativeness.
A sample of the medical doctor image dataset used to evaluate fair summarization.
  • Synthetic Data: Random graphs (Erdős-Rényi models) were generated where the "optimal" fair clustering cost could be calculated exactly, allowing the authors to test the algorithm's approximation accuracy.
  • UCI Adult Dataset: A real-world dataset containing 25,000 records. The evaluation used numerical features (age, education, etc.) and defined groups based on sensitive attributes like gender and race.

Key Findings and Results

  • Massive Speedup: The linear-time nature of the algorithm provides dramatic performance improvements. On a tiny dataset of just 250 points, the previous state-of-the-art algorithm took 230 seconds, while the new algorithm took less than 0.01 seconds. This performance gap widens exponentially as datasets grow to millions of records.
  • The "Price of Fairness" is Low: Enforcing fairness constraints does not significantly increase the clustering cost (the maximum distance to a center). In most experiments, the "fair" summary remained nearly as representative of the overall data as the "unfair" summary.
  • Approximation Guarantees: The authors mathematically proved their algorithm is a 5-approximation for two groups. For $m$ groups, they provide a theoretical upper bound of $(3 \cdot 2^{m-1} - 1)$.
  • Theory vs. Practice Gap: While the theoretical proof suggests the approximation error could grow exponentially with the number of groups ($m$), empirical results showed the error stayed very low (usually a factor of 2 or 3), regardless of how many groups were used.
  • Fairness in Action: In the image summarization experiment, the standard algorithm produced summaries with 75-100% women due to specific image features. The new algorithm perfectly matched the requested 50/50 split while maintaining a high-quality summary.

Limitations and Future Work

  • Tightness of the Bound: The authors note that the exponential theoretical bound for multiple groups may not be "tight." They were unable to find a worst-case scenario that performed that poorly in practice, suggesting a tighter (perhaps constant) bound might exist.
  • Beyond $k$-Center: This research focuses specifically on the $k$-center objective (minimizing maximum distance). Future work could explore whether similar linear-time "swap" strategies can be adapted for $k$-median or $k$-means objectives under fairness constraints.
  • Outliers: Standard $k$-center clustering is notoriously sensitive to outliers. Integrating demographic fairness with outlier robustness remains an open challenge for the field.

Summary updated

BibTeX
@inproceedings{kleindessner2019fair,
  author = {Matthäus Kleindessner and Pranjal Awasthi and Jamie Morgenstern},
  title = {{Fair k-Center Clustering for Data Summarization}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
}
Figure