Introduction
Clustering is a fundamental task in machine learning, but traditional objectives like $k$-means or $k$-median often prioritize global optimization at the expense of individual data points. This paper addresses the challenge of individually fair $k$-clustering in the presence of outliers. By developing a novel linear programming (LP) framework and a specialized rounding technique, the authors provide the first constant-factor approximation for this problem, ensuring that noisy data does not compromise equity for the broader population.
Individual Fairness and the Outlier Challenge
In the context of algorithmic fairness, "individual fairness" dictates that every data point is entitled to a cluster center within a reasonable distance. Specifically, for a dataset of $n$ points and a target of $k$ clusters, a point's "fair radius" is defined as the distance to its $(n/k)$-th nearest neighbor. The goal is to find $k$ centers such that every point has a center within its fair radius.
However, real-world datasets are rarely clean. Outliers—whether due to measurement errors or rare events—can significantly disrupt these fairness constraints. A single outlier located far from the main data distribution can "hijack" the algorithm, forcing it to place a center in a suboptimal location to satisfy that outlier's fairness requirement. This can lead to a drastic increase in total clustering cost or violations of fairness for many other points.
Methodology: The IFXO Framework
The authors propose the IFXO (Individual Fairness Excluding Outliers) framework, which integrates outlier detection directly into the clustering optimization process. The framework consists of three primary stages:
- Linear Programming Formulation: The authors define an LP that introduces a variable $z_v$ for each point $v$, representing the degree to which $v$ is considered an outlier. The objective is to minimize the clustering cost while ensuring that any point not designated as an outlier ($z_v = 0$) is assigned to a center within a constant factor of its fair radius.
- The
OutRoundAlgorithm: Solving the LP yields fractional assignments. TheOutRoundprocedure identifies points with high $z_v$ values and formally marks them as outliers. A critical innovation here is the "mass reassignment" trick: if the LP suggests placing a fractional center on an outlier,OutRoundreassigns that center's "mass" to the nearest inlier. This maintains the budget of $k$ centers while only slightly increasing the fair radius violation (by a factor of 2, as proven in Lemma 1). - Final Rounding: After outliers are removed, the remaining fractional assignments are converted into $k$ discrete cluster centers using an existing rounding algorithm,
FairRound.
Experimental Evaluation
The researchers evaluated IFXO on three standard benchmarks from the UCI Machine Learning Repository: Bank (marketing data), Adult (census data), and Diabetes (hospitalization records). To simulate real-world noise, they artificially introduced outliers by adding uniform noise to the features of 1% of the sampled data.
The performance of IFXO was compared against a two-stage baseline that first uses an Isolation Forest to remove outliers and then applies a standard fair clustering algorithm.
Results and Discussion
The paper provides both strong theoretical guarantees and empirical evidence of the framework's effectiveness:
- Theoretical Bounds: The algorithm achieves a 12-approximation for $k$-means cost and a 24-approximation for $k$-median cost. For fairness, it guarantees a 16-approximation of the fair radius for all inliers.
- Empirical Performance: IFXO consistently outperformed the baseline in two key areas:
- Lower Clustering Costs: By integrating outlier detection into the LP, the algorithm is more "aware" of the clustering objective, leading to more efficient center placement.
- Enhanced Fairness: The maximum fairness radius for inliers was significantly lower than that achieved by the baseline, demonstrating that the LP-based filtering is more effective at identifying the specific points that most negatively impact fairness.
Conclusion and Future Work
The IFXO framework represents a significant step forward in robust, fair clustering. By treating outlier detection as an integral part of the fairness optimization problem rather than a preprocessing step, it achieves a superior balance between cost and equity.
A current limitation is the computational complexity of solving large-scale LPs, which necessitated the use of sampling in experiments. Future research may focus on optimizing these computations through techniques like "coresets" or establishing formal upper bounds on the number of outliers detected by the OutRound algorithm.
Summary updated