The Challenge of LLM Uncertainty
When a Large Language Model (LLM) provides a shaky, vague, or incorrect answer, it is often difficult to determine why. Is the prompt poorly phrased and ambiguous (e.g., "Who is the president?" without specifying the country), or does the model simply lack the factual knowledge to answer?
In machine learning, this distinction is categorized into two types of uncertainty:
- Aleatoric uncertainty: Arises from inherent randomness or ambiguity in the data (the prompt).
- Epistemic uncertainty: Arises from a lack of knowledge within the model itself.
Traditional deep learning relies on "Deep Ensembles" (training multiple models) to separate these sources. However, LLMs are massive and often restricted behind APIs, making traditional ensembling impractical. Existing tools usually provide a single "total uncertainty" score, leaving users guessing whether they should rephrase their question or provide the model with external context.
A Symmetrical Solution: Input Clarification Ensembling
To solve this, the authors propose Input Clarification Ensembling, a clever "symmetrical" alternative to traditional model ensembles. Instead of ensembling different models on the same input, they ensemble different clarifications of the input on the same model.
The framework operates in three black-box-friendly steps:
- Input Clarification: Given an ambiguous input, a "clarification LLM" (like GPT-4 or a fine-tuned Llama-3) generates a set of potential disambiguations. For example, "Who is the president?" becomes "Who is the president of the US in 2024?" and "Who is the president of France in 2024?".
- Ensembling: The target LLM processes each of these clarified prompts independently.
- Decomposition:
- Aleatoric Uncertainty is measured by the disagreement (Mutual Information) between the model's predictions across the different clarifications. High disagreement means the original prompt was highly ambiguous.
- Epistemic Uncertainty is measured by the average uncertainty of the individual clarified predictions. If the model remains unsure even after the prompt is made highly specific, it likely lacks the underlying knowledge.
This approach requires no access to gradients or internal model weights, making it universally applicable to API-based LLMs.
Key Insights and Actionable Feedback
The most elegant insight of this paper is the Symmetry Principle: manipulating the input space (via clarifications) is mathematically analogous to manipulating the parameter space (via ensembling models). While we cannot easily change the parameters of a 70-billion parameter model, we can easily change its prompt.
By separating these two types of uncertainty, AI systems can provide highly actionable feedback:
- High Aleatoric Uncertainty: The system should ask the user a clarifying question ("I'm confused, did you mean A or B?").
- High Epistemic Uncertainty: The system should trigger a Retrieval-Augmented Generation (RAG) pipeline to fetch external knowledge.
Empirical Results
The researchers evaluated their framework across several benchmarks, including Natural Questions (NQ), GSM8K (math reasoning), AmbigQA, and a newly introduced benchmark called AmbigInst (designed to test ambiguous instructions).
- Mistake Detection: The method matches or exceeds state-of-the-art baselines like Semantic Entropy in predicting when a model is likely to be wrong. On the GSM8K math dataset, it achieved an impressive AUROC of 89.7.
- Ambiguity Detection: The framework significantly outperformed all baselines in identifying ambiguous prompts. On the AmbigInst dataset, it reached an AUROC of 81.3, compared to just 66.0 for standard Semantic Entropy.
- Performance Boost: By "soliciting clarifications"—showing the user the generated disambiguations—the recall of correct answers improved significantly compared to forcing the model to answer the original vague prompt.
Limitations and Future Work
While powerful, the framework has a few limitations:
- Calibration Dependency: The method relies on the target LLM being reasonably well-calibrated. If a model is "confidently wrong," this method will struggle to flag the error.
- The "Clarifier" Bottleneck: The system is only as good as the clarifications it generates. If the clarification LLM fails to spot a specific ambiguity, aleatoric uncertainty will be underestimated.
- Inference Cost: Processing multiple clarified versions of a prompt increases token usage, leading to higher latency and costs in production environments.
Future work will explore more sophisticated clarification modules and the integration of this framework into interactive, human-in-the-loop AI assistants.
Summary updated