Abstract
Estimating the performance of Large Language Models (LLMs) on new tasks is critical for deployment but often requires expensive manual labeling or inaccessible internal model states. This paper proposes a "plug-and-play" meta-model approach that utilizes output-derived features—specifically negative log-likelihood (NLL) and perplexity (PPL)—to predict performance on unlabeled tasks. Experiments across 160 NLP tasks demonstrate that this method rivals the accuracy of human labeling for up to 64 samples while remaining compatible with black-box API services.
Introduction
In-Context Learning (ICL) enables LLMs to adapt to diverse tasks with minimal examples. However, ICL performance is highly sensitive to prompt engineering and task context. For users of black-box LLM services (e.g., GPT-4, Claude), estimating performance before deployment is challenging. Existing methods either require costly labeled data or internal model access. This research addresses the need for a low-overhead, label-free estimation technique for black-box services.
Methodology
The proposed framework treats the LLM as a black box and follows a three-step pipeline: feature extraction, linear interpolation, and meta-modeling.
Feature Extraction
Four semantic features are extracted from the token probabilities provided by LLM APIs:
- Negative Log-Likelihood (NLL): Reflects model confidence in the generated sequence.
- Perplexity (PPL): Measures how well the input aligns with the model's pre-training.
- GAP: The probability margin between the top two tokens.
- Maximum Entropy (MaxEnt): Quantifies uncertainty in the token distribution.
Meta-Modeling
To handle varying sequence lengths, feature vectors are mapped to a fixed-dimensional space ($d=100$) via linear interpolation. These features then serve as inputs to a meta-model (e.g., XGBoost, Random Forest, MLP, or k-NN) trained on labeled auxiliary tasks to learn the mapping between output statistics and actual performance (F1-score).
Key Insights and Results
Correlation analysis revealed that NLL and PPL provide the most robust signals for performance estimation. The researchers selected features that were highly correlated with performance but exhibited low collinearity with each other, ensuring stable predictions.
Performance Benchmarks
- Accuracy: The meta-model approach significantly outperformed standard unlabeled baselines like Average Threshold of Confidence (ATC). For the OPT-6.7B model, XGBoost reduced estimation error by 31.1% compared to the best baseline.
- Efficiency: The zero-label meta-model achieved estimation accuracy comparable to a human labeling 64 samples, offering substantial cost savings in annotation.
- Service Selection: In practical scenarios, using the meta-model to select the optimal LLM or context for a specific task improved execution performance by up to 21% over random selection.
Conclusion
This "plug-and-play" approach provides a scalable way to monitor and optimize LLM services without ground-truth labels. By leveraging the statistical distribution of model outputs, developers can diagnose model performance and guide fine-tuning efforts effectively across diverse task benchmarks like CrossFit.
Summary updated