Fair Feature Importance Scores via Feature Occlusion and Permutation

Camille Little, Madeline Navarro, Santiago Segarra, Genevera Allen

TL;DR

While standard feature importance metrics tell us which features drive a model's accuracy, they fail to identify which features drive its bias. This paper introduces two simple, model-agnostic metrics—based on feature permutation and occlusion—to quantify how individual features impact model fairness. By leveraging minipatch learning, the occlusion method can be computed efficiently without the prohibitive computational cost of retraining multiple models.

What Problem Does This Paper Address?

As machine learning models are increasingly deployed in high-stakes scenarios like hiring or credit scoring, understanding and mitigating algorithmic bias has become crucial. However, most models operate as "black boxes." Even if a sensitive attribute (such as race or gender) is explicitly removed from the training data, other features correlated with it can act as proxies, inadvertently introducing bias into the model's predictions.

While mature tools like SHAP or standard permutation importance can tell us which features impact a model's accuracy, we lack simple, scalable, and model-agnostic tools to see which features drive bias. Existing fairness-focused attribution methods are either computationally expensive or restricted to specific model types (like decision trees). This paper fills that gap by providing tools to pinpoint exactly which features are harming or helping model fairness.

Methods

The authors propose two model-agnostic metrics that can be paired with any standard fairness metric $h$ (such as demographic parity):

  1. Permutation-based Fair Importance ($\rho_{perm}$): This method measures the change in model fairness before and after randomly shuffling a specific feature's values across observations. Shuffling breaks the correlation between that feature and the target variable while preserving its marginal distribution.
  2. Occlusion-based Fair Importance ($\rho_{occl}$): This method takes a "leave-one-feature-out" approach, comparing the fairness of a model trained on all features against a model trained completely without the feature of interest.

Scaling via Minipatch Learning

The main downside to leave-one-out approaches is computational: training a separate model for every single feature is incredibly expensive for high-dimensional data. To solve this, the authors introduce a clever shortcut using Minipatch Learning.

Instead of training full models, they train an ensemble of $K$ models on random subsets of both rows (samples) and columns (features). To find the occlusion score for feature $j$, they simply average the fairness metrics of the ensemble models that happened to exclude feature $j$, and compare it to the overall ensemble average. This approach makes computing the fair occlusion score virtually "free" after the initial ensemble is trained.

Datasets

The authors evaluated their methods using three datasets:

  • Synthetic Data: A controlled dataset of 1,000 samples and 10 features (5 signal features, with the first 2 explicitly correlated with a binary protected attribute to inject bias) used for both classification and regression tasks.
  • Adult Income Dataset: A popular fairness benchmark containing 45,222 individuals and 96 one-hot-encoded features, used to predict whether an individual's income exceeds $50,000 (with Gender as the protected attribute).
  • German Credit Dataset: A dataset containing 1,000 observations and 56 one-hot-encoded features used to classify credit risk (with Gender as the protected attribute).

Key Insights and Ideas

  • The "Free" Occlusion Trick: Leveraging minipatch learning to extract feature importance without explicit retraining is a powerful reuse of ensemble diversity. If your ensemble randomly drops features anyway, you already have the data needed to calculate leave-one-out importance.
  • Visualizing the Fairness-Accuracy Tradeoff: The proposed metrics clearly highlight features that present an ethical dilemma. For instance, a feature might have a high positive accuracy score but a highly negative fairness score, signaling to engineers that relying on it boosts performance at the cost of equity.
  • Context-Dependent Tradeoffs: The conflict between fairness and accuracy isn't universal. In some datasets (like Adult Income), features are highly polarized. In others (like German Credit), key predictive features can also be relatively fair, showing that fairness and accuracy can sometimes be optimized simultaneously.

Key Results

  • Simulation Verification: In synthetic experiments, both permutation and occlusion metrics successfully flagged the biased features with strongly negative fairness scores, while correctly identifying predictive features with positive accuracy scores.
Figure 1: Classification and regression results are presented for accuracy, measured by classifica- tion error and MSE, and fairness, measured by demographic parity (Feldman et al., 2015), using a Random Forest model. Feature importance scores were computed using occlusion ρoccl and permu- tation ρperm metrics for both simulation types. In these simulations, the first five features are signal features associated with the outcome, while the first two are correlated with the protected attribute, introducing bias. Positive scores indicate that a feature improves fairness or accuracy, while neg- ative scores suggest the opposite. The magnitudes and directions of the scores align as expected, consistent with the simulation design.
  • Adult Income Dataset: The "Relationship: Husband" feature was flagged with the most negative fairness score, which aligns with intuition given its direct correlation with gender. Meanwhile, "Hours-per-week" demonstrated a clear tradeoff: it was highly important for accuracy but severely harmed fairness.
  • German Credit Dataset: In contrast to the Adult dataset, features like "Credit Amount" and "Duration (month)" were found to be both highly predictive and fair, indicating less inherent conflict between fairness and predictive power in this domain.
Figure 2: Random Forest interpretation using occlusion scores via minipatches for the Adult Income Dataset and German Credit dataset. The importance scores’ magnitudes and directions align with other studies done on these datasets.

Limitations and Future Work

  • Sample Size Sensitivity: The permutation-based method ($\rho_{perm}$) requires a reasonably large sample size to adequately decouple features from predictions, making it less reliable in low-sample regimes.
  • Single Feature Focus: The current metrics evaluate features in isolation. They do not capture complex, multi-feature interactions where bias only emerges when two or more specific features are combined. The authors note that extending these metrics to capture feature interactions is a primary direction for future work.

Summary updated

BibTeX
@misc{little2026fair,
  author = {Camille Little and Madeline Navarro and Santiago Segarra and Genevera Allen},
  title = {{Fair Feature Importance Scores via Feature Occlusion and Permutation}},
  year = {2026},
  eprint = {2602.09196},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.09196},
}
Figure