Abstract
In-context learning (ICL) allows Large Language Models (LLMs) to perform tasks using only a few examples in a prompt. However, ICL is notoriously brittle, with minor prompt variations often causing model predictions to flip. This research investigates the relationship between a model's sensitivity to these perturbations and its eventual accuracy. We find that after mitigating "label bias," sensitivity becomes a powerful signal for uncertainty. We propose SENSEL, a sensitivity-based selective prediction method that allows models to abstain from low-confidence, high-sensitivity predictions, thereby improving overall reliability.
Introduction: The Brittleness of In-Context Learning
Large Language Models (LLMs) have revolutionized NLP through In-Context Learning (ICL), yet their performance remains highly unstable. Simple changes, such as reordering few-shot examples or paraphrasing instructions, can lead to drastically different outputs. This study addresses two critical questions: how sensitive is ICL when label bias is accounted for, and can this sensitivity be leveraged to predict model errors?
Methodology
The authors conducted a systematic evaluation using GPT-J-6B and GPT-Neo-2.7B across ten classification datasets. They employed three types of perturbations: human-written instructions (INSTH), automatically paraphrased instructions (INSTA), and shuffled example orderings (EXORD).
To ensure that stability wasn't merely a byproduct of the model's inherent preference for certain labels, they applied label bias mitigation techniques like Prototypical Calibration (PC).
SENSEL: Sensitivity-Based Selective Prediction
The core contribution is SENSEL, a method that uses sensitivity as an uncertainty metric. Instead of relying on raw output probabilities, SENSEL evaluates the consistency of predictions across multiple perturbed versions of a prompt.
Key Insights: The Sensitivity-Accuracy Link
A primary finding of the study is the strong negative correlation between sensitivity and accuracy. When a model's prediction is highly sensitive to how a task is phrased or how examples are ordered, it is significantly more likely to be incorrect. This relationship holds true across diverse datasets and model architectures.
Calibration Unmasks Sensitivity
The research reveals that "raw" models often appear more stable than they truly are due to label bias (e.g., a tendency to predict "Positive" regardless of the input). Once calibrated, the observed sensitivity increases by up to 2.8x, showing that models are far more confused by prompt changes than previously thought. Sensitivity to task instructions was found to be more impactful than simple example reordering.
Results and Discussion
SENSEL consistently outperforms standard confidence-based baselines like MAXPROB (using maximum probability) and ENTROPY. On GPT-J-6B, SENSEL achieved an average improvement of +4.1 points in the Area Under the F1-Coverage Curve (AUC).
The study suggests that while standard probability-based methods are effective for "easy" examples where the model is certain, sensitivity-based methods like SENSEL are superior for "hard" examples where the model is prone to flipping its prediction based on minor prompt details.
Conclusion and Future Work
This work establishes sensitivity as a robust indicator of error in few-shot ICL. By measuring how "shaky" a model is across prompt variations, we can build more reliable systems that know when to abstain. Future research should explore whether these findings extend beyond text classification to more complex generative tasks and investigate methods to reduce the computational overhead of running multiple perturbed prompts.
Summary updated