TL;DR
This paper tackles the emerging issue of fairness in "in-context learning" (ICL) for tabular data using foundation models. They propose and evaluate three pre-processing methods to mitigate bias, finding that selecting demonstrations based on prediction uncertainty is the most effective strategy for improving fairness with minimal impact on accuracy.
What Problem Does This Paper Address?
Traditional machine learning models are known to exhibit biases, leading to unfair outcomes for certain demographic groups. With the rise of "foundation models" and their ability to perform "in-context learning" (ICL) on tabular data, a new challenge emerges: how do these models inherit and potentially amplify existing biases? ICL involves providing a model with a few examples (demonstrations) as context to guide its predictions on new data, without updating the model's parameters. While this approach is powerful, it's unclear how the choice of these demonstrations can affect fairness. This paper investigates this problem, specifically focusing on transformer-based tabular foundation models, and aims to find pre-processing strategies that can make ICL predictions fairer.
Methods
The authors explore three pre-processing strategies applied to the demonstration examples before they are fed into the foundation model for ICL:
- Correlation Remover: This method aims to reduce the linear correlation between non-sensitive features and the sensitive attribute in the demonstration data. It transforms features to make them less indicative of the sensitive attribute.
- Group-Balanced Demonstration Selection: This strategy ensures that the selected demonstration examples are balanced across different demographic groups. If a group is under-represented in the original data, this method subsamples from the majority group to achieve balance.
- Uncertainty-Based Demonstration Selection: This is the core novel contribution. It leverages conformal prediction to estimate the uncertainty of predicting the sensitive attribute for each potential demonstration example. Only samples with high uncertainty are selected as demonstrations, based on the hypothesis that these samples are less likely to encode strong, potentially biased, information about the sensitive attribute. Two variants are explored: one using a traditional Logistic Regression model for uncertainty estimation (Uncertain+LR) and another using a foundation model itself (Uncertain+TabPFN).
Datasets
The study utilizes a combination of datasets:
- Folktables (ACS PUMS): This includes several tasks derived from the American Community Survey, such as predicting income, employment status, commute time, residential mobility, and public health insurance coverage.
- Additional Tabular Datasets:
- Diabetes: Predicting diabetes diagnosis.
- German Credit: Predicting credit risk.
- CelebA: Predicting attractiveness from facial attributes.
Key Insights and Ideas
- Bias Amplification by Correlation Remover: Surprisingly, the "Correlation Remover" method, intended to reduce bias, actually exacerbated unfairness in many cases. The authors hypothesize that complex foundation models can infer the sensitive attribute even from linearly transformed features, effectively learning the "leakage" introduced by the transformation.
- Uncertainty is Key to Fairness: Selecting demonstrations based on high uncertainty in predicting the sensitive attribute proved to be the most effective strategy for improving fairness across various metrics. This suggests that focusing on ambiguous examples, rather than those with clear-cut sensitive attribute information, is crucial.
- Foundation Models Can "See Through" Transformations: The experiments with Correlation Remover variants (S1 vs. S2) highlight that foundation models can learn sensitive attribute information from transformations applied even to the test set, leading to bias amplification. Applying transformations only to the training set (S2) was found to be more effective.
- Fairness vs. Accuracy Trade-off: While uncertainty-based selection significantly improves fairness, it does come with a slight drop in prediction accuracy. However, this trade-off is generally manageable and often better than other methods.
Key Results
- Uncertainty-Based Selection Dominates: The "Uncertainty-Based Demonstration Selection" method consistently improved group fairness metrics (Demographic Parity, Equal Opportunity, Equalized Odds) across multiple datasets and foundation models (TabPFN and TabICL).
- Correlation Remover Fails: In contrast, Correlation Remover often led to worse fairness outcomes than the baseline "vanilla" ICL approach.
- Accuracy Impact: Uncertainty-based methods resulted in a slight decrease in accuracy, but this was generally less pronounced than the fairness improvements gained. For instance, on the ACSIncome dataset, Uncertain+TabPFN achieved significantly better fairness with a notable accuracy drop, but still outperformed other methods in terms of the fairness-accuracy trade-off.
- TabPFN vs. TabICL: Both foundation models showed similar trends, with TabPFN often exhibiting slightly better accuracy-fairness trade-offs.
Limitations and Future Work
- Focus on Pre-processing: The study exclusively focuses on pre-processing interventions, leaving in-processing (model fine-tuning) and post-processing (adjusting predictions) for future work.
- Conformal Prediction Dependency: The uncertainty-based method relies on conformal prediction for uncertainty estimation. While theoretically sound, exploring other uncertainty measures could be beneficial.
- Distribution Shift: The authors acknowledge the potential impact of distribution shifts between in-context and test examples on fairness and accuracy, suggesting this as a future research direction.
- In-processing and Post-processing: Investigating these other categories of fairness interventions for tabular ICL is a clear avenue for future research.
Summary updated