Tuning Derivatives for Causal Fairness in Machine Learning
Filip Edström, Guilherme W. F. Barros, Tetiana Gorbach, Xavier de Luna · 2026
Read Tuning Derivatives for Causal Fairness in Machine Learning by Filip Edström, Guilherme W. F. Barros, Tetiana Gorbach, Xavier de Luna (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-05882.txt.
Introduction
Parity rules demand predictions independent of protected traits, but sometimes a trait fairly shapes outcomes through approved middle steps. Filip Edström, Guilherme W. F. Barros, Tetiana Gorbach, and Xavier de Luna work on causal fairness rules that separate allowed from forbidden influence paths. Existing path-based rules cope mainly with grouped traits.
The authors use tuning derivatives to extend the framework, measuring how predictions shift along each causal route. Their approach pairs parity with predictive parity, asking the model to keep fair influence while cutting the rest. Continuous traits come within reach of the same analysis.
Catalog record
| CREATOR | Filip Edström, Guilherme W. F. Barros, Tetiana Gorbach, Xavier de Luna |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 70 KB |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2605.05882
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Tuning Derivatives for Causal Fairness in Machine Learning Filip Edström, Guilherme W. F. Barros, Tetiana Gorbach, Xavier de Luna Abstract Artificial-intelligence systems are becoming ubiquitous in society, yet their predictions typically inherit biases with respect to protected attributes such as race, gender, or age. Classical fairness notions, most notably Statistical Parity (SP), demand that predictions be independent of the protected attributes, but are overly restrictive when these attributes influence mediating variables that are considered business necessities. Recent causal formulations relax SP by distinguishing allowed from not-allowed causal paths and by complementing SP with Predictive Parity (PP), requiring the predictor to replicate the legitimate influence of business-necessities. Existing path-based definitions are mainly practical when applied to categorical attributes. This paper introduces a new framework for fairness in structural causal models that is tailored to continuous protected attributes. We formalize SP and PP through path-specific partial derivatives, establish conditions under which these criteria coincide with prior causal definitions, and characterize when a fair predictor, one that satisfies SP along not-allowed paths while achieving PP along allowed paths, exists. Building on this theory, we propose a fair tuning algorithm that either constructs such a predictor or, when not possible, allows for a trade-off between SP and PP. We present experiments on simulated and real data to evaluate our proposal, compare it with previously proposed methods, and show that it performs better when PP is considered. keywords Structural Causal Models, Path-Specific Effects, Causal Fairness, Statistical Parity, Predictive Parity 1 Introduction Artificial-Intelligence (AI) systems are increasingly being incorporated into decision-making processes. Yet, AI systems have been criticized for replicating discriminatory behaviors observed in society, for example, racial bias in the COMPAS recidivism risk assessment, gender bias in Amazon’s hiring system, and bias with respect to age ( 21 ) . 1 1 1 ”Machine Bias—Risk assessments in criminal sentencing,” ProPublica , https://www.propublica.org/article/machine-bias-risk-assessments-in-criminal-sentencing , accessed June 18, 2025. 2 2 2 ”Amazon scrapped ’sexist AI’ tool,” BBC , https://www.bbc.com/news/technology-45809919 , accessed June 18, 2025. When regulation or ethical aspects do not allow replicating bias with respect to a feature, for example, age, then we call such a feature a “protected attribute”. Fairness in machine learning is the field devoted to defining metrics to evaluate biases with respect to protected attributes and to finding ways to develop AI systems that avoid or minimize biases existing in the data used to create these systems. Consider situations where a data-driven predictor \widehat{Y} for a variable of interest Y is obtained using data for which one or several protected attributes \mathbf{X} are related to Y . Several definitions of what constitutes fair predictors have been proposed, see 3 for an overview. An early and intuitive fairness condition, Statistical Parity (SP) ( 6 ) , requires that predictions be independent of protected attributes, that is, \widehat{Y}\mbox{$\perp\!\!\!\!\perp$}\mathbf{X} . However, this condition may be too strict if the protected attributes depend on other attributes that are deemed necessary for prediction, called “business necessities” in 17 and “resolving variables” in 9 . As an example, consider a recidivism risk assessment system, such as COMPAS, which produces a risk score \widehat{Y} indicating the probability of recidivism for an offender based on the features age, A , race, R , and the number of prior offenses, P , all dependent on each other. Let R and A be protected attributes, while P is a business necessity. In this case, our ideal goal would be to design a prediction algorithm \widehat{Y} that relies on P , but not on A and R (see Figure 1 ). However, satisfying SP in A and R when they are related to P is not possible without excluding P . To offer a solution to this problem and allow for more flexibility than SP, we need to consider how the attributes are related to each other and Y . Unfair process A R P Y Data A R P Y a_{1} r_{1} p_{1} y_{1} \vdots a_{n} r_{n} p_{n} y_{n} Fair predictor A R P \widehat{Y} Observe Learn Figure 1 : The problem of creating a fair predictor from data. We observe data from a biased process, with not-allowed paths (red, squiggly arrows) from the protected attributes A,R to the outcome Y . Fair prediction removes the not-allowed path, but maintains the allowed paths (green, straight arrows). For this purpose, we use Structural Causal Models (SCMs) ( 15 ) . Such models allow us to decompose the way protected attributes relate to Y into causal paths ( 26 ; 9 ; 11 ; 14 ; 25 ; 4 ; 23 ; 16 ) . In our example, this means considering the paths that represent the direct effect of A and R on Y , illustrated A\to Y,R\to Y , as not-allowed paths and the ones that represent indirect effects through P , A\to P\to Y and R\to P\to Y , as allowed paths, see Figure 1 . Recently, 17 not only constrained how the not-allowed paths are modeled, but also how the allowed paths are modeled through the concept of Predictive Parity (PP) ( 5 ) . For example, PP with respect to P states that the predictor \widehat{Y} should capture all the variance in Y due to P , that is, Y\mbox{$\perp\!\!\!\!\perp$}P\mid\widehat{Y} . 17 define SP and PP in terms of contrasts, that is, the change in a variable of interest due to a discrete change in another variable, and suggests to constrain predictors to satisfy such a causal SP along contrasts over not-allowed paths and causal PP over contrasts along allowed paths. Common to most of the fairness literature based on causal contrasts is that it is most suitable for categorical protected attributes such as gender or race. However, when considering continuous protected attributes, such as age, causal contrasts must be evaluated at many points, which is impractical. Two exceptions presenting definitions that are readily applicable to continuous protected attributes are given in 12 and 8 , although these do not explicitly consider predictive parity. In this paper, we contribute as follows: We define SP and PP in terms of partial derivatives along paths to specifically address continuous attributes. We show under which conditions our definitions imply previous causal definitions in 17 and define a fair predictor in terms of our concepts of SP and PP along allowed and not-allowed paths, respectively. We formulate a necessary and sufficient condition under which such a fair predictor exists and propose a tuning algorithm that constructs such a fair predictor when it exists. When the latter does not exist, the algorithm offers a flexible compromise between statistical and predictive parity. The rest of the paper is structured as follows. In Section 2 we provide relevant background theory, define our novel concepts of statistical and predictive parity in terms of partial derivatives, and provide theoretical properties. In Section 3 we introduce an algorithm tuning SP and PP for fair prediction. We study this algorithm on neural network predictors in Section 4 using numerical experiments. We also give comparisons with earlier methods proposed in 12 and 8 . In Section 5 , we use the COMPAS dataset to illustrate the use of the introduced fair tuning algorithm and compare our novel concepts of SP and