Mapping from Meaning: Addressing the Miscalibration of Prompt-Sensitive Language Models

Kyle Cox, Jiawei Xu, Yikun Han, Rong Xu, Tianhao Li, Chi-Yang Hsu, Tianlong Chen, Walter Gerych, Ying Ding · DOI

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.

Arthur Balfour, whose succession is often used as a test case for prompt sensitivity in LLMs.

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:

  1. 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.
  2. 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.

A well-calibrated model effectively separates the uncertainty distributions of correct and incorrect answers.

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

BibTeX
@inproceedings{cox2025mapping,
  author = {Kyle Cox and Jiawei Xu and Yikun Han and Rong Xu and Tianhao Li and Chi-Yang Hsu and Tianlong Chen and Walter Gerych and Ying Ding},
  title = {{Mapping from Meaning: Addressing the Miscalibration of Prompt-Sensitive Language Models}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i22.34540},
}
Figure