Abstract
As machine learning models increasingly impact society, their opaque nature poses challenges to trust and accountability, particularly in fairness contexts. Understanding how individual features influence model outcomes is crucial for building interpretable and equitable models. While feature importance metrics for accuracy are well-established, methods for assessing feature contributions to fairness remain underexplored. We propose two model-agnostic approaches to measure fair feature importance. First, we propose to compare model fairness before and after permuting feature values. This simple intervention-based approach decouples a feature and model predictions to measure its contribution to training. Second, we evaluate the fairness of models trained with and without a given feature. This occlusion-based score enjoys dramatic computational simplification via minipatch learning. Our empirical results reflect the simplicity and effectiveness of our proposed metrics for multiple predictive tasks. Both methods offer simple, scalable, and interpretable solutions to quantify the influence of features on fairness, providing new tools for responsible machine learning development.
Introduction
While feature importance metrics like SHAP or permutation tests are standard for understanding model accuracy, a significant gap exists regarding fairness. When an auditing tool identifies bias in a deployed model—such as failing demographic parity—developers often lack the tools to pinpoint which specific input features are driving that unfairness. Existing methods for fair feature attribution are frequently computationally prohibitive or restricted to specific model architectures. This paper introduces two model-agnostic "fair feature importance" scores to measure how individual inputs impact model fairness, allowing for informed feature selection and auditing.
Methodology
The proposed framework introduces two primary metrics where a negative score indicates a feature harms fairness, while a positive score indicates it improves it.
- Permutation-based Score ($\rho_{perm}$): This method compares the fairness of a model trained on original data against one trained on data where the target feature's values are randomly shuffled. This breaks the relationship between the feature and the target while preserving the feature's distribution.
- Occlusion-based Score ($\rho_{occl}$): This approach compares the fairness of a model trained with all features against one trained without the target feature.
To overcome the computational burden of training $M+1$ separate models for occlusion scores, the authors utilize minipatch learning. By training an ensemble on small subsets of data and features, they can evaluate the fairness of the ensemble using only the models that excluded a specific feature. This allows for the simultaneous computation of occlusion scores for all features with zero additional training overhead.
Experimental Results
Synthetic Validation
The metrics were first validated on a synthetic dataset designed with 10 features: five predictive "signal" features and two features explicitly correlated with a sensitive attribute to introduce bias. As shown in Figure 1, both permutation and occlusion metrics successfully assigned strongly negative fairness scores to the two biased features while maintaining positive accuracy scores for the signal features.
Real-World Benchmarks: Adult and German Credit
The methods were applied to the UCI Adult Income and UCI German Credit datasets to identify feature-specific fairness-accuracy tradeoffs.
- Adult Income Dataset: The method identified "Relationship: Husband" as the most biased feature, yielding the most negative fairness score. This aligns with expectations as the protected attribute is Gender. Features like "hours-per-week" were found to be highly important for accuracy but detrimental to fairness.
- German Credit Dataset: In contrast, the German Credit model achieved high fairness (0.94). The importance scores confirmed that the most predictive features, such as "Credit Amount" and loan duration, had neutral or even positive impacts on fairness, suggesting that predictive power does not always necessitate a fairness tradeoff.
Conclusion
By adapting minipatch learning to fairness evaluation, this research transforms computationally prohibitive leave-one-out inference into a scalable auditing tool. The results demonstrate that fairness-accuracy tradeoffs are highly feature-specific and context-dependent. Future work will extend these metrics to measure the bias contributions of multiple features simultaneously, accounting for complex feature interactions that may compound unfairness.
Summary updated