Group Fairness Meets the Black Box: Enabling Fair Algorithms on Closed LLMs via Post-Processing
Not on the map. Why?
Abstract (arXiv)
Instruction fine-tuned large language models (LLMs) enable a simple zero-shot or few-shot prompting paradigm, also known as in-context learning, for building prediction models. This convenience, combined with continued advances in LLM capability, has the potential to drive their adoption across a broad range of domains, including high-stakes applications where group fairness -- preventing disparate impacts across demographic groups -- is essential. The majority of existing approaches to enforcing group fairness on LLM-based classifiers rely on traditional fair algorithms applied via model fine-tuning or head-tuning on final-layer embeddings, but they are no longer applicable to closed-weight LLMs under the in-context learning setting, which include some of the most capable commercial models today, such as GPT-4, Gemini, and Claude. In this paper, we propose a framework for deriving fair classifiers from closed-weight LLMs via prompting: the LLM is treated as a feature extractor, and features are elicited from its probabilistic predictions (e.g., token log probabilities) using prompts strategically designed for the specified fairness criterion to obtain sufficient statistics for fair classification; a fair algorithm is then applied to these features to train a lightweight fair classifier in a post-hoc manner. Experiments on five datasets, including three tabular ones, demonstrate strong accuracy-fairness tradeoffs for the classifiers derived by our framework from both open-weight and closed-weight LLMs; in particular, our framework is data-efficient and outperforms fair classifiers trained on LLM embeddings (i.e., head-tuning) or from scratch on raw tabular features.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 48 of its 67 references that are in the map. First posted on arXiv 15 Aug 2025.
Builds on
48 of 67 references.
References · 48
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2016Equality of Opportunity in Supervised Learningcited by 2,007
- 2022Large Language Models Encode Clinical Knowledgecited by 1,830
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
- 2016Man is to Computer Programmer as Woman is to Homemaker? Debiasing Word Embeddingscited by 1,312
- 2023Can LLMs Express Their Uncertainty? An Empirical Evaluation of Confidence Elicitation in LLMscited by 974
- 2020StereoSet: Measuring stereotypical bias in pretrained language modelscited by 924
- 2016Semantics derived automatically from language corpora contain human-like biasescited by 901
36 more
- 2020CrowS-Pairs: A Challenge Dataset for Measuring Social Biases in Masked Language Modelscited by 710
- 2021BBQ: A Hand-Built Bias Benchmark for Question Answeringcited by 701
- 2018A Reductions Approach to Fair Classificationcited by 587
- 2020Null It Out: Guarding Protected Attributes by Iterative Nullspace Projectioncited by 455
- 2021Retiring Adult: New Datasets for Fair Machine Learningcited by 449
- 2019Nuanced Metrics for Measuring Unintended Bias with Real Data for Text Classificationcited by 404
- 2019On Measuring Social Biases in Sentence Encoderscited by 398
- 2017Preventing Fairness Gerrymandering: Auditing and Learning for Subgroup Fairnesscited by 384
- 2019Bias in Bios: A Case Study of Semantic Representation Bias in a High-Stakes Settingcited by 349
- 2018AI Fairness 360: An Extensible Toolkit for Detecting, Understanding, and Mitigating Unwanted Algorithmic Biascited by 319
- 2017Fairness in Criminal Justice Risk Assessments: The State of the Artcited by 315
- 2022TabLLM: Few-shot Classification of Tabular Data with Large Language Modelscited by 277
- 2019Identifying and Reducing Gender Bias in Word-Level Language Modelscited by 214
- 2022On Second Thought, Let's Not Think Step by Step! Bias and Toxicity in Zero-Shot Reasoningcited by 194
- 2024Stealing Part of a Production Language Modelcited by 159
- 2018Counterfactual Fairness in Text Classification through Robustnesscited by 151
- 2019Inherent Tradeoffs in Learning Fair Representationscited by 144
- 2020Fair Regression with Wasserstein Barycenterscited by 100
- 2019Conditional Learning of Fair Representationscited by 78
- 2024Measuring Implicit Bias in Explicitly Unbiased Large Language Modelscited by 51
- 2024Representation Surgery: Theory and Practice of Affine Steeringcited by 50
- 2021Diverse Adversaries for Mitigating Bias in Trainingcited by 48
- 2021Your fairness may vary: Pretrained language model fairness in toxic text classificationcited by 39
- 2019Toward a better trade-off between performance and fairness with kernel-based distribution matchingcited by 36
- 2021Improving Gender Fairness of Pre-Trained Language Models without Catastrophic Forgettingcited by 35
- 2021Balancing out Bias: Achieving Fairness Through Balanced Trainingcited by 34
- 2023FRAPPE: A Group Fairness Framework for Post-Processing Everythingcited by 16
- 2023Confronting LLMs with Traditional ML: Rethinking the Fairness of Large Language Models in Tabular Classificationscited by 15
- 2023Post-hoc Bias Scoring Is Optimal For Fair Classificationcited by 14
- 2025Monte Carlo Temperature: a robust sampling strategy for LLM's uncertainty quantification methodscited by 12
- 2024Bayes-Optimal Fair Classification with Linear Disparity Constraints via Pre-, In-, and Post-processingcited by 10
- 2024Strategic Demonstration Selection for Improved Fairness in LLM In-Context Learningcited by 10
- 2021Costs and Benefits of Fair Regressioncited by 8
- 2024A Unified Post-Processing Framework for Group Fairness in Classificationcited by 7
- 2024Improving LLM Group Fairness on Tabular Data via In-Context Learningcited by 6
- 2024Inducing Group Fairness in Prompt-Based Language Model Decisionscited by 3
Built on by
Not cited yet.