Abstract
Standard clustering algorithms often fail to account for individual fairness or the presence of outliers, leading to suboptimal or inequitable results. This paper introduces LSFO (Local Search for Fair Clustering with Outliers), a scalable algorithm that provides an $O(1)$-approximation guarantee for $k$-means clustering under individual fairness constraints. By combining a novel initialization strategy with randomized local search, LSFO achieves significantly lower clustering costs than previous state-of-the-art methods on large-scale real-world datasets.
The Challenge of Fair Clustering with Outliers
Traditional $k$-means clustering aims to minimize the sum of squared distances between points and their nearest centers. However, this objective can be indifferent to individual fairness. A common definition of individual fairness requires that for a dataset of size $n$, every point $v$ must have at least one cluster center within its $n/k$ nearest neighbors. This ensures that every individual receives a level of service proportional to the local density of the population.
Real-world data often contains outliers—points that are either erroneous or represent rare anomalies. These points pose a dual threat: they can make fairness constraints mathematically impossible to satisfy (infeasibility) or force the algorithm to select centers that serve the outliers at the expense of the broader population (suboptimality). Existing solutions typically rely on Linear Programming (LP), which does not scale to datasets beyond a few thousand points.
The LSFO Algorithm
LSFO addresses these challenges through a two-stage process designed for both theoretical robustness and practical scalability.
1. Initialization via Anchor Zones
The algorithm begins with a stage called BaseCent. It identifies "fairness-based outliers"—isolated points that would require excessive distortion to satisfy fairness. Using a greedy set-cover approach, it establishes "anchor zones." These are specific regions where at least one center must be placed to ensure that the remaining population satisfies a relaxed version of the fairness constraint.
2. Refined Local Search
Following initialization, LSFO performs a randomized, constrained local search. It iteratively attempts to swap current centers with new candidates from the dataset. A swap is only accepted if it significantly reduces the total $k$-means cost while continuing to satisfy the anchor zone constraints. This allows the algorithm to explore the solution space efficiently while maintaining fairness guarantees.
3. Dual Outlier Handling
LSFO distinguishes between two categories of outliers:
- Fairness-based outliers: Discarded during initialization because they are too isolated to be served fairly without compromising the entire model.
- Cost-based outliers: Discarded during the local search because their extreme distance from any reasonable center would disproportionately inflate the total cost.
Experimental Evaluation
The authors evaluated LSFO on three major datasets from the UCI Machine Learning Repository: Adult (40k points), Bank (40k points), and Skin (240k points). To test robustness, they introduced synthetic outliers by adding uniform noise to 1% of the data.
Key Results
- Superior Performance: As demonstrated in Figure 1, LSFO consistently achieves the lowest $k$-means cost across all tested datasets compared to other state-of-the-art fair clustering algorithms like ICML20 and NeurIPS21 variants.
- Scalability and Efficiency: Unlike LP-based methods that struggle with large datasets, LSFO handles hundreds of thousands of points. For instance, on the Adult dataset with $k=30$, LSFO provides a solution in approximately one hour, whereas LP methods are often computationally prohibitive.
- Cost Advantages over LP: Figure 2 shows that even at smaller scales, LSFO provides lower cost solutions than traditional Linear Programming approaches.
Conclusion and Future Work
LSFO represents a significant step forward in making fair clustering practical for large-scale applications. By providing an $O(1)$-approximation guarantee and demonstrating strong empirical results, the authors show that fairness and efficiency are not mutually exclusive.
Future research may focus on tightening the theoretical bounds for discarded outliers and extending this local search framework to other fairness definitions, such as group-based balance constraints. Additionally, while LSFO shows robustness to its internal parameters ($\gamma$ and $\epsilon$), automated methods for selecting the optimal number of outliers to discard remain an open area for practical implementation.
Summary updated