Variational Fair Clustering

Imtiaz Masud Ziko, Jing Yuan, Eric Granger, Ismail Ben Ayed

Introduction

Clustering is a cornerstone of unsupervised learning, yet standard methods like K-means often inadvertently amplify demographic biases present in data. For instance, a model might cluster individuals into groups that correlate strongly with sensitive attributes such as race, gender, or marital status, leading to "rich" or "poor" clusters that reflect societal inequities rather than purely objective data patterns. "Fair clustering" seeks to mitigate this by ensuring that each cluster maintains a demographic distribution representative of the overall dataset.

The Variational Fair Clustering Framework

This paper introduces a flexible, variational framework for fair clustering that addresses the limitations of previous methods, such as computational rigidity and poor scalability. The core of the approach is a unified objective function:

$$ \min_S F(S) + \lambda \text{FairnessPenalty}(S) $$

where $F(S)$ represents a standard clustering objective (e.g., K-means or Normalized Cut) and $\lambda$ is a user-defined multiplier that controls the trade-off between clustering quality and fairness. The authors utilize the Kullback-Leibler (KL) divergence as the fairness penalty. This choice is mathematically advantageous; the derivation naturally introduces a negative entropy term that acts as a barrier, keeping assignment probabilities non-negative without requiring expensive projection steps.

Scalable Optimization

To optimize this non-convex objective, the authors employ a Majorize-Minimize (MM) strategy. By deriving a tight upper bound (auxiliary function) and minimizing it at each step, the algorithm guarantees a monotonic decrease in the original objective function.

Convergence of the Fair K-means objective function.

A key benefit of this framework is its "embarrassing parallelizability." Because the update for each data point is independent of others during an iteration, the method scales efficiently to massive datasets. The authors demonstrated this by processing the Census II dataset, which contains over 2.4 million records—a feat that previous spectral fair clustering methods could not achieve due to the cubic complexity of eigenvalue decompositions.

Results and Trade-offs

The framework was evaluated on several benchmarks, including the Adult Census and Bank Marketing datasets. Unlike "all-or-nothing" constraints, this variational approach allows researchers to explore a Pareto frontier of solutions.

Fairness error vs. clustering energy for Adult and Bank datasets using K-means and Normalized Cut.

As shown in the experimental results, increasing the parameter $\lambda$ allows the fairness error (measured by KL divergence) to drop toward zero. In comparisons with state-of-the-art methods, the variational approach consistently achieved lower clustering error for the same levels of fairness. Furthermore, the method naturally handles multiple demographic groups, as seen in the Bank dataset experiments involving three marital status categories.

Conclusion

Variational Fair Clustering provides a robust and scalable solution for integrating fairness into unsupervised learning. By treating fairness as a tunable penalty rather than a hard constraint, it offers practitioners the flexibility needed for real-world applications. While the method is sensitive to initialization and requires pre-defined target demographic proportions, its generality across different clustering objectives makes it a powerful tool for ethical AI research.

Summary updated

BibTeX
@inproceedings{ziko2021variational,
  author = {Imtiaz Masud Ziko and Jing Yuan and Eric Granger and Ismail Ben Ayed},
  title = {{Variational Fair Clustering}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i12.17336},
}
Figure