Learning Optimal Fair Policies

Razieh Nabi, Daniel Malinsky, Ilya Shpitser

In the quest for "optimal" decision-making—whether in healthcare, hiring, or criminal justice—we often turn to machine learning to find the best path forward. However, if the historical data we use to train these models is poisoned by systemic bias, our "optimal" policies will simply become more efficient engines of inequality.

In their 2019 ICML paper, "Learning Optimal Fair Policies," Razieh Nabi, Daniel Malinsky, and Ilya Shpitser provide a rigorous causal framework to solve this. They don't just aim for fair predictions; they aim to design entire decision-making strategies that "break the cycle of injustice" by neutralizing unfair causal pathways.

TL;DR

This paper introduces a framework for learning optimal decision policies that are mathematically guaranteed to satisfy user-defined fairness constraints. By combining causal mediation analysis with constrained optimization, the authors demonstrate how to "re-engineer" a biased world into a fair one, ensuring that sensitive attributes like race or gender don't influence outcomes through impermissible channels.

What Problem Does This Paper Address?

Most machine learning fairness research focuses on static prediction (e.g., "Is this person likely to default on a loan?"). However, real-world policy-making is sequential and adaptive. A doctor makes a series of treatment decisions; a judge or social worker makes repeated evaluations over time.

The authors identify three main sources of bias that plague these sequential policies:

  1. Retrospective Bias: Historical data reflects past discrimination.
  2. Prospective Bias: The new decision rule itself might explicitly or implicitly rely on sensitive features in an unfair way.
  3. Confounding Bias: Unobserved variables that affect both the decision and the reward, making it hard to tell what actually works.

The core challenge is that "optimality" (maximizing a reward) often conflicts with "fairness." If a biased system has historically marginalized a group, a model trained purely to maximize utility might continue to marginalize them because it "learned" that their historical outcomes are lower.

Methods: Bridging Causal Inference and Reinforcement Learning

1. Defining Fairness via Path-Specific Effects (PSEs)

Instead of saying "race shouldn't matter at all," the authors use mediation analysis. They argue that some causal paths from a sensitive attribute ($S$) to an outcome ($Y$) might be permissible, while others are not.

Causal DAGs illustrating sequential decision-making scenarios.

Using Directed Acyclic Graphs (DAGs), we can map out these relationships over time. For example, a direct path from Race $\to$ Incarceration is universally considered unfair. However, a path from Race $\to$ Neighborhood $\to$ Incarceration might be considered a legitimate factor for a specific policy context, depending on the domain's legal and ethical standards.

2. The "Fair World" Distribution ($p^*$)

The authors propose finding a "fair" version of the world's probability distribution. They use constrained optimization to find a distribution $p^*$ that is as close as possible to the real-world distribution $p$ (minimizing KL-divergence) but where the "unfair" path-specific effects are constrained to be exactly zero.

3. Policy Learning

Once they have this "fair world" distribution, they apply standard policy learning techniques like Q-learning and Value Search. The breakthrough here is their Theorem 2: they prove that a policy learned in this hypothetical fair world will still induce a fair joint distribution when it is deployed back into the real, biased world.

Key Results and Applications

The paper evaluates the approach on both synthetic data and the well-known COMPAS criminal recidivism dataset. Since COMPAS doesn't have a built-in "utility" function, the authors created a heuristic one that balances the social cost of incarceration against the risk of re-offending.

Incarceration rates by race across different utility parameters.
  • COMPAS Application: When applied to the COMPAS data, the "Fair Policy" (solid lines) significantly narrowed the gap in incarceration rates between African-American and Caucasian defendants compared to the "Unrestricted Optimal Policy" (dashed lines). This is especially evident in the "middle ground" of utility parameters (between 2.5 and 3.0) where decisions are most difficult to weigh.
  • Breaking the Cycle: In synthetic experiments, the fair policies successfully reduced the influence of the sensitive variable to near zero while still outperforming the "observed" human baseline.
  • Consistency: The authors showed that their semiparametric estimators (using Inverse Probability Weighting) remained consistent even when parts of the model were slightly misspecified.

Key Insights and Limitations

Insights: * Fairness is Causal, Not Just Statistical: You cannot fix fairness by just removing a variable. You have to understand the flow of influence through the system. * The Utility-Fairness Trade-off is Quantifiable: The results show that fair policies do result in lower "utility" than unrestricted ones. This is the "cost" of justice—sacrificing some predictive efficiency to stop perpetuating historical harms. * Decoupling the Policy from the Data: By training on the $p^*$ distribution, the policy "ignores" the unfair parts of the historical data while still learning from the valid correlations.

Limitations: * The Graph Requirement: The method requires a pre-defined Causal DAG. In many real-world scenarios, we don't actually know the full causal structure of the world. * Defining "Permissible": The framework requires humans to decide which causal paths are "fair" and which are "unfair." This is a value judgment, not a mathematical one. * Computational Complexity: Constrained optimization over complex distributions can be computationally expensive, suggesting a need for non-parametric methods in high-dimensional settings.

Summary updated

BibTeX
@inproceedings{nabi2019learning,
  author = {Razieh Nabi and Daniel Malinsky and Ilya Shpitser},
  title = {{Learning Optimal Fair Policies}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=ry-QribdZH},
}
Figure