Papers › Distinguishing the Knowable from the Unknowable with Language Models

Distinguishing the Knowable from the Unknowable with Language Models

5 Feb 2024arXiv:2402.03563archive 2025-07-28

Gustaf Ahdritz, Tian Qin, Nikhil Vyas, Boaz Barak, Benjamin L. Edelman

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2402.03563")

Code

Syntology Ran 6 of 16 code samples harvested from 2 repositories linked to this paper; 10 have no recorded run. Of those that ran: 6 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 6 ran; community (archive-listed): 5 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

gahdritz/llm_uncertainty officialmentioned in paperpytorchApache-2.0 report
mims-harvard/spectra mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 6 ran; 0 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

6ran
10unverified

Licence: 0 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

build_rope_cache gahdritz/llm_uncertainty/lit-llama/model.py official repository ran Apache-2.0 (permissive) · fd462b61b82d4e41 · report
compute_entropy gahdritz/llm_uncertainty/repetition.py official repository ran fingerprinted Apache-2.0 (permissive) · 625d925ef1efd4f4 · report
jsd gahdritz/llm_uncertainty/lit-llama/utils.py official repository ran fingerprinted Apache-2.0 (permissive) · 6555dda0713b63e2 · report
llama_model_lookup gahdritz/llm_uncertainty/lit-llama/utils.py official repository ran Apache-2.0 (permissive) · 33a04a05cc4d445e · report
pythia_forward gahdritz/llm_uncertainty/precompute_logits.py official repository ran Apache-2.0 (permissive) · b3eb11b6f841e055 · report
read_shard gahdritz/llm_uncertainty/train_head_utils.py official repository ran Apache-2.0 (permissive) · aeff514913b60d52 · report
apply_rope gahdritz/llm_uncertainty/lit-llama/model.py official repository unverified Apache-2.0 (permissive) · 16b3ba074f0d8074 · report
lazy_load gahdritz/llm_uncertainty/lit-llama/utils.py official repository unverified Apache-2.0 (permissive) · 92f3dde3779ce5cb · report
mutual_information gahdritz/llm_uncertainty/generate_from_repetition.py official repository unverified Apache-2.0 (permissive) · 57c12d6227a85cb1 · report
repetition_experiment gahdritz/llm_uncertainty/repetition.py official repository unverified Apache-2.0 (permissive) · 24a0bd59545e8931 · report
simple_classification gahdritz/llm_uncertainty/generate_from_repetition.py official repository unverified Apache-2.0 (permissive) · de50ccf9e860e5bc · report
align_overlap mims-harvard/spectra/SPECTRA_paper/SPECTRA_SD/PEER_localization/calculate_sequence_similarity.py community (archive-listed) unverified MIT (permissive) · c44aa791d163dc8e · report
compare_to_all mims-harvard/spectra/SPECTRA_paper/SPECTRA_SD/PEER_localization/calculate_sequence_similarity.py community (archive-listed) unverified MIT (permissive) · 362c6a2a81602b1c · report
extract_data mims-harvard/spectra/SPECTRA_paper/SPECTRA_SD/TAPE_Homology/calculate_similarity.py community (archive-listed) unverified MIT (permissive) · 019a737a08eeaf7e · report
istarmap mims-harvard/spectra/SPECTRA_paper/SPECTRA_SD/PEER_localization/calculate_sequence_similarity.py community (archive-listed) unverified MIT (permissive) · 79344d1f8e7386a7 · report
run_independent_set mims-harvard/spectra/SPECTRA_paper/SPECTRA_MSD/TB_Covid_GFP/utils/independent_set_algorithm.py community (archive-listed) unverified MIT (permissive) · 3e6cd88740fb23a0 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections