[Paper Review] Few-Shot Fairness: Unveiling LLM's Potential for Fairness-Aware Classification
The paper investigates whether large language models can achieve fairness-aware classification using in-context learning, across zero-shot and few-shot setups, by incorporating various fairness notions. GPT-4 generally shows stronger accuracy and fairness trade-offs than other models.
Employing Large Language Models (LLM) in various downstream applications such as classification is crucial, especially for smaller companies lacking the expertise and resources required for fine-tuning a model. Fairness in LLMs helps ensure inclusivity, equal representation based on factors such as race, gender and promotes responsible AI deployment. As the use of LLMs has become increasingly prevalent, it is essential to assess whether LLMs can generate fair outcomes when subjected to considerations of fairness. In this study, we introduce a framework outlining fairness regulations aligned with various fairness definitions, with each definition being modulated by varying degrees of abstraction. We explore the configuration for in-context learning and the procedure for selecting in-context demonstrations using RAG, while incorporating fairness rules into the process. Experiments conducted with different LLMs indicate that GPT-4 delivers superior results in terms of both accuracy and fairness compared to other models. This work is one of the early attempts to achieve fairness in prediction tasks by utilizing LLMs through in-context learning.
Motivation & Objective
- Assess whether LLMs understand and can apply fairness notions in classification tasks.
- Compare multiple state-of-the-art LLMs (GPT-4, LLaMA-2, Gemini) under different fairness criteria.
- Analyze accuracy-fairness trade-offs in zero-shot and few-shot in-context learning settings.
- Provide publicly available predictions to spur further research in fairness-aware LLM classification.
Proposed method
- Define a fairness framework with seven established fairness notions plus an eighth Generic Fairness.
- Use in-context learning with abstract (Rule_A) and detailed (Rule_D) fairness prompts to guide predictions.
- Evaluate zero-shot and few-shot setups, with and without retrieved in-context demonstrations (RAG) selecting 20 similar examples.
- Employ a standardized prompt structure including task description, test instance, and fairness pi, and measure outputs against ground truth on the UCI Adult dataset.
Experimental results
Research questions
- RQ1Can LLMs comprehend and apply formal fairness notions in a classification task without fine-tuning?
- RQ2Which LLMs (GPT-4, LLaMA-2, Gemini) perform best under different fairness criteria?
- RQ3What is the accuracy-fairness trade-off when using zero-shot versus few-shot in-context learning for fairness-guided classification?
- RQ4Does retrieval-augmented in-context learning improve fairness and accuracy compared to zero-shot prompts?
- RQ5How do eight defined fairness metrics behave across models and settings on the Adult dataset?
Key findings
- GPT-4 achieves higher accuracy and fairness scores than competing models in several setups.
- Fairness rules defined through abstract prompts (Rule_A) and detailed prompts (Rule_D) influence outcomes, with measurable changes across metrics.
- Zero-shot and few-shot configurations yield different fairness-accuracy trade-offs depending on the model and fairness definition.
- Retrieval-based in-context examples (RAG) are used for few-shot learning to select demonstrations from 46,621 instances.
- The study provides publicly released predictions for over 1,000 test instances to support future research.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.