← Latest papers
🤖 machine learning

Training Fair Tabular Foundation Models

This paper introduces FairTFM, a scalable training strategy that incorporates fairness constraints directly into Tabular Foundation Models via synthetic fairness tasks and a gradient reversal layer, enabling fair, in-context predictions without sensitive attribute access while maintaining competitive accuracy.

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

Published 2026-08-17
📖 7 min read🧠 Deep dive

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

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a detective trying to solve a mystery using a super-smart, pre-trained AI assistant. This assistant has read millions of case files and learned how to spot patterns in data, like a seasoned detective who can look at a few clues and instantly guess the culprit. This is the world of Tabular Foundation Models. Think of them as "universal detectives" that can jump into any new case—whether it's predicting loan approvals, diagnosing illnesses, or deciding who gets a scholarship—without needing to be retrained from scratch. They use a trick called In-Context Learning, which is like giving the detective a few examples of the current case in a notebook and saying, "Here's how we usually solve these; now you solve this one."

But here's the catch: even the smartest detectives can have hidden biases. If the detective learned from old case files where certain groups of people were treated unfairly, they might accidentally treat new people from those same groups unfairly, too. This is the problem of algorithmic fairness. In the real world, we have strict rules (like anti-discrimination laws) that say decisions shouldn't depend on sensitive traits like gender, race, or age. The big question scientists are asking is: Can we teach these "universal detectives" to be fair before they ever see a real case, so they don't need to be fixed later?

This paper introduces a new method called FairTFM, which tries to bake fairness directly into the detective's brain during its training. Instead of just teaching the model to be accurate, the researchers teach it to ignore the "sensitive" clues that shouldn't matter. They found that by using a clever training trick, they can create a model that makes fairer predictions in a single glance, without needing to be retrained for every new job. While the model sometimes has to make a tiny trade-off in how perfectly accurate it is, the results suggest it can significantly reduce unfairness—sometimes by over 70%—while still doing a great job at its main task.

The Problem: The "Universal Detective" with a Blind Spot

Tabular data is just information organized in rows and columns, like a giant spreadsheet. For decades, the best way to make predictions from these spreadsheets was to use tree-based models (think of them as flowcharts that ask a series of yes/no questions). But recently, a new type of AI called a Tabular Foundation Model (TFM) has emerged. These are like the "super-detectives" of the data world. They are trained on massive collections of data so they can adapt to new tasks instantly, using only a few examples provided at the moment of prediction.

The problem is that these super-detectives are learning from the past, and the past is often full of unfairness. If a bank's historical data shows that women were denied loans more often than men for no good reason, a standard TFM might learn that pattern and continue denying loans to women, even if it's illegal and wrong.

Usually, to fix this, data scientists try to "clean" the data before training, or they tweak the model after it's already trained. But with TFMs, this is tricky. Because these models are designed to be "frozen" (meaning we don't change their internal weights for every new task), we can't easily go back and retrain them for every specific bank or hospital. We need a way to make them fair before they are deployed, so they are ready to be fair the moment they are asked to solve a new problem.

The Solution: Training the Detective to Ignore the "Wrong" Clues

The authors of this paper, Patrik Kenfack and his team, propose a new way to train these models called FairTFM. Their idea is simple but powerful: during the training phase, they teach the model to solve a game where it has to predict the outcome without using the sensitive information.

Here is how they do it, using a fun analogy:

Imagine you are training a detective to solve a mystery about who stole a cookie. You have a list of clues: the time of day, the type of shoe print, and the suspect's favorite color. But you also have a "sensitive" clue: the suspect's gender. You want the detective to solve the crime based on the shoe print and time, but not based on gender.

In the past, you might have tried to just hide the gender clue. But the detective is smart; they might still guess the gender based on other clues (like the shoe print) and use that to gain an unfair advantage.

FairTFM uses a two-part training game:

  1. The Main Game: The detective tries to guess who stole the cookie (the main prediction).
  2. The Anti-Cheat Game: At the same time, the detective is forced to guess the suspect's gender based only on the clues they used to solve the crime.

Here is the magic trick: The researchers use a special tool called a Gradient Reversal Layer. Think of this as a "reverse gear" for the detective's brain. When the detective tries to guess the gender, the tool flips the feedback. If the detective gets the gender right, the tool says, "No, that's bad! You're relying too much on gender!" and pushes the detective to forget that connection.

By doing this over and over again with thousands of different fake "cookie theft" scenarios (where the sensitive clue changes from gender to age to race randomly), the detective learns to solve the crime using only the relevant clues. They learn to build a mental map of the world where the gender clue is invisible.

The Results: Fairness Without Losing the Plot

The team tested their new "Fair Detective" (FairTFM) on 132 different tasks, ranging from predicting income to checking if someone will be re-arrested. They compared it against:

  • Standard Detectives: The usual, super-accurate TFMs (like TabPFN and TabICL) that don't care about fairness.
  • Old-School Detectives: Traditional models like Random Forests and Logistic Regression.
  • The "Fair" Competitor: Another model called FairPFN, which tries to be fair but uses a different, more complex definition of fairness.

The results were promising. The standard, super-accurate TFMs were indeed the most accurate, but they were also the most unfair. They made big mistakes in how they treated different groups of people.

FairTFM, however, found a sweet spot. By adjusting a "knob" (called λ\lambda) that controls how hard the model tries to be fair, the researchers could dial in the perfect balance.

  • The Trade-off: To get fairer predictions, the model had to give up a little bit of raw accuracy. The paper found that for a small drop in accuracy (between 2% and 11%), the model became 32% to 75% fairer than the standard models.
  • The "One-Shot" Win: The best part is that FairTFM does this in a single forward pass. You don't need to retrain it for every new bank or hospital. You just give it the data, and it produces a fair prediction instantly.

When compared to the other "fair" model (FairPFN), FairTFM came out ahead. FairPFN was fair, but it was much less accurate. FairTFM managed to be both fair and accurate, beating FairPFN on almost every metric.

What This Means for the Future

The paper suggests that we don't have to choose between a smart AI and a fair AI. By training the model to ignore sensitive attributes during its "childhood" (pre-training), we can create a tool that is ready to be fair the moment it enters the real world.

Of course, the authors are careful to note that this isn't a magic wand that solves all discrimination. The model still needs to be tested on real-world data, and the definition of "fairness" can be complex. But this work shows a clear path forward: we can build foundation models that are not just powerful, but also principled, making them safer and more trustworthy for high-stakes decisions in finance, healthcare, and justice.

In short, the authors have shown that with the right training, we can teach our AI detectives to solve crimes without letting their biases get in the way. And that's a win for everyone.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →