FairPFN: Transformers Can do Counterfactual Fairness

Jake Robertson, Noah Hollmann, Noor Awad, Frank Hutter
7/8/2024
cs.LGcs.AIcs.CY

No confident code implementation found for this paper.

Abstract

Machine Learning systems are increasingly prevalent across healthcare, law enforcement, and finance but often operate on historical data, which may carry biases against certain demographic groups. Causal and counterfactual fairness provides an intuitive way to define fairness that closely aligns with legal standards. Despite its theoretical benefits, counterfactual fairness comes with several practical limitations, largely related to the reliance on domain knowledge and approximate causal discovery techniques in constructing a causal model. In this study, we take a fresh perspective on counterfactually fair prediction, building upon recent work in in context learning (ICL) and prior fitted networks (PFNs) to learn a transformer called FairPFN. This model is pretrained using synthetic fairness data to eliminate the causal effects of protected attributes directly from observational data, removing the requirement of access to the correct causal model in practice. In our experiments, we thoroughly assess the effectiveness of FairPFN in eliminating the causal impact of protected attributes on a series of synthetic case studies and real world datasets. Our findings pave the way for a new and promising research area: transformers for causal and counterfactual fairness.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{robertson2024fairpfn,
  title  = {FairPFN: Transformers Can do Counterfactual Fairness},
  author = {Jake Robertson and Noah Hollmann and Noor Awad and Frank Hutter},
  year   = {2024},
  eprint = {2407.05732},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.05732v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.05732.svg)](https://codeofpaper.com/paper/2407.05732)

Discussion