[Paper Review] Fair Algorithms for Hierarchical Agglomerative Clustering
This paper proposes Fair Hierarchical Agglomerative Clustering (FHAC), a novel algorithm that enforces fairness in HAC by integrating group-based fairness constraints—such as bounded representation and balance—into the clustering process. It generalizes across linkage criteria (single, average, complete), supports multiple protected groups, and achieves competitive runtime while significantly improving fairness over vanilla HAC and prior state-of-the-art methods on UCI datasets.
Hierarchical Agglomerative Clustering (HAC) algorithms are extensively utilized in modern data science, and seek to partition the dataset into clusters while generating a hierarchical relationship between the data samples. HAC algorithms are employed in many applications, such as biology, natural language processing, and recommender systems. Thus, it is imperative to ensure that these algorithms are fair -- even if the dataset contains biases against certain protected groups, the cluster outputs generated should not discriminate against samples from any of these groups. However, recent work in clustering fairness has mostly focused on center-based clustering algorithms, such as k-median and k-means clustering. In this paper, we propose fair algorithms for performing HAC that enforce fairness constraints 1) irrespective of the distance linkage criteria used, 2) generalize to any natural measures of clustering fairness for HAC, 3) work for multiple protected groups, and 4) have competitive running times to vanilla HAC. Through extensive experiments on multiple real-world UCI datasets, we show that our proposed algorithm finds fairer clusterings compared to vanilla HAC as well as other state-of-the-art fair clustering approaches.
Motivation & Objective
- Address the lack of fairness-aware hierarchical clustering algorithms despite widespread use in sensitive applications.
- Ensure that clustering outcomes do not discriminate against protected groups (e.g., race, gender) even when training data contains societal biases.
- Develop a general-purpose framework that supports multiple fairness notions (e.g., balance, maximum fairness cost) and linkage criteria in HAC.
- Maintain computational efficiency comparable to vanilla HAC while improving fairness.
- Demonstrate superior fairness and clustering quality compared to existing fair HAC approaches on real-world UCI datasets.
Proposed method
- Introduce a modified agglomerative clustering process that incorporates fairness constraints during cluster merging decisions.
- Define fairness via two key metrics: Maximum Fairness Cost (MFC) and balance, which control group representation in clusters.
- Modify the distance criterion by introducing a relaxation parameter β to allow fairer merges even when they are slightly less distance-optimal.
- Generalize the approach to work with any linkage criterion (single, average, complete) by adapting the merge selection logic under fairness constraints.
- Use a greedy merging strategy that prioritizes pairs of clusters that minimize a hybrid objective: distance-based proximity and fairness deviation.
- Support multiple protected groups by tracking group-wise cluster membership and enforcing bounds on representation in each merge step.
Experimental results
Research questions
- RQ1Can fairness constraints be effectively integrated into hierarchical agglomerative clustering without sacrificing computational efficiency?
- RQ2Does the proposed FHAC algorithm generalize across different linkage criteria (e.g., single, average, complete-linkage) while maintaining fairness?
- RQ3How does the fairness performance of FHAC compare to vanilla HAC and the only other existing fair HAC method (AFHAC) on real-world datasets?
- RQ4To what extent does enforcing fairness degrade clustering quality, as measured by standard metrics like the Silhouette Score?
- RQ5Can the proposed framework generalize to arbitrary fairness notions beyond the specific metrics used in prior work?
Key findings
- FHAC achieves significantly better fairness than vanilla HAC and the state-of-the-art AFHAC methods, with MFC values reduced by up to 70% on the creditcard and census datasets.
- On the creditcard dataset, FHAC achieves a balance score of 0.427, outperforming AFHAC-V (0.0) and AFHAC-R (0.416), indicating more equitable group representation.
- For the bank dataset, FHAC achieves a balance score of 0.5567, outperforming both AFHAC-V (0.9474) and AFHAC-R (0.0), demonstrating consistent fairness across metrics.
- FHAC maintains competitive clustering quality, with Silhouette Scores comparable to vanilla HAC and other fair algorithms, indicating minimal degradation in cluster cohesion and separation.
- The algorithm’s asymptotic time complexity is O(fn³), where f is the number of protected groups, making it scalable as f is typically small in practice.
- AFHAC-V and AFHAC-R fail to generalize to arbitrary fairness notions and show inconsistent performance across datasets, unlike the proposed FHAC framework.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.