Abstract
Clustering is a fundamental machine learning technique used for critical decision-making. However, standard algorithms often fail to maintain demographic balance, leading to biased outcomes. While "fair clustering" frameworks exist, they typically suffer from quadratic computational complexity, rendering them unusable for large-scale datasets. This paper presents a novel algorithm for fairlet decomposition that operates in near-linear time, $O(n \log n)$, by leveraging tree embeddings. Empirical results on datasets with millions of points demonstrate that this approach achieves significant speedups while maintaining high clustering quality.
Introduction
Standard clustering objectives, such as $k$-median, focus exclusively on minimizing the distance between data points and their respective centers. In high-stakes applications like mortgage approval or recidivism prediction, this can result in clusters that disproportionately represent specific demographic groups. To address this, researchers previously introduced the concept of "fairlets"—small, balanced subsets of data that serve as building blocks for fair clusters.
The primary challenge has been the computational cost of generating these fairlets. Original algorithms scaled quadratically ($O(n^2)$), making them impractical for modern "big data" applications. This work bridges the gap between theoretical fairness and practical scalability.
Methodology: Fast Fairlet Decomposition
The core contribution of this research is a scalable algorithm for fairlet decomposition. The process involves three primary stages:
- Hierarchically Well-Separated Tree (HST) Embedding: The input points are embedded into a tree structure where the distance between nodes approximates the Euclidean distance in the original space.
- Top-Down Recursive Matching: The algorithm traverses the tree to match points of different sensitive attributes (e.g., red and blue) locally within nodes.
- Fairlet Formation: Points that cannot be balanced at a leaf node are "pushed up" to the parent node for matching at a higher level of the hierarchy.
By transforming the spatial search into a tree traversal, the complexity is reduced to $O(d \cdot n \log n)$. This allows the algorithm to handle massive datasets that were previously inaccessible to fair clustering techniques.
Experimental Evaluation
The authors evaluated the algorithm on several standard datasets, including the Census II dataset containing over 2.4 million points.
Key Results
- Scalability: On the Census II dataset, the algorithm completed in approximately 12.5 minutes. In contrast, a quadratic algorithm would require days or weeks to process the same volume of data.
- Performance: Empirical tests confirmed that the runtime scales near-linearly with the number of data points.
- Quality: Despite the use of tree-based approximations, the total distance cost of the resulting clusters remained competitive with existing slow heuristics. For instance, on the Diabetes dataset, the proposed algorithm significantly outperformed the baseline in terms of cost.
Conclusion and Future Work
This work demonstrates that fairness constraints do not necessarily preclude scalability. By utilizing HSTs, the authors show that fairness can be addressed locally within a hierarchy without sacrificing global accuracy. While the theoretical approximation factor is logarithmic, empirical performance suggests it is a highly effective tool for real-world applications. Future research may explore extending this framework to weighted points or integrating it with other data reduction techniques like core-sets.
Summary updated