English

Counterfactually Fair Regression via Optimal Transport

Machine Learning 2026-05-28 v1 Computers and Society Machine Learning

Abstract

We consider the problem of learning a counterfactually fair regressor. We adopt a causal uncertainty view in which counterfactual fairness is defined with resampled noise. We focus on obtaining theoretical fairness guarantees for a new post-processing estimator. We begin by showing that counterfactual fairness is equivalent to satisfying demographic parity conditional on the latent variable. This allows us to provide a closed-form expression of the optimal fair regressor via a barycentric quantile map. In order to handle continuous latent variables, we propose a discretized post-processing method. Then, under mild regularity assumptions, we prove high-probability finite-sample fairness guarantees for our estimator, providing an unfairness decay at rate O~(n1/3)\tilde O(n^{-1/3}), and establishing a matching risk bound of order O~(n1/3)\tilde O(n^{-1/3}). We provide a matching lower bound on the excess risk of almost fair predictions. Finally, we extend our results to the setting of relaxed counterfactual fairness. We validate our approach on real-world and synthetic data.

Keywords

Cite

@article{arxiv.2605.28251,
  title  = {Counterfactually Fair Regression via Optimal Transport},
  author = {M. Generali Lince and S. Gaucher and J-J. Vie and P. Loiseau},
  journal= {arXiv preprint arXiv:2605.28251},
  year   = {2026}
}
R2 v1 2026-07-22T07:36:50.268Z