Fair Clustering Through Fairlets

Flavio Chierichetti, Ravi Kumar, Silvio Lattanzi, Sergei Vassilvitskii

Introduction

This paper introduces fairlets, a novel framework for ensuring that clustering algorithms (like k-center and k-median) respect the "disparate impact" doctrine. By decomposing a dataset into small, balanced groups called fairlets before running standard clustering, the authors provide a way to guarantee that every cluster maintains a fair representation of protected groups without sacrificing too much mathematical accuracy.

What Problem Does This Paper Address?

Traditional clustering algorithms are "colorblind." They group data points based solely on proximity, ignoring protected attributes like race, gender, or age. However, if these clusters are used to make real-world decisions—such as determining credit scores or sentencing recommendations—this colorblindness can lead to disparate impact. For example, a cluster might end up composed entirely of one demographic, effectively segregating the data and amplifying existing biases.

The challenge is that "fair" clustering is fundamentally harder than standard clustering. In a fair setup, a data point might actually be assigned to a cluster center that is farther away just to ensure the cluster remains demographically balanced. This breaks the "nearest-center" convention that almost all classical clustering algorithms rely on.

Illustration of how fair clustering can violate the nearest-center convention to maintain demographic balance.

Methods

The authors propose a two-step reduction called Fairlet Decomposition:

  1. Fairlet Creation (Pre-processing): Instead of clustering all points at once, the algorithm first groups points into "fairlets." These are the smallest possible sets that satisfy a desired balance (e.g., a 1:1 ratio of blue to red points). The goal is to minimize the distance between points within these fairlets.
  2. For perfectly balanced groups (1:1), they use Bipartite Matching.
  3. For more complex ratios (1:t), they transform the problem into a Minimum Cost Flow (MCF) problem.
  4. Standard Clustering: Once fairlets are formed, the algorithm treats the center of each fairlet as a single point and runs a standard, "unfair" clustering algorithm (like the Gonzalez algorithm for k-center) on these centers.

The beauty of this approach is that it allows researchers to use existing, highly optimized clustering machinery while guaranteeing fairness through the pre-processing step.

Datasets

The authors evaluated their approach on three real-world datasets from the UCI repository:

  • Diabetes: Used to balance gender representation based on health metrics like age and time in hospital.
  • Bank: Used to balance "married" vs. "not married" clients based on financial attributes.
  • Census (Adult): Used to balance gender based on education, occupation, and hours worked.

Key Insights and Ideas

  • The "Fairlet" as an Atomic Unit: The core "aha moment" is that fairness doesn't have to be solved at the global clustering level. If you can partition the data into tiny, fair "atoms" (fairlets), any clustering of those atoms will inherently be fair.
  • Violating Proximity: The paper formally proves that fair clustering requires us to abandon the idea that every point belongs to its nearest center. This is a significant theoretical departure from decades of clustering research.
  • The Price of Fairness: The authors quantify the "cost" of being fair. They show that while fair clustering is more expensive (in terms of the distance objective), the cost is bounded and predictable.

Key Results

  • Theoretical Guarantees: The authors provide the first approximation algorithms for fair clustering. Specifically, they achieve a 3-approximation for the (1, k)-fair center problem and a 4-approximation for the more general (1/t, k)-fair center problem.
  • Empirical Success: In tests on the Bank and Census datasets, classical "unfair" algorithms often produced clusters with zero balance (completely monochromatic clusters) as the number of clusters ($k$) increased. The fairlet approach successfully maintained balance across all $k$.
  • Convergence: The experiments showed that as the number of clusters increases, the total cost of the fair clustering solution converges toward the cost of the initial fairlet decomposition, suggesting that the fairlet step is the primary driver of the "fairness tax."
Empirical results across the Bank, Census, and Diabetes datasets comparing fair vs. unfair costs and balances.

Limitations and Future Work

  • Binary Attributes: The current fairlet framework is primarily designed for two protected classes (e.g., Red vs. Blue). Extending this to multi-valued attributes (like multiple ethnicities or age brackets) is a non-trivial challenge.
  • Computational Complexity: While the reduction to Minimum Cost Flow is polynomial, it is significantly more computationally expensive than simple greedy clustering. This might limit its use on massive, billion-point datasets.
  • Tightening Bounds: There remains a gap between the theoretical lower bounds and the approximation ratios achieved in this paper, leaving room for more optimized fairlet discovery algorithms.

Summary updated

BibTeX
@inproceedings{chierichetti2017fair,
  author = {Flavio Chierichetti and Ravi Kumar and Silvio Lattanzi and Sergei Vassilvitskii},
  title = {{Fair Clustering Through Fairlets}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=Sy-UWdZuWB},
}
Figure