cs.AIApr 8, 2026

CAFP: A Post-Processing Framework for Group Fairness via Counterfactual Model Averaging

Authors: Irina Arévalo, Marcos Oliva

Organizations: School of Civil Engineering, Universidad Politecnica de Madrid, Profesor Aranguren 3, Madrid, 28040, Spain. · Bain&Company, Velazquez, Madrid, 28006, Spain.

Abstract

Ensuring fairness in machine learning predictions is a critical challenge, especially when models are deployed in sensitive domains such as credit scoring, healthcare, and criminal justice. While many fairness interventions rely on data preprocessing or algorithmic constraints during training, these approaches often require full control over the model architecture and access to protected attribute information, which may not be feasible in real-world systems. In this paper, we propose Counterfactual Averaging for Fair Predictions (CAFP), a model-agnostic post-processing method that mitigates unfair influence from protected attributes without retraining or modifying the original classifier. CAFP operates by generating counterfactual versions of each input in which the sensitive attribute is flipped, and then averaging the model's predictions across factual and counterfactual instances. We provide a theoretical analysis of CAFP, showing that it eliminates direct dependence on the protected attribute, reduces mutual information between predictions and sensitive attributes, and provably bounds the distortion introduced relative to the original model. Under mild assumptions, we further show that CAFP achieves perfect demographic parity and reduces the equalized odds gap by at least half the average counterfactual bias.

Figures & tables

Explore similar work

CardsList
  1. A Model Ensemble-Based Post-Processing Framework for Fairness-Aware Prediction

    Mar 19, 2026Zhouting Zhao, Tin Lok James NgAlgorithmic FairnessDebiased ML

  2. Tuning Derivatives for Causal Fairness in Machine Learning

    May 7, 2026Filip Edström, Guilherme W. F. Barros, Tetiana Gorbach +1Structural Causal ModelsAlgorithmic Fairness

  3. Do Fair Models Reason Fairly? Counterfactual Explanation Consistency for Procedural Fairness in Credit Decisions

    May 12, 2026Gideon Popoola, John SheppardFeature AttributionCounterfactual Explanations