Few-Shot Fairness: Unveiling LLM's Potential for Fairness-Aware Classification
Organizations: Indian Institute of Technology Delhi · Delhi Technological University · Indian Institute of Science Education and Research Kolkata, Mohanpur, India
Abstract
Large Language Models (LLMs) are increasingly being employed for downstream tasks such as tabular classification, where predictions can directly influence individuals in high-stakes domain such as hiring, education and criminal justice. As the adoption of LLMs for such decision making tasks continues to grow, ensuring fairness in their predictions becomes increasingly important. Existing approaches to ensure fairness in tabular data, typically process test instances independently, limiting the models awareness of the demographic composition and predictions of other instances, which is particularly important for reasoning about group-level fairness. To address this limitation, we propose FABLE (FAir Batch-based LLM framEwork) for tabular classification, a batch-based framework that jointly processes multiple test instances, enabling LLMs to reason over demographic information and prediction outcomes within a batch. To mitigate positional bias introduced by batch processing, the framework generates multiple shuffled versions of each batch and aggregates the resulting predictions through voting. We evaluate FABLE on three tabular classification datasets using three popular LLMs and four prompting configurations spanning zero-shot, few-shot, direct, and self-reflective prompting. Experimental results demonstrate that incorporating demographic information and explicit fairness constraints enable LLMs to achieve substantial fairness improvements across diverse datasets and fairness notions, highlighting their potential as fairness reasoners for tabular classification and promoting more equitable and accountable decision-making.
Figures & tables
| Notation | Explanation |
|---|---|
| Attributes describing an individual. | |
| The actual classification result. | |
| Predicted classification decision. | |
| Protected or sensitive attribute. | |
| True positives for sensitive group 1. | |
| True negatives for sensitive group 1. |
| Fairness Definition | Prompts |
| Demographic Parity | Ensure Demographic Parity on the basis of attribute . Demographic Parity implies that both g_1 and g_2 should have equal probability of being assigned to the positive_class . Probability of classifying g_1 and g_2 as positive_class should be equal. |
| Equal Opportunity | Ensure Equal Opportunity on the basis of attribute . True Positive Rate should be same across both g_1 and g_2 . Probability of a person with gold label as positive_class to be correctly classified as positive_class should be same for both g_1 and g_2 . |
| Equalized Odds | Ensure Equalized Odds on the basis of attribute . False Positive Rate should be same across both g_1 and g_2 . Probability of a person with gold label as negative_class to be incorrectly classified as positive_class should be same for both g_1 and g_2 . |
| Overall Accuracy Equality | Ensure Overall Accuracy Equality on the basis of attribute . Accuracy should be same across both g_1 and g_2 groups. Probability of a person with gold label as positive_class to be correctly classified as positive_class and a person with gold label as negative_class to be correctly assigned as negative_class should be same for both g_1 and g_2 group. |
| Causal Discrimination | Ensure Causal Discrimination on the basis of attribute . People having similar attributes should be assigned similar result. g_1 and g_2 who have same features should be assigned same classification result that is either both will be assigned negative_class or both will be assigned positive_class . |
| Fairness through Unawareness | Ensure Fairness Through Unawareness on the basis of attribute . Do not consider gender for decision making process. attribute should not be used while classification. Classification outcome should be same for any two people who have same attributes. |
Algorithmic Fairness
Algorithmic fairness studies how automated decisions distribute errors, opportunities, and harms across groups, and how to measure and reduce disparities.
See all 424 papers