TL;DR
This paper introduces folktexts, a new framework for evaluating how well Large Language Models (LLMs) can act as "risk scorers" by quantifying uncertainty in predictions. They find that while LLMs show promise, current evaluation methods miss a crucial aspect: their poor calibration in real-world, underspecified prediction tasks, especially when using multiple-choice prompts.
What Problem Does This Paper Address?
The current landscape of evaluating LLMs often focuses on accuracy in tasks with clear, correct answers (e.g., "What is the capital of France?"). However, many real-world applications require LLMs to act as risk assessors, providing probabilities for uncertain outcomes (e.g., "What is the likelihood this loan applicant will default?"). Existing benchmarks fail to capture how well LLMs can quantify this outcome uncertainty. This is critical because a model that is accurate but miscalibrated can lead to poor decision-making, especially in high-stakes domains. The authors aim to bridge this gap by evaluating LLMs on "unrealizable prediction tasks" where the outcome is inherently uncertain, and proper calibration is paramount.
Methods
The core of the paper is the folktexts package, an open-source tool designed to translate tabular data into natural language prompts for LLMs. This allows for systematic evaluation of LLMs as risk scorers.
Here's a breakdown of their approach:
- Unrealizable Prediction Tasks: They construct tasks using US Census data, where prediction outcomes are not uniquely determined by the input features (aleatoric uncertainty). This contrasts with typical Q&A benchmarks.
- Prompting Schemes:
- Multiple-choice prompting: LLMs are presented with a question and binary choices (e.g., "Income: A. Below $50k, B. Above $50k"). Risk scores are derived from token probabilities of the choices.
- Numeric prompting: LLMs are asked to directly provide a probability (e.g., "What is the probability that this person's income is above $50k? Answer (between 0 and 1):").
- Evaluation Metrics: They primarily use Expected Calibration Error (ECE) to measure how well predicted probabilities match actual outcomes. They also consider Brier score and Area Under the ROC Curve (AUC) for predictive performance.
- Subgroup Analysis: They extend their evaluation to assess calibration across different demographic subgroups to identify potential fairness issues.
Datasets
The primary dataset used is the US Census American Community Survey (ACS) Public Use Microdata Sample (PUMS). This dataset contains information on over 3.2 million individuals.
The authors use this data to create five benchmark tasks:
- ACSIncome
- ACSPublicCoverage
- ACSMobility
- ACSEmployment
- ACSTravelTime
These tasks are designed to mimic existing tabular benchmarks but are framed as natural language prediction problems.
Key Insights and Ideas
- The "Calibration Blind-Spot": Standard Q&A benchmarks, which focus on accuracy, completely miss the poor calibration of LLMs when it comes to quantifying uncertainty.
folktextsaims to expose this blind-spot. - Instruction-Tuning's Double-Edged Sword: While instruction-tuned models often show improved predictive signal (AUC) and accuracy, they significantly worsen calibration when using multiple-choice prompts. This leads to over-confident, polarized predictions.
- Numeric Prompting is Key for Calibration: Verbally asking LLMs for a numeric probability estimate dramatically improves calibration, especially for instruction-tuned models, though it may slightly reduce predictive power.
- Base Models vs. Instruction-Tuned Models: Base models tend to overestimate uncertainty (under-confident), while instruction-tuned models underestimate it (over-confident) in multiple-choice settings.
- Polarization is a Problem: Instruction-tuning can lead to polarized answer distributions even when the underlying data has high uncertainty, indicating a fundamental issue in how these models express uncertainty via multiple-choice.
- Subgroup Miscalibration: The paper highlights potential fairness issues, showing that some LLMs exhibit biased risk scores across different racial groups, which could lead to unfair outcomes.
Key Results
- High AUC, Poor ECE: Most LLMs evaluated (especially larger ones) achieve high predictive signal (AUC) but suffer from very high calibration error (ECE) when using multiple-choice prompting.
- Instruction-Tuning Worsens Calibration: For multiple-choice prompts, instruction-tuned models generally have higher ECE than their base counterparts, despite often having better AUC.
- Numeric Prompting Improves Calibration: Instruction-tuned models see significant ECE improvements with numeric prompting.
- Gemma Models Struggle: Some Gemma models showed worse-than-random accuracy despite decent AUC, highlighting the disconnect between predictive signal and calibration.
- Mixtral 8x22B (it) and Yi 34B (it) Show Group Bias: These models exhibited notable differences in risk scores for different racial groups on the ACSIncome task, with Black individuals receiving lower scores on average.
Limitations and Future Work
- Task and Model Dependency: The authors acknowledge that their findings are specific to the tasks and models evaluated and may not generalize universally.
- Fairness Audit Limitations: The evaluation metrics are not a sufficient criterion for using LLMs in consequential risk assessment applications, and calibration alone doesn't address broader fairness concerns.
- Future Work: The authors envision extending
folktextsto include other uncertainty quantification methods like confidence intervals and conformal prediction. They also suggest further investigation into how LLMs handle varying degrees of uncertainty and feature importance. Thefolktextspackage itself is intended to facilitate future research into LLM uncertainty quantification.
Summary updated