Introduction
Large Language Models (LLMs) frequently generate "hallucinations"—factually incorrect statements delivered with high confidence. While various metrics exist to estimate model uncertainty, they often function as "black boxes," providing a score without explaining the underlying cause. Is the model uncertain due to linguistic phrasing, prompt ambiguity, or a genuine lack of knowledge? This research introduces a framework to decompose LLM uncertainty into four distinct sources, creating "uncertainty profiles" that enable adaptive model and metric selection for improved reliability.
Decomposing Uncertainty Sources
The authors propose a taxonomy of four principal uncertainty sources:
- Surface Form Uncertainty (SU): Sensitivity to the specific linguistic structure or vocabulary used in the prompt.
- Aleatoric Uncertainty (AU): Inherent ambiguity or underspecification within the prompt itself.
- Epistemic Uncertainty (EU): A fundamental lack of factual knowledge or reasoning capability within the model.
- Operational Uncertainty (OU): Errors arising from the stochastic nature of the decoding process, such as arithmetic slips.
To quantify these, a multi-stage prompting pipeline was developed, involving paraphrasing, clarification, and self-checking mechanisms.
Methodology and Adaptive Selection
The measurement pipeline (Figure 1) uses lexical distance between paraphrases to estimate SU and semantic distance after clarification to estimate AU. EU is derived from the entropy of self-checked answer distributions, while OU is measured by the divergence between initial and self-checked responses.
By representing tasks, models, and metrics as vectors in this four-dimensional space, the researchers implemented an Adaptive Model-Metric Selection strategy. Using cosine similarity, the framework matches the specific "uncertainty fingerprint" of a task to the most appropriate model and evaluation metric.
Experimental Insights
The framework was evaluated across five benchmarks (CommonsenseQA, GSM8K, TruthfulQA, TriviaQA, and MATH) using models including Llama-3, Gemma-2, and Mistral-7B.
Key findings include:
- Task Fingerprints: Different domains exhibit unique uncertainty profiles. For instance, math-heavy tasks (MATH, GSM8K) show significantly higher Operational and Epistemic uncertainty compared to commonsense reasoning.
- Metric Specialization: Metrics are not universal; some, like Semantic Entropy, are better suited for Epistemic uncertainty, while others struggle with complex reasoning.
- Model Size and Tolerance: Larger models do not necessarily exhibit lower raw uncertainty but demonstrate a higher tolerance for it, maintaining accuracy even when uncertainty scores are high.
Results and Performance
The adaptive selection strategy was evaluated using Normalized Discounted Cumulative Gain (NDCG). The "uncertainty-aware" approach consistently outperformed baseline methods:
- Metric Selection: Achieved a 3.7% average gain in identifying the optimal metric for a task.
- Model Selection: Achieved a 5.5% average gain in selecting the best-performing model based on its uncertainty profile.
The method proved particularly effective at top-tier selection ($K=1$ or $2$), making it highly practical for real-world deployment.
Conclusion and Future Work
While the current framework provides a significant step toward interpretable uncertainty, the authors note that source disentanglement is not yet perfect; uncertainty can "leak" between stages. Future work will focus on refining these estimators and extending the framework to multi-modal and long-form generation tasks.
Summary updated