Introduction
Hierarchical clustering is a fundamental tool for organizing data into a recursive tree (or dendrogram), commonly used in social network analysis, image organization, and document categorization. While researchers have recently developed "fair" versions of flat clustering (like k-means), hierarchical clustering has been largely overlooked.
The core challenge is that bias can creep into every level of the tree. For example, if you are clustering news articles into a topic hierarchy, a standard algorithm might create sub-clusters dominated by a single news source, silencing minority viewpoints. This paper provides the first formal algorithmic framework for Fair Hierarchical Clustering by tackling the "bounded representation" constraint: ensuring that no protected group (defined by attributes like race, gender, or age) is over-represented in any cluster within the hierarchy.
Methodology: The Fairlet Approach
The authors build their approach on two pillars: Dasgupta’s objective functions for hierarchical clustering (Revenue, Value, and Cost) and the Fairlet decomposition framework.
The strategy follows a two-phase "Fairlet-then-Clustering" pipeline:
- Fairlet Decomposition: The dataset is first partitioned into "fairlets"—the smallest possible sets of points that satisfy the fairness constraint (e.g., for a 50/50 gender balance, a fairlet might be one man and one woman).
- Hierarchical Construction: A standard hierarchical clustering algorithm (like average-linkage) is run on these fairlets instead of individual points. Because the fairness constraint is "union-closed" (the union of two fair clusters is also fair), the entire resulting tree is guaranteed to be fair.
A key insight here is decoupling fairness from optimization. By using fairlets, you don't need to reinvent clustering algorithms from scratch; you can "pre-process" the data into fair units and then use state-of-the-art, highly optimized clustering tools.
However, the authors prove that finding the optimal fairlet decomposition for the "Value" objective is NP-hard. To bypass this, they introduce a Local Search Algorithm that iteratively swaps points between fairlets to minimize internal distances.
Empirical Results and Scalability
The researchers evaluated their algorithms on two classic benchmarks from the UCI Machine Learning Repository: the Census Dataset (balancing gender and race) and the Bank Marketing Dataset (balancing marital status and age).
The Price of Fairness is Low
A major takeaway is that demanding fairness doesn't "break" the clustering. The authors achieved strong theoretical bounds, including a $\frac{1}{3}(1 - \frac{2m_f}{n})$-approximation for the Revenue objective and a $\frac{2}{3}(1 - o(1))$-approximation for the Value objective (where $m_f$ is the max fairlet size).
Empirically, the local search algorithm significantly improved the quality of the fairlets. The final "Fair Value" of the trees reached 99% or higher of the value achieved by standard, unfair average-linkage across multiple datasets and sample sizes.
Scalability
The fair hierarchical clustering algorithm scales almost as well as the standard version, making it practical for real-world datasets with tens of thousands of points. The log-log run time comparison shows nearly identical growth rates between the fair and standard average-linkage algorithms.
Limitations and Future Work
While the paper provides a theoretical approximation for the "Cost" objective, the algorithm is complex ($O(n^{5/6})$) and was not evaluated empirically. Making fair "Cost-based" clustering practical remains an open challenge. Furthermore, the work focuses strictly on "bounded representation." Other notions of fairness, such as "individual fairness" (treating similar individuals similarly) or "diversity" (ensuring a minimum representation), were not explored in this hierarchical context. Finally, there is still a gap between the theoretical lower bounds and the approximation ratios achieved, suggesting room for even more precise algorithms in the future.
Summary updated