TL;DR
This paper investigates how to predict whether a large language model (LLM) will perform well on zero-shot probabilistic prediction tasks using only unlabeled data. The authors find that LLM performance is highly variable, but certain metrics derived from unlabeled data, particularly the spread of predicted risk scores, can effectively signal task suitability, guiding practitioners on where to trust LLM predictions.
What Problem Does This Paper Address?
Large language models (LLMs) are increasingly being used for zero-shot probabilistic prediction tasks, such as estimating medical risk or predicting fraud, without requiring labeled data. However, a critical challenge for practitioners is knowing when to trust these LLM predictions. LLMs can be highly variable in their performance across different tasks and datasets, and their confidence scores are often poorly calibrated. This paper aims to address this by developing methods to predict an LLM's performance on a given task before any labeled data is available, thereby helping users identify promising tasks and avoid unreliable predictions.
Methods
The authors conducted a large-scale empirical study using 31 tabular datasets and four LLMs (GPT-4o-mini, GPT-40, Mistral-7b-Instruct-v0.1, and Llama-3.1-8b-Instruct). They explored various strategies to predict LLM performance at both the task level and the individual level.
Key methodological contributions include:
- Task-Level Prediction Metrics: They proposed and evaluated several metrics to predict task-level performance without labeled data. These include:
- Task-level confidence elicitation: Directly asking the LLM about its expected performance (e.g., predicting its own AUC, integer/decimal scoring).
- Aggregating individual-level confidence: Using statistics derived from individual row predictions (e.g., average confidence, average Maximum Class Probability (MCP), standard deviation of confidence, standard deviation of risk scores).
- Masking: Using performance on predicting other features within a dataset as a proxy for predicting the main target variable.
- Probabilistic Prediction Framework: They frame the problem as predicting probabilities (risk scores) for outcomes where identical inputs can have different outputs, a characteristic of probabilistic prediction.
- Auxiliary Prediction Tasks: To increase the number of evaluation tasks, they created auxiliary prediction tasks by treating each feature in a dataset as a potential target variable, predicting it from the remaining features.
Datasets
The study utilized 31 tabular datasets spanning various domains like social surveys, finance, medicine, and transportation. These datasets were sourced from:
- UCI repository: For datasets like car, diabetes, glioma, mushroom, etc.
- Folktables repository: For ACS datasets (acsincome, acsmobility, etc.).
- Tableshift repository: For brfssdiabetes, brfsshbp, brfsshighcholesterol, and sepsis.
- OpenML: For airline, bank, and house datasets.
- Kaggle: For indiandiabetes, taxibog, taximex, taxiuio, and usaccidents.
- IPUMS Global Health: For the ipums dataset.
The paper also generated an additional 285 auxiliary prediction tasks by creating "masked-out" prediction tasks from the original datasets.
Key Insights and Ideas
- Performance is Highly Variable: LLMs show significant variation in their zero-shot predictive performance, not only across different datasets but also within tasks from the same dataset. This means success on one task doesn't guarantee success on another, even within the same domain.
- Spread of Risk Scores is Informative: The standard deviation of LLM-generated risk scores for a given task is a surprisingly strong predictor of the LLM's actual performance (AUC). This suggests that how spread out the LLM's predictions are provides valuable information about its confidence and accuracy.
- Naive Confidence Elicitation Fails: Directly asking LLMs to rate their confidence or predict their own AUC on a task is generally unreliable.
- Individual-Level Calibration is Poor, but Useful: While LLMs' predicted probabilities are often poorly calibrated (i.e., not reflecting true probabilities), they can still be useful for abstention decisions. LLMs tend to be more accurate on examples where they output more extreme risk scores (closer to 0 or 1).
- Model Size Matters for Self-Awareness: Larger, more capable LLMs (like GPT-40) are better at anticipating their own performance on new tasks compared to smaller models.
Key Results
- Median AUC: GPT-40-mini achieved a median AUC of 0.7232, and Llama-3.1-8b-Instruct achieved 0.7080 across the tested tasks. GPT-40 achieved the highest median AUC at 0.82.
- Intra-Dataset Variance: For GPT-40-mini, only 19% of the variance in AUC was explained by the dataset, with 81% persisting within datasets, highlighting the need for task-specific evaluation.
- Predictive Power of Standard Deviation: The standard deviation of risk scores showed the highest correlation with downstream AUC across all tested metrics, with R² values up to 0.605 for GPT-4o.
- Task Screening: By setting a threshold on the standard deviation of risk scores, practitioners can identify tasks with significantly higher than average AUC. For example, for GPT-40-mini, tasks with a standard deviation of risk scores of at least 0.4 had an average AUC of 0.8417, compared to the overall average of 0.7186.
Limitations and Future Work
- Memorization/Data Leakage: The datasets used are publicly accessible, raising the possibility that they might have appeared in LLM training sets. While the authors argue their serialization strategy mitigates direct memorization, they acknowledge that performance might differ on completely unseen domains.
- Model Access and Scale: The study relied on LLMs with exposed token-level probabilities. Results might not generalize to models without such APIs or with different architectures.
- Prompting: The study used fixed, template-based prompting. Exploring alternative prompts, few-shot settings, or chain-of-thought reasoning could yield different results.
- External Validity: The use of public data limits external validity for domains entirely unseen during LLM training.
- Misuse of Metrics: The authors caution that their metrics, while informative, should not be seen as substitutes for labeled data evaluation, especially in high-stakes applications, to avoid over-reliance and potential over-confidence.
- Future Work: The paper suggests that further research could explore how to best leverage the full distribution of risk scores for prediction and how to adapt these findings to different LLMs and prompting strategies.
Summary updated