FEAMOE: Fair, Explainable and Adaptive Mixture of Experts

Shubham Sharma, Jette Henderson, Joydeep Ghosh

TL;DR

FEAMOE is a novel "Mixture-of-Experts" framework designed to build machine learning models that are simultaneously fair, explainable, and capable of adapting to data drift. By combining simple linear experts with fairness-constrained online learning, it matches the accuracy of complex neural networks while providing significantly faster explanations and superior resilience to changes in data distribution over time.

What Problem Does This Paper Address?

Deploying machine learning in high-stakes environments (like lending or recidivism prediction) requires more than just high accuracy. Models must be trustworthy, which typically implies three things:

  1. Fairness: They shouldn't discriminate against protected groups.
  2. Explainability: Stakeholders need to understand why a decision was made.
  3. Adaptability: They must handle "drift"—changes in data patterns after the model is deployed.

While accuracy drift is well-studied, this paper highlights a neglected problem: fairness drift. A model that is fair at the time of training may become biased as the underlying population or data characteristics shift. Furthermore, there is often a trade-off: complex models like neural networks are accurate but hard to explain and prone to "catastrophic forgetting" when updated with new data. Conversely, simple linear models are explainable but often lack the predictive power needed for complex tasks.

Methods

The authors propose FEAMOE (Fair, Explainable and Adaptive Mixture of Experts). The core idea is to use a Mixture of Experts (MoE) architecture where a "gating network" decides which "expert" (a simple sub-model) should handle a specific region of the input space.

Key technical innovations include:

  • Fairness-Aware Loss Function: The training objective incorporates three distinct fairness penalties: Statistical Parity Difference (SPD), Average Odds Difference (AOD), and a recourse-based "Burden" constraint.
  • Incremental Expert Growth: Instead of training a static model, FEAMOE adds new experts as new data arrives in a streaming fashion. This allows the model to adapt to local changes in data (drift) without needing to retrain the entire system.
  • Fast Shapley Value Explanations: The authors mathematically prove that the Shapley values (a popular feature attribution method) for the entire MoE model are simply a weighted combination of the Shapley values of the individual experts. By using linear models as experts, FEAMOE can generate exact explanations orders of magnitude faster than standard methods like KernelSHAP.
Figure 1: A toy example demonstrating the need and use of FEAMOE. The color of every datapoint corresponds to the original class label. Diamonds represent the underprivileged group and circles represent the privileged group. (a) Represents a perfectly accurate linear classifier, (b) represents the same classifier mis-classifying new data points and inducing bias (drift), (c) represents an alternate non-linear model that corrects for drift but has a complex decision boundary and (d) represents FEAMOE where the blue and pink regions show the regions of operation for each of the two experts, separated by the gating network

Datasets

The framework was evaluated on three key datasets:

  1. UCI Adult: A standard fairness benchmark for predicting whether an individual's income exceeds $50k.
  2. COMPAS: A dataset used to predict the likelihood of a defendant re-offending, known for exhibiting racial bias.
  3. HMDA (Home Mortgage Disclosure Act): A massive, multi-year dataset of mortgage applications. This was crucial for the drift study, as it reflects real-world changes in lending patterns over a decade.

Key Insights and Ideas

  • Fairness is not static: The study of the HMDA dataset provides empirical evidence that fairness metrics degrade over time just like accuracy does. "Fairness drift" is a real phenomenon that practitioners must monitor.
  • The Power of Local Linearity: By using a mixture of linear experts, FEAMOE achieves a non-linear global decision boundary (matching neural network performance) while remaining locally linear. This local linearity is the "secret sauce" for fast, high-quality explanations.
  • Loosely Coupled Adaptation: Because experts are localized to specific regions of the data, the model can adapt to drift by adding or updating only a few experts. This avoids the "catastrophic forgetting" often seen when fine-tuning large neural networks on new data.
  • Burden as a Proxy: Interestingly, the authors found that optimizing for "burden-based fairness" (the effort required for an individual to change their outcome) often improved other fairness metrics like demographic parity and equalized odds simultaneously.

Key Results

  • Accuracy vs. Fairness: On the UCI Adult dataset, FEAMOE achieved accuracy comparable to neural networks (~83%) but reduced bias metrics (like SPD) by more than 60% compared to standard models.
  • Handling Real-World Drift: In the multi-year HMDA study, FEAMOE consistently maintained higher accuracy and lower bias than "fixed" neural networks (trained on old data) and even "trainable" neural networks updated online.
  • Explanation Speedup: FEAMOE generated Shapley value explanations roughly 10 to 25 times faster than KernelSHAP. For 100 instances, FEAMOE took ~34 seconds compared to nearly 15 minutes for high-precision KernelSHAP.

Limitations and Future Work

While FEAMOE is powerful, the authors note some areas for further exploration:

  • Expert Selection: The current version adds experts at fixed intervals (every $k$ data points). While they tested a version that adds experts based on performance saturation, more sophisticated triggers for adding experts could be developed.
  • Expert Complexity: The fast explainability benefit relies on using linear experts. If neural networks were used as experts, the computational advantage for SHAP values would vanish.
  • Broader Drift Types: The authors suggest extending the framework to handle other forms of drift, such as those affecting a model's adversarial robustness.

Overall, FEAMOE represents a significant step toward "Responsible AI" by providing a practical framework that doesn't force engineers to choose between performance, fairness, and interpretability.

Summary updated

Abstract

Three key properties that are desired of trustworthy machine learning models deployed in high-stakes environments are fairness, explainability, and an ability to account for various kinds of "drift". While drifts in model accuracy, for example due to covariate shift, have been widely investigated, drifts in fairness metrics over time remain largely unexplored. In this paper, we propose FEAMOE, a novel "mixture-of-experts" inspired framework aimed at learning fairer, more explainable/interpretable models that can also rapidly adjust to drifts in both the accuracy and the fairness of a classifier. We illustrate our framework for three popular fairness measures and demonstrate how drift can be handled with respect to these fairness constraints. Experiments on multiple datasets show that our framework as applied to a mixture of linear experts is able to perform comparably to neural networks in terms of accuracy while producing fairer models. We then use the large-scale HMDA dataset and show that while various models trained on HMDA demonstrate drift with respect to both accuracy and fairness, FEAMOE can ably handle these drifts with respect to all the considered fairness measures and maintain model accuracy as well. We also prove that the proposed framework allows for producing fast Shapley value explanations, which makes computationally efficient feature attribution based explanations of model decisions readily available via FEAMOE.
BibTeX
@inproceedings{sharma2023feamoe,
  author = {Shubham Sharma and Jette Henderson and Joydeep Ghosh},
  title = {{FEAMOE: Fair, Explainable and Adaptive Mixture of Experts}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.24963/ijcai.2023/55},
}
Figure