Abstract
Discrimination mitigation in machine learning is often complicated by intersectional and multi-valued sensitive attributes. We propose the Harmonic Fairness measure via Manifolds (HFM), which utilizes a manifold perspective and Hausdorff distance to quantify discrimination. To address the $O(n^2)$ computational bottleneck of distance calculations, we introduce ApproxDist and ExtendDist, approximation algorithms that reduce complexity to $O(n \log n)$. Our results show that HFM is highly correlated with model performance metrics and provides a scalable solution for complex fairness evaluation.
1. Introduction
Most standard fairness metrics focus on single, binary sensitive attributes. In reality, discrimination is often intersectional; a model might be "fair" regarding gender alone but biased when looking at the combination of race, age, and education. Furthermore, many attributes like race or geography are non-binary. This paper introduces HFM to mathematically define fairness for multiple non-binary attributes and provides scalable algorithms to calculate it.
2. The HFM Metric and Manifold Perspective
HFM views datasets through a manifold perspective, treating each demographic group as a distinct shape in high-dimensional space. Fairness is measured by the distance between these shapes using the Hausdorff Distance. Crucially, HFM compares the bias in model predictions to the bias already present in the raw data, allowing researchers to detect if a model is amplifying historical prejudices.
3. Scalability via Random Projections
Calculating distances for $n$ data points typically takes $O(n^2)$ time. We propose ApproxDist and ExtendDist, which use random projections to "flatten" high-dimensional data onto a 1D line. Because similar points tend to stay close after projection, the algorithms only need to check a few neighbors, reducing complexity to $O(n \log n)$. Theoretical and empirical analysis shows these approximations maintain a correlation of over 0.97 with exact calculations.
4. Experimental Evaluation
We validated HFM on five public datasets (Ricci, Credit, Income, PPR, and PPVR) containing multiple sensitive attributes.
4.1 Correlation with Performance
HFM demonstrates significant sensitivity to performance metrics, such as the $f_1$ score, compared to traditional metrics like Demographic Parity (DP). This suggests that HFM is a more sensitive indicator of how bias impacts model utility across diverse groups, particularly in multi-valued scenarios.
4.2 Fairness-Accuracy Trade-offs
HFM can be used to visualize the trade-off between model performance and ethical constraints. By plotting a weighted sum of error rate and fairness, practitioners can better navigate the "fairness-accuracy" frontier and choose models that balance these competing objectives.
5. Conclusion
HFM offers a holistic view of model behavior by accounting for how different sensitive attributes interweave. Its high fidelity and computational efficiency make it a practical tool for auditing large-scale machine learning models in complex, real-world scenarios.
Summary updated