← Latest papers
📊 statistics

Tuning Derivatives for Causal Fairness in Machine Learning

This paper introduces a novel framework for causal fairness tailored to continuous protected attributes by formalizing Statistical and Predictive Parity through path-specific partial derivatives, enabling the construction of fair predictors that balance independence from discriminatory paths with the preservation of legitimate business influences.

Original authors: Filip Edström, Guilherme W. F. Barros, Tetiana Gorbach, Xavier de Luna

Published 2026-05-08
📖 5 min read🧠 Deep dive

Original authors: Filip Edström, Guilherme W. F. Barros, Tetiana Gorbach, Xavier de Luna

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are hiring a chef to cook a meal for a large group of people. You want the food to be delicious (accurate), but you also want to make sure the chef isn't secretly favoring one group of diners over another based on their race, gender, or age. This is the core problem of fairness in Artificial Intelligence.

This paper tackles a specific, tricky version of that problem: How do we stop an AI from being biased against certain people, while still letting it use important information that happens to be linked to those people?

Here is the breakdown of their solution, using simple analogies.

The Problem: The "Business Necessity" Dilemma

Imagine a judge using an AI to decide if a criminal offender is likely to re-offend.

  • The Protected Attributes: The offender's Race and Age. The law says the AI cannot use these to make a decision.
  • The Business Necessity: The number of Prior Offenses. The judge needs to know this to make a fair prediction.

Here's the catch: In the real world, a person's race or age often influences how many prior offenses they have recorded (due to historical biases in policing).

  • If the AI ignores "Prior Offenses" to avoid being biased by "Race," it becomes a terrible judge (it misses important facts).
  • If the AI uses "Prior Offenses," it might accidentally "learn" the bias from "Race" and become unfair again.

The Old Way vs. The New Way

The Old Way (Statistical Parity):
This is like telling the chef, "You must serve the exact same dish to everyone, no matter who they are." If the chef tries to do this, they might have to ignore the fact that some people are allergic to nuts (a "business necessity" for safety). The result is a meal that is "fair" in a strict sense but useless or even dangerous.

The New Way (Causal Fairness):
This paper proposes a smarter approach. It says: "The AI can look at 'Prior Offenses' (the allowed path), but it must ignore the direct link from 'Race' to the final decision (the forbidden path)."

However, most previous methods for doing this only worked well when the protected attributes were simple categories (like "Male" or "Female"). They struggled with continuous attributes like Age (where you can be 20, 20.1, 20.2, etc.).

The Solution: "Tuning the Knobs" with Derivatives

The authors introduce a new mathematical tool called Derivatives.

Think of an AI model as a complex machine with many knobs and levers.

  • Statistical Parity (SPD): The authors want to turn the "knob" for the forbidden path (Race \to Decision) so that turning it does nothing to the output. In math terms, the "derivative" (the rate of change) is zero. If you change the race slightly, the prediction shouldn't budge.
  • Predictive Parity (PPD): At the same time, they want to make sure the "knob" for the allowed path (Prior Offenses \to Decision) is turned just right. The AI should react to "Prior Offenses" exactly as the real world does.

The Analogy of the Tightrope:
Imagine walking a tightrope.

  • On one side is Fairness (ignoring the bias).
  • On the other side is Accuracy (using the necessary data).
  • Sometimes, the rope is straight, and you can walk perfectly on both sides at once.
  • Sometimes, the rope is twisted. You can't be perfectly fair and perfectly accurate at the same time.

The paper proves that sometimes, the math allows you to be perfectly fair and accurate simultaneously. But often, you have to make a trade-off.

The "Fair Tuning" Algorithm

The authors built a recipe (an algorithm) to help AI developers find the best spot on that tightrope.

  1. Step 1: First, train the AI to be as accurate as possible, ignoring fairness for a moment.
  2. Step 2: Then, "tune" the AI. The algorithm checks the "knobs" (derivatives).
    • If the AI is still reacting too much to the forbidden attribute (Race), the algorithm turns that knob down.
    • If the AI is ignoring the necessary attribute (Prior Offenses) too much, the algorithm turns that knob back up to match reality.
  3. The Result: The AI learns to make predictions that are as fair as possible without throwing away all its accuracy.

What They Found

They tested this on two things:

  1. Simulated Data: They created fake worlds with different rules.
    • In a "Linear" world (where things are simple), they found that you can be perfectly fair and accurate at the same time.
    • In a "Multiplicative" world (where things are complex and twisted), they found that you cannot be perfect at both. You have to choose a balance. Their method allowed them to find the best possible balance.
  2. Real Data (COMPAS): They used a real dataset about criminal recidivism.
    • They showed that their method (called "Fair Tuning") created a model that was much better at balancing fairness and accuracy than older methods.
    • Specifically, it was better at keeping the "allowed" information (like prior offenses) useful while removing the "forbidden" bias.

The Bottom Line

This paper gives us a new mathematical "tuning knob" for AI. It allows us to handle continuous variables (like age) much better than before. It acknowledges that sometimes we can't have a perfect world where bias is zero and accuracy is 100%, but it gives us a precise way to find the best possible compromise, ensuring the AI respects the law (fairness) while still doing its job (accuracy).

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →