Training Fair Tabular Foundation Models

Patrik Kenfack, Jesse C. Cresswell, Anthony L. Caterini, Samira Ebrahimi Kahou, Ulrich Aïvodji

Tabular Foundation Models (TFMs) are the rising stars of machine learning for structured data. Unlike traditional models like XGBoost that require custom training for every new dataset, TFMs use In-Context Learning (ICL) to make predictions on the fly, similar to how Large Language Models handle text. However, as these models enter high-stakes fields like finance and healthcare, a critical question arises: how do we ensure they aren't perpetuating biases?

A new paper, Training Fair Tabular Foundation Models, introduces FairTFM, a framework that bakes fairness directly into the pretraining process, allowing models to deliver equitable results without needing task-specific fine-tuning.

TL;DR

FairTFM is the first framework to incorporate statistical group fairness directly into the pretraining of Tabular Foundation Models. By using adversarial training and synthetic fairness tasks, it enables models to make fair predictions in a single forward pass, successfully balancing the trade-off between accuracy and equity across diverse real-world datasets.

What Problem Does This Paper Address?

Traditional fairness interventions usually happen at one of three stages: preprocessing the data, changing the training objective (in-processing), or tweaking the final outputs (post-processing).

The problem? None of these fit the "Foundation Model" paradigm. TFMs are designed to be used as frozen, "out-of-the-box" predictors. If you have to retrain the model or perform complex post-hoc corrections for every new dataset to make it fair, you lose the primary benefit of using a foundation model in the first place. Furthermore, sensitive attributes (like race or gender) are often missing or restricted in training data, making it hard to "teach" the model what fairness looks like across different contexts.

Methods

The authors propose two main innovations to create FairTFM:

  1. Synthetic Fairness Task Generation: To scale training, the researchers created a self-supervised strategy. During pretraining, they take a random dataset and arbitrarily designate one input feature as the "sensitive attribute." If the feature is continuous, they use a "stick-breaking" discretization scheme to turn it into categories. This forces the model to practice being "fair" across millions of different simulated scenarios.
  2. Adversarial Architecture (GRL): The model uses a transformer backbone with two "heads." The first head tries to predict the target label (e.g., "will this person default on a loan?"). The second head tries to predict the sensitive attribute. Crucially, the second head is connected via a Gradient Reversal Layer (GRL). During training, the model is penalized if the second head succeeds. This "adversarial" setup pushes the encoder to ignore information that correlates with the sensitive attribute, learning a representation that is "invariant" to bias.

A hyperparameter, $\lambda$, allows developers to control the "strength" of this fairness constraint, effectively choosing where the model sits on the accuracy-vs-fairness spectrum.

Datasets

The authors evaluated FairTFM using a massive benchmark:

  • Pretraining: 300,000 synthetically generated tabular datasets.
  • Primary Evaluation: 120 fairness tasks derived from the 2018 ACS PUMS (American Community Survey). These tasks varied by prediction goal (Income, Employment, etc.), sensitive attributes (Gender, Age, Race), and US state.
  • Generalization Benchmark: To ensure the model works beyond one source, they tested it on 12 classic fairness datasets, including Adult, COMPAS, German Credit, and CelebA.

Key Insights and Ideas

  • Fairness as a First-Class Citizen: The paper proves that fairness doesn't have to be a "patch" applied after a model is built. It can be a fundamental objective during the pretraining phase.
  • The Power of Invariance: By using the Gradient Reversal Layer, the model learns to "blind" itself to sensitive correlations. This is particularly powerful for TFMs because that "blindness" transfers to new, unseen tasks during in-context learning.
  • Navigating the Pareto Front: The results show a clear "Pareto frontier"—a curve showing the best possible accuracy for a given level of fairness. FairTFM allows users to navigate this curve simply by adjusting the $\lambda$ value, providing a "knob" for ethical AI.

Key Results

  • Consistent Improvements: Across 120 tasks, FairTFM variants consistently reduced unfairness (measured by Demographic Parity and Equalized Odds) compared to standard TFMs and classical baselines like XGBoost or Logistic Regression.
  • Competitive Accuracy: While there is a slight "fairness tax" (a small drop in accuracy to gain significant fairness), FairTFM remained more accurate than classical models that were specifically tuned for fairness using state-of-the-art methods like Exponentiated Gradient.
  • Zero-Shot Fairness: Most impressively, the model achieved these results in a single forward pass. It didn't need to see the sensitive attributes of the "query" data to make a fair prediction, preventing "leakage" of sensitive info at inference time.

Limitations and Future Work

The authors acknowledge a few hurdles:

  • Synthetic Priors: The pretraining relies on synthetic data generators. While effective, these might not capture the complex, systemic "semantic" biases found in real-world societal data.
  • The "Age" Challenge: The model struggled more with "Age" as a sensitive attribute compared to Gender or Race, suggesting that some attributes are harder to "de-bias" adversarially.
  • Scaling Up: This study used a lightweight version of the TabPFN architecture. The next step is integrating these fairness constraints into massive, state-of-the-art TFMs to see if larger models produce even better fairness-accuracy trade-offs.

By moving fairness from a post-processing afterthought to a pretraining priority, FairTFM marks a significant step toward structured AI that is not just fast and accurate, but also demonstrably more equitable.

Summary updated

BibTeX
@inproceedings{kenfack2026training,
  author = {Patrik Kenfack and Jesse C. Cresswell and Anthony L. Caterini and Samira Ebrahimi Kahou and Ulrich Aïvodji},
  title = {{Training Fair Tabular Foundation Models}},
  booktitle = {FMSD @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=ajIvCEbadL},
}
Figure