Abstract
Current safety paradigms in Large Language Models (LLMs) often rely on a conservative approach: when a model is uncertain, it is programmed to refuse the answer or provide a disclaimer. This paper argues that such passive avoidance is insufficient for building truly reliable systems. Instead, the authors propose a shift toward active resolution by adopting the Bayesian Modeling of Experiments (BME) framework. By expanding the definition of epistemic uncertainty beyond model parameters to include prompt-level and contextual variables, developers can systematically identify the source of uncertainty—whether it stems from ambiguous user intent, poor prompt formatting, or missing internal knowledge—and take targeted actions to resolve it.
Introduction
When a Large Language Model (LLM) encounters a query it cannot confidently answer, the result is often a "hallucination" or a generic refusal. Traditionally, the AI safety community has treated uncertainty as a signal for caution. However, this treatment assumes uncertainty is a monolithic problem. In reality, a model’s hesitation can stem from diverse sources: a user’s prompt might be linguistically ambiguous (e.g., "What is the capital of Georgia?"), the prompt template might be suboptimal, or the model may simply lack the necessary factual data in its weights.
This paper posits that the current inability to distinguish between these sources prevents us from "fixing" the model's output. By reframing these challenges through the lens of Bayesian Modeling of Experiments (BME), the authors suggest that we can move from passive refusal to active information gathering, transforming uncertainty from a roadblock into a diagnostic tool.
The Problem: Uncertainty is Not a Monolith
In classical machine learning, uncertainty is often divided into two categories: aleatoric (inherent randomness in the data) and epistemic (uncertainty due to a lack of knowledge that could, in theory, be reduced). Traditionally, epistemic uncertainty in LLMs has been confined to the model's parameters—the "in-weight" knowledge acquired during training.
The authors argue this definition is too narrow. They identify three primary drivers of uncertainty in LLM interactions:
- Ambiguity: The user’s intent is unclear or the prompt has multiple valid interpretations.
- Template Sensitivity: The model’s performance fluctuates based on arbitrary formatting choices, such as whitespace or capitalization.
- Knowledge Gaps: The model lacks the specific facts required to answer the query.
Without a framework to differentiate these, a model cannot know whether it should ask the user for clarification, search an external database, or simply try a different prompt format.
Methods: Bayesian Modeling of Experiments (BME)
The proposed solution is the BME framework, which provides a unifying mathematical foundation for LLM interactions.
The "Experiment" Metaphor
BME treats every interaction with an LLM—such as providing a few-shot example, a specific prompt template, or a clarification question—as an "experiment." The goal of these experiments is to reduce the model's uncertainty regarding the correct output.
Information Theory and EIG
To quantify the value of an interaction, the framework utilizes Expected Information Gain (EIG). By measuring Shannon Entropy and KL-divergence, the system can calculate how much a specific "experiment" (e.g., a specific clarification question) would reduce the model's total uncertainty. This allows the system to proactively select the most informative path forward rather than guessing or refusing.
Unifying Heuristics
A significant contribution of this work is the "retrofitting" of existing, ad-hoc LLM techniques into the BME framework. The authors demonstrate that several popular methods are actually specific instances of Bayesian information gain:
- Semantic Entropy: Clustering similar meanings to filter out linguistic noise.
- Prompt Optimization: Selecting templates that maximize mutual information between the prompt and the desired output.
Key Insights: Uncertainty as a Relative Property
One of the paper's most provocative claims is that the boundary between epistemic and aleatoric uncertainty is relative to the tools available to the system.
If a model has the capacity to ask a user for clarification, the uncertainty caused by an ambiguous prompt is epistemic (reducible). If the model is a static API with no feedback loop, that same ambiguity becomes effectively aleatoric (irreducible). By viewing prompt engineering and Retrieval-Augmented Generation (RAG) as experiments, developers can use rigorous Bayesian mathematics to optimize system behavior rather than relying on "vibes" or trial-and-error.
Results and Conceptual Unification
As a position paper, the primary result is the theoretical alignment of disparate research threads. The authors show that:
- Intent Disambiguation: Methods like INTENT-SIM are formal approximations of BME-based information gain.
- Mathematical Compatibility: The authors provide proofs in the appendices showing that BME is fully compatible with classical machine learning definitions, bridging the gap between traditional Bayesian statistics and modern transformer-based engineering.
Limitations and Future Work
While BME offers a robust theoretical path, several practical hurdles remain:
- Computational Complexity: Real-world uncertainty often involves multiple overlapping sources. Calculating the optimal experiment across all possible prompt variations and knowledge retrievals is computationally expensive.
- The Problem of Priors: Bayesian methods require a "prior" distribution. Defining a mathematically sound prior in the near-infinite space of natural language remains a significant challenge.
- Unknown Unknowns: BME requires the developer to hypothesize the source of uncertainty. If a model is confused for a reason not accounted for in the model's design, the framework cannot resolve it.
Conclusion
The authors call for a new research agenda focused on "fractional factorial designs" for LLMs—methods to test multiple uncertainty-reducing factors efficiently. By extending epistemic uncertainty beyond parameters and into the realm of experimental design, we can move toward LLMs that don't just say "I don't know," but instead say, "I'm not sure—let me ask the right question to find out."
Summary updated