Fair Minimum Representation Clustering

Connor Lawless, Oktay Günlük

TL;DR

Traditional fair clustering ensures groups are proportionally distributed across all clusters, but this can dilute minority groups so they never achieve a majority anywhere. This paper introduces "minimum representation fairness" for $k$-means clustering, ensuring specified groups cross a minimum representation threshold in a set number of clusters. The authors propose MiniReL, an optimization-based algorithm that successfully guarantees these thresholds are met with virtually no increase in clustering cost and scales efficiently to large datasets.

What Problem Does This Paper Address?

Most existing work in fair clustering focuses on "balance" or "bounded representation"—making sure every single cluster mirrors the global demographic breakdown of the dataset. However, the authors point out a major flaw in this approach for specific real-world applications like drawing electoral districts or creating targeted media playlists. In these scenarios, a group only receives a meaningful benefit if they achieve a minimum threshold of representation (e.g., a 50% majority to elect a preferred candidate or a high percentage of localized programming).

Standard $k$-means (Lloyd's algorithm) operates greedily and often dilutes minority groups, leaving them as the minority in every single cluster. To solve this, the paper introduces minimum representation fairness, which guarantees that each group crosses a defined representation threshold ($\alpha$) in a baseline number of clusters ($\beta$).

Methods

The authors formalize the problem within a Mixed-Integer Optimization (MIO) framework. To solve it, they introduce MiniReL (MINIimum REpresentation fair Lloyd's algorithm), which modifies the classic Lloyd's algorithm:

  1. Fair Assignment Step: Instead of greedily assigning data points to the nearest cluster center, MiniReL solves an Integer Program (IP) to find the minimum-cost assignment that satisfies the fairness constraints. The authors prove that finding a feasible solution to this sub-problem is NP-Complete.
  2. Center Update Step: Like standard $k$-means, the cluster centers are updated to be the mean of their assigned points.

To make this NP-Complete sub-problem tractable for large datasets, they introduce two key scaling techniques:

  • Warm-Starting: They initialize MiniReL using the final cluster centers from a standard $k$-means++ run. This leverages polynomial-time assignments for the bulk of the work, leaving the IP solver to merely adjust the local unfair optimum into a fair one.
  • Pre-fixing Group Assignment: They use a small, highly efficient IP to pre-determine which clusters will satisfy which group's threshold. This eliminates expensive "big-M" constraints and breaks mathematical symmetry, drastically reducing the search space.

The framework supports two natural fairness definitions: Cluster Statistical Parity (allocating an equal number of threshold-passing clusters to all groups) and Cluster Equality of Opportunity (allocating clusters proportionally to group size).

Datasets

The algorithm was evaluated on three standard benchmark datasets from the UCI Machine Learning Repository:

  • Iris: $n = 150, m = 4$ (Sensitive attribute: species)
  • Adult: $n = 48,842, m = 14$ (Sensitive attribute: gender)
  • Default: $n = 30,000, m = 24$ (Sensitive attribute: gender)

Target variables were removed, and sensitive attributes were not used as features during the clustering process.

Key Insights and Ideas

  • The Dilution Paradox: Proportional fairness can inadvertently silence minority groups. By forcing every cluster to match global demographics, a 15% minority group remains a 15% minority everywhere, stripping them of majority power in any single cluster.
  • Fairness is "Free": Remarkably, forcing clusters to meet strict minority thresholds results in practically no increase in the final $k$-means clustering cost. Points are shifted slightly to satisfy fairness, but overall cluster cohesion is preserved.
  • Heuristic Synergy: Even though the assignment step is NP-Complete, combining a warm-start from standard $k$-means with a pre-fixing heuristic turns an otherwise intractable optimization problem into one that solves in seconds.

Key Results

  • Standard $k$-means Fails Fairness: In the default dataset, standard $k$-means resulted in up to an 11-cluster gap in majority representation between males and females, despite relatively similar global proportions (60% female, 40% male).
  • MiniReL Restores Fairness: MiniReL successfully satisfied all fairness constraints across all datasets for a majority threshold of $\alpha = 0.51$.
  • Massive Computational Speedups: Incorporating the pre-fixing group assignment strategy yielded up to a 400x speedup compared to running MiniReL with the full IP model. Large datasets with tens of thousands of points were solved to local optimality in under 30 seconds.

Limitations and Future Work

  • Computational Bottleneck: Although the pre-fixing heuristic makes the algorithm highly practical for tens of thousands of points, solving the exact integer program remains the core bottleneck. It may still struggle to scale to massive, web-scale datasets ($n \gg 10^5$).
  • Future Directions: The authors suggest that future research should focus on developing purely polynomial-time approximation algorithms or heuristics that can guarantee approximate minimum representation fairness without relying on commercial IP solvers (like Gurobi).

Summary updated

BibTeX
@inproceedings{lawless2024fair,
  author = {Connor Lawless and Oktay Günlük},
  title = {{Fair Minimum Representation Clustering}},
  booktitle = {CPAIOR},
  year = {2024},
  url = {https://openreview.net/forum?id=GkmjV170fM},
}
Figure