Estimating Large Language Model Capabilities without Labeled Test Data

Harvey Yiyun Fu, Qinyuan Ye, Albert Xu, Xiang Ren, Robin Jia

Introduction

In-Context Learning (ICL) has revolutionized how we interact with Large Language Models (LLMs), allowing them to perform new tasks with only a handful of examples. However, this flexibility comes with a significant challenge: performance is highly variable and often unpredictable. Traditionally, assessing a model's accuracy on a specific task requires a labeled test set. In specialized domains such as law or medicine, acquiring these labels is prohibitively expensive, creating an "evaluation catch-22" where the cost of verification undermines the data efficiency of ICL.

This research proposes a novel solution: estimating LLM accuracy on unlabeled test data by analyzing the model's internal confidence. By training a "meta-model" on the distribution of an LLM’s confidence scores—termed "confidence profiles"—the authors demonstrate that it is possible to predict performance with a level of reliability comparable to having dozens of manually labeled examples.

Methodology: The Meta-Model Framework

The core innovation of this work lies in treating the LLM's internal certainty as a diagnostic signal. The process involves four primary stages:

1. Extracting Confidence Profiles

For every example in an unlabeled dataset, the researchers extract the LLM's confidence in its own prediction. For multiple-choice questions, this is defined as the normalized probability of the selected answer. For open-ended tasks, Negative Log-Likelihood (NLL) is used as the proxy for uncertainty.

2. Feature Engineering

A key finding of the study is that the average confidence score is a poor predictor of actual accuracy. Instead, the authors construct a "confidence vector" by sorting these scores and extracting percentiles (e.g., the 10th through 100th percentiles). This captures the full distribution of the model's certainty across a task, distinguishing between a model that is consistently mediocre and one that is highly confident on a subset of questions while guessing on others.

3. Training the Meta-Model

The researchers trained several lightweight meta-models—including k-Nearest Neighbors (kNN), Multi-Layer Perceptrons (MLP), and XGBoost—to map these confidence profiles to observed accuracies from a "seen" set of tasks. This allows the meta-model to learn the specific "calibration fingerprint" of an LLM.

4. Inference

When presented with a new, completely unlabeled task, the meta-model analyzes the LLM's confidence profile and predicts the final accuracy without ever seeing a ground-truth label.

Experimental Evaluation

The approach was rigorously tested using four LLMs (LLaMA-7B/13B and OPT-6.7B/13B) across three major task collections:

  • MMLU: 57 subjects covering STEM, humanities, and social sciences.
  • Multiple Choice QA (MCQA): 21 datasets from the CrossFit benchmark.
  • Closed-Book QA (CBQA): 13 datasets requiring internal knowledge retrieval.

In total, the researchers generated over 42,000 observations of ICL performance to train and benchmark their meta-models.

Key Insights

The study yielded several critical insights into LLM behavior and evaluation:

  • Confidence as a Fingerprint: Even if an LLM is systematically overconfident or underconfident, the pattern of its confidence shifts across different tasks remains a reliable indicator of its true capability.
  • Distributional Importance: The shape of the confidence distribution is significantly more informative than the mean. This suggests that the variance in model certainty across a dataset contains vital information about task difficulty and model fit.
  • Cost Efficiency: On average, the meta-model's accuracy estimation was as effective as a human annotating 40 test examples per task. In optimal scenarios, its precision matched an "oracle" with 128 labeled examples, representing a massive reduction in labeling overhead.

Results and Performance

The XGBoost meta-model emerged as the strongest performer, outperforming standard baselines—such as "Average Training Accuracy" or "Temperature Scaling"—in 8 out of 12 experimental settings. Overall, the meta-model approach reduced relative estimation error by 23.6% compared to the best existing baseline methods. Furthermore, the method proved robust to changes in "shot" counts (e.g., moving from 3-shot to 5-shot prompts), indicating that the meta-model does not require retraining for minor prompt variations.

Limitations and Future Directions

While promising, the method has specific constraints:

  • Task Specificity: Meta-models are currently specialized; a model trained on multiple-choice tasks cannot yet predict performance on open-ended generation.
  • Scope of Models: The research focused on base models. Future studies must determine if instruction-tuned or RLHF-tuned models, which are often calibrated to be more "humble," exhibit the same confidence patterns.
  • Complex Reasoning: The study did not cover long-form generation or Chain-of-Thought reasoning, where defining a single "confidence score" is significantly more complex.

Conclusion

This research provides a viable path toward "label-free" evaluation of LLMs. By leveraging the internal signals of the models themselves, practitioners can estimate performance in niche domains where data is scarce, potentially accelerating the deployment of LLMs in specialized professional fields.

Summary updated

BibTeX
@inproceedings{fu2023estimating,
  author = {Harvey Yiyun Fu and Qinyuan Ye and Albert Xu and Xiang Ren and Robin Jia},
  title = {{Estimating Large Language Model Capabilities without Labeled Test Data}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.639},
}
Figure