FairPFN: Transformers Can do Counterfactual Fairness
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
- 2017Counterfactual Fairnesscited by 802
- 2022TabPFN: A Transformer That Solves Small Tabular Classification Problems in a Secondcited by 643
- 2018A Reductions Approach to Fair Classificationcited by 585
- 2021Transformers Can Do Bayesian Inferencecited by 338
- 2013Causal Discovery with Continuous Additive Noise Modelscited by 252
- 2021A Clarification of the Nuances in the Fairness Metrics Landscapecited by 98
- 2020DoWhy: An End-to-End Library for Causal Inferencecited by 92
- 2022Causal Fairness Analysiscited by 42
- 2023Learning for Counterfactual Fairness from Observational Datacited by 13
- 2024A Brief Introduction to Causal Inference in Machine Learningcited by 1
Built on by
Citing papers per year: 2024: 2; 2025: 6.
8 papers.
- 2025Do-PFN: In-Context Learning for Causal Effect Estimationcited by 46
- 2025Position: The Future of Bayesian Prediction Is Prior-Fittedcited by 19
- 2025Towards Fair In-Context Learning with Tabular Foundation Modelscited by 8
- 2024Amortized Inference of Causal Models via Conditional Fixed-Point Iterationscited by 4
- 2025Does TabPFN Understand Causal Structures?cited by 4
- 2024Sequential Conditional Transport on Probabilistic Graphs for Interpretable Counterfactual Fairnesscited by 3
- 2025EquiTabPFN: A Target-Permutation Equivariant Prior Fitted Networkscited by 3
- 2025Fairness in Augmented Graph Learning: A Surveycited by 2
- 2025Does TabPFN Understand Causal Structures?10 Nov 2025
- 2025Do-PFN: In-Context Learning for Causal Effect Estimation6 Jun 2025
- 2025Position: The Future of Bayesian Prediction Is Prior-Fitted29 May 2025
- 2025Towards Fair In-Context Learning with Tabular Foundation Models14 May 2025
- 2025Fairness in Augmented Graph Learning: A Survey30 Apr 2025
- 2025EquiTabPFN: A Target-Permutation Equivariant Prior Fitted Networks10 Feb 2025
- 2024Amortized Inference of Causal Models via Conditional Fixed-Point Iterations8 Oct 2024
- 2024Sequential Conditional Transport on Probabilistic Graphs for Interpretable Counterfactual Fairness6 Aug 2024