mlsanityData to 7 Oct 2026

FairPFN: Transformers Can do Counterfactual Fairness

arXiv 2407.05732 ↗First posted 8 Jul 2024cs.LG cs.AI cs.CYcited by 8

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 10 of its 16 references that are in the map. First posted on arXiv 8 Jul 2024.

Builds on

10 of 16 references.

References · 10

  1. 2017Counterfactual Fairnesscited by 802
  2. 2022TabPFN: A Transformer That Solves Small Tabular Classification Problems in a Secondcited by 643
  3. 2018A Reductions Approach to Fair Classificationcited by 585
  4. 2021Transformers Can Do Bayesian Inferencecited by 338
  5. 2013Causal Discovery with Continuous Additive Noise Modelscited by 252
  6. 2021A Clarification of the Nuances in the Fairness Metrics Landscapecited by 98
  7. 2020DoWhy: An End-to-End Library for Causal Inferencecited by 92
  8. 2022Causal Fairness Analysiscited by 42
  9. 2023Learning for Counterfactual Fairness from Observational Datacited by 13
  10. 2024A Brief Introduction to Causal Inference in Machine Learningcited by 1

Built on by

Cited by year

Citing papers per year: 2024: 2; 2025: 6.

8 papers.