Model ensemble via counterfactual explanation

Machine learning models are increasingly used in high-stakes decisions across finance, healthcare, hiring, and the justice system. However, these models often exhibit substantial disparities in fairness across sensitive demographic groups. This has amplified concerns about their inherent biases and the need for fairness-aware solutions. Ensemble learning methods, such as boosting, bagging, and voting, help mitigate bias and yield more balanced decisions than single classifiers. However, these benefits can come at the cost of reduced accuracy. This paper introduces a novel framework for constructing model ensembles using counterfactual explanations (CE) to optimize both fairness and accuracy. Specifically, we use CE analysis to measure each model’s response to different feature spaces, thereby demonstrating their strengths and weaknesses in different subregions of the feature space. Then we combine complementary models to form an ensemble, where each model’s strength lies in different subregions of the feature space and complements the weaknesses of the others. Given this analysis, we drastically reduce the number of models in the ensemble by focusing on models with complementary behaviors. In addition, we propose two model-aware metrics: a novel counterfactual robustness score derived from the stability of a model’s decision boundary under counterfactual perturbations, and a fairness metric that quantifies the “burden” a model imposes on different demographic groups. These metrics are integrated into a multi-objective optimization framework to select a small, complementary subset of pre-trained models ( m ) from a larger pool ( N ). The resulting Pareto Front enables transparent navigation of the trade-offs among accuracy, robustness, and fairness. Extensive experiments on six public datasets with six ML models demonstrate that our counterfactual-based ensembles, though significantly smaller, consistently reduce the fairness burden and improve model robustness while maintaining or even enhancing predictive accuracy compared to larger, conventionally-formed ensembles. The codes are publicly available here https://github.com/Yinkpeace/ce_ensemble.git .

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-11-26
DOI
https://doi.org/10.1038/s41598-026-79986-x
Primary Topic
Explainable Artificial Intelligence (XAI)
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Model ensemble via counterfactual explanation

Oladayo Solomon Ajani, Siba Kumar Udgata, Rammohan Mallipeddi, Adeyinka Peace Adedigba
Scientific Reports
Explainable Artificial Intelligence (XAI)
article

Model ensemble via counterfactual explanation

Oladayo Solomon Ajani, Siba Kumar Udgata, Rammohan Mallipeddi, Adeyinka Peace Adedigba
article en

Abstract

Machine learning models are increasingly used in high-stakes decisions across finance, healthcare, hiring, and the justice system. However, these models often exhibit substantial disparities in fairness across sensitive demographic groups. This has amplified concerns about their inherent biases and the need for fairness-aware solutions. Ensemble learning methods, such as boosting, bagging, and voting, help mitigate bias and yield more balanced decisions than single classifiers. However, these benefits can come at the cost of reduced accuracy. This paper introduces a novel framework for constructing model ensembles using counterfactual explanations (CE) to optimize both fairness and accuracy. Specifically, we use CE analysis to measure each model’s response to different feature spaces, thereby demonstrating their strengths and weaknesses in different subregions of the feature space. Then we combine complementary models to form an ensemble, where each model’s strength lies in different subregions of the feature space and complements the weaknesses of the others. Given this analysis, we drastically reduce the number of models in the ensemble by focusing on models with complementary behaviors. In addition, we propose two model-aware metrics: a novel counterfactual robustness score derived from the stability of a model’s decision boundary under counterfactual perturbations, and a fairness metric that quantifies the “burden” a model imposes on different demographic groups. These metrics are integrated into a multi-objective optimization framework to select a small, complementary subset of pre-trained models ( m ) from a larger pool ( N ). The resulting Pareto Front enables transparent navigation of the trade-offs among accuracy, robustness, and fairness. Extensive experiments on six public datasets with six ML models demonstrate that our counterfactual-based ensembles, though significantly smaller, consistently reduce the fairness burden and improve model robustness while maintaining or even enhancing predictive accuracy compared to larger, conventionally-formed ensembles. The codes are publicly available here https://github.com/Yinkpeace/ce_ensemble.git .

Scientific Reports
Kyungpook National University (KR), University of Hyderabad (IN)
Explainable Artificial Intelligence (XAI)
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon