Skip to main content
QUICK REVIEW

[Paper Review] Distinguishing the Knowable from the Unknowable with Language Models

Gustaf Ahdritz, Tian Qin|arXiv (Cornell University)|Feb 5, 2024
Explainable Artificial Intelligence (XAI)Computer Science3 citations
TL;DR

This paper proposes a method to distinguish epistemic uncertainty (knowledge-based) from aleatoric uncertainty (inherent randomness) in large language model (LLM) outputs using a larger model as a proxy for ground truth. It introduces supervised linear probes and an unsupervised In-Context Learning Test (ICLT) that leverage model activations to classify uncertainty types, achieving non-trivial accuracy and generalization across domains, demonstrating that LLMs inherently encode distinguishable uncertainty representations.

ABSTRACT

We study the feasibility of identifying epistemic uncertainty (reflecting a lack of knowledge), as opposed to aleatoric uncertainty (reflecting entropy in the underlying distribution), in the outputs of large language models (LLMs) over free-form text. In the absence of ground-truth probabilities, we explore a setting where, in order to (approximately) disentangle a given LLM's uncertainty, a significantly larger model stands in as a proxy for the ground truth. We show that small linear probes trained on the embeddings of frozen, pretrained models accurately predict when larger models will be more confident at the token level and that probes trained on one text domain generalize to others. Going further, we propose a fully unsupervised method that achieves non-trivial accuracy on the same task. Taken together, we interpret these results as evidence that LLMs naturally contain internal representations of different types of uncertainty that could potentially be leveraged to devise more informative indicators of model confidence in diverse practical settings.

Motivation & Objective

  • To address the challenge of distinguishing between epistemic uncertainty (lack of knowledge) and aleatoric uncertainty (inherent distributional entropy) in free-form LLM outputs.
  • To develop a practical framework for identifying when model uncertainty stems from ignorance rather than inherent randomness, especially in unstructured text.
  • To enable improved model confidence estimation and hallucination mitigation by detecting epistemic uncertainty during generation.
  • To explore whether LLMs naturally encode separable representations of different uncertainty types, enabling detection via probes or self-supervised methods.

Proposed method

  • Use a larger, more capable LLM as a proxy for the true underlying distribution to label uncertainty types in smaller target models.
  • Train linear and non-linear probes on frozen, pretrained model activations to predict whether uncertainty in a small model is epistemic or aleatoric based on the larger model’s confidence.
  • Propose an unsupervised In-Context Learning Test (ICLT) that evaluates model behavior on repeated prompts with candidate tokens to infer uncertainty type without labels.
  • Use the minimum entropy among multiple in-context forward passes as a proxy for the large model’s uncertainty, classifying the small model’s uncertainty accordingly.
  • Apply the method across diverse text domains, evaluating probe generalization and robustness to distributional shifts.
  • Leverage scaling laws to justify the assumption that larger models reduce epistemic uncertainty, forming the basis for the labeling scheme.
Figure 1: Simplified overview of our classification task and the supervised method. Left: The supervised uncertainty classification task. A dataset of labeled prompts is created by running a large LLM on existing text and thresholding its predictive entropy near zero. Right: We train probes on activ
Figure 1: Simplified overview of our classification task and the supervised method. Left: The supervised uncertainty classification task. A dataset of labeled prompts is created by running a large LLM on existing text and thresholding its predictive entropy near zero. Right: We train probes on activ

Experimental results

Research questions

  • RQ1Can epistemic and aleatoric uncertainty be disentangled in free-form LLM outputs using a larger model as a proxy for ground truth?
  • RQ2Can small linear probes trained on frozen model activations accurately predict uncertainty types across different text domains?
  • RQ3Can an unsupervised method like ICLT achieve non-trivial performance in identifying epistemic uncertainty without labeled data?
  • RQ4Do LLMs inherently encode distinguishable representations of different uncertainty types that can be probed effectively?
  • RQ5To what extent can uncertainty classification improve hallucination detection and model confidence estimation?

Key findings

  • Small linear probes trained on frozen model embeddings achieve high accuracy in predicting whether a small model’s uncertainty is epistemic or aleatoric, using a larger model as a proxy.
  • Probes trained on one text domain generalize effectively to other domains, indicating robust and transferable uncertainty representations.
  • The unsupervised In-Context Learning Test (ICLT) achieves non-trivial accuracy in identifying epistemic uncertainty without requiring labeled data.
  • The results suggest that LLMs naturally encode separable internal representations of epistemic and aleatoric uncertainty, which can be leveraged for confidence estimation.
  • The method enables detection of high-risk hallucination-prone tokens by identifying primarily epistemic uncertainty, offering a path to intervention during generation.
  • The framework provides a foundation for improving truthfulness in LLM outputs through uncertainty-aware generation and fine-tuning.
Figure 3: High-level classification results for our supervised and unsupervised methods. ROC curves for linear probes trained with the model pairing LLaMA 7B / LLaMA 65B, evaluated both in ( left ) and out ( middle ) of the distribution of the probes’ Wikipedia training data. All classifier probes a
Figure 3: High-level classification results for our supervised and unsupervised methods. ROC curves for linear probes trained with the model pairing LLaMA 7B / LLaMA 65B, evaluated both in ( left ) and out ( middle ) of the distribution of the probes’ Wikipedia training data. All classifier probes a

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.