Distinguishing the Knowable from the Unknowable with Language Models

Gustaf Ahdritz, Tian Qin, Nikhil Vyas, Boaz Barak, Benjamin L. Edelman
2/5/2024
cs.LGcs.AIcs.CL

No official code found. Best implementation: KempnerInstitute/llm_uncertainty (11 stars, Apache-2.0, last commit 2024-04-15). 1 more below.

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.

View on arXivView PDF

Code Implementations(2)

Apache-2.0

Code for the paper "Distinguishing the Knowable from the Unknowable with Language Models"

111PythonFeb 2, 20242 years agoApache-2.0

Building on the results in the paper - Distinguishing the Knowable from the Unknowable with Language Models, Gustaf Ahdritz, Tian Qin, Nikhil Vyas, Boaz Barak, and Benjamin L. Edelman and complementing their results

10Python, Jupyter NotebookJun 9, 20251 years ago

Cite this paper

@article{ahdritz2024distinguishing,
  title  = {Distinguishing the Knowable from the Unknowable with Language Models},
  author = {Gustaf Ahdritz and Tian Qin and Nikhil Vyas and Boaz Barak and Benjamin L. Edelman},
  year   = {2024},
  eprint = {2402.03563},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.03563v2},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.03563.svg)](https://codeofpaper.com/paper/2402.03563)

Discussion