Introduction: The Problem of Prompt Sensitivity
Large Language Models (LLMs) frequently exhibit extreme sensitivity to the specific phrasing of a prompt. For instance, a model might confidently answer "Who was the British PM after Arthur Balfour?" while expressing significant doubt when asked "Who succeeded Arthur Balfour as Prime Minister?" despite both questions being semantically identical.
In an ideal, "well-calibrated" system, uncertainty should reflect the model's underlying knowledge of a fact rather than the specific tokens used to elicit it. Current LLMs often overfit to surface-level statistical patterns, leading to miscalibration where the predicted probability of an answer does not align with its actual accuracy. This research addresses this failure of general reasoning by proposing a framework that focuses on the underlying "semantic concept" rather than token sequences.
Methodology: Semantic-Invariant Perturbation and Embedding Variance
The authors propose a two-pronged approach to improve uncertainty quantification:
- Semantic-Invariant Perturbation Sampling: Instead of repeatedly querying a single prompt, the framework generates multiple paraphrases (perturbations) of the same question. By sampling responses across this "concept space," the model recovers a more accurate distribution of its internal knowledge.
- Uncertainty Decomposition via Embedding Variance: Traditional metrics like entropy often fail because they treat semantically similar but lexically different answers (e.g., "USA" vs. "The United States") as distinct categories. The authors introduce a metric based on the variance of response embeddings in a high-dimensional vector space. This allows for the decomposition of uncertainty into Epistemic Uncertainty (stemming from prompt sensitivity) and Aleatoric Uncertainty (inherent randomness in token generation).
Experimental Setup
The framework was evaluated on two major question-answering benchmarks:
- TriviaQA: A large-scale dataset of trivia pairs.
- Natural Questions (NQ): Real-world Google search queries.
Testing was conducted across several models, including GPT-3.5 Turbo and the Llama 2 family (both Base and Chat variants).
Key Insights: The "Chat" Penalty and Pareto Improvements
A significant finding is the impact of Reinforcement Learning from Human Feedback (RLHF). While RLHF makes models more helpful, it appears to increase prompt sensitivity. Llama 2-Chat was notably more sensitive to phrasing than Llama 2-Base, suggesting that alignment tuning might induce a form of post-hoc overfitting to specific interaction styles.
Furthermore, the authors demonstrate that their paraphrasing approach provides a Pareto improvement. Unlike traditional methods that trade off accuracy for better calibration (e.g., by adjusting temperature), this method enhances the reliability of the model's confidence scores without compromising its ability to provide correct answers.
Results and Conclusion
The proposed "Variance (Total)" metric consistently outperformed traditional entropy-based measures. On TriviaQA with GPT-3.5, calibration—measured by AUROC—improved from approximately 0.74 to 0.84.
The study concludes that when operating under a fixed sampling budget, it is more effective to spread samples across different paraphrases than to repeat the same prompt. While the method's success depends on the quality of generated paraphrases, it offers a robust path forward for "black-box" uncertainty estimation in LLMs, moving the field closer to models that understand meaning rather than just tokens.
Summary updated