SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.15993 · 2024

Uncertainty Estimation and Quantification for LLMs: A Simple Supervised Approach

arXiv · PDF · Open in the Atlas

Code that ran

13 of 18 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 13 failures of our instrument; 5 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2404.15993.json · badge: /api/ran/2404.15993.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
LoveCatc/supervised-llm-uncertainty-estimation canonical (classifier label)
classifier basis: census
13 ran · 5 no recorded run
FunctionStatusWhere it lives
calculate_ece Ran
ran; our contract draft was wrong, not the code
LoveCatc/supervised-llm-uncertainty-estimation/utils/calibration_metrics.py
pointer only (licence: NONE) · get_code("b90f1534d7fd6f84")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LoveCatc/supervised-llm-uncertainty-estimation when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

calculate_nll Ran
ran; our contract draft was wrong, not the code
LoveCatc/supervised-llm-uncertainty-estimation/utils/calibration_metrics.py
pointer only (licence: NONE) · get_code("ee3bfb38567a7330")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LoveCatc/supervised-llm-uncertainty-estimation when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

calculate_nll_ece Ran
ran; our contract draft was wrong, not the code
LoveCatc/supervised-llm-uncertainty-estimation/utils/calibration_metrics.py
pointer only (licence: NONE) · get_code("96f7a0b4bbfc3427")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LoveCatc/supervised-llm-uncertainty-estimation when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

coqa_formatter Ran
ran; our contract draft was wrong, not the code
LoveCatc/supervised-llm-uncertainty-estimation/utils/data_entry.py
pointer only (licence: NONE) · get_code("9d13bc6d9727abfd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LoveCatc/supervised-llm-uncertainty-estimation when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

correlation_select_k_features Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
LoveCatc/supervised-llm-uncertainty-estimation/utils/funs_feature_selection.py
pointer only (licence: NONE) · get_code("bd39f0d24eaa33a4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LoveCatc/supervised-llm-uncertainty-estimation when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate_stopword_stopping_criteria Ran
ran; our contract draft was wrong, not the code
LoveCatc/supervised-llm-uncertainty-estimation/supervised_generation.py
pointer only (licence: NONE) · get_code("50864f75b834f39d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LoveCatc/supervised-llm-uncertainty-estimation when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_average_hidden_states Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
LoveCatc/supervised-llm-uncertainty-estimation/utils/funs_get_feature_X.py
pointer only (licence: NONE) · get_code("110e081edf72c07e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LoveCatc/supervised-llm-uncertainty-estimation when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_index_of_valid_X Ran
ran; our contract draft was wrong, not the code
LoveCatc/supervised-llm-uncertainty-estimation/utils/funs_load_X_and_Y.py
pointer only (licence: NONE) · get_code("5700274b87b272c4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LoveCatc/supervised-llm-uncertainty-estimation when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_last_token_hidden_states Ran
ran; our contract draft was wrong, not the code
LoveCatc/supervised-llm-uncertainty-estimation/utils/funs_get_feature_X.py
pointer only (licence: NONE) · get_code("7e7fb553593d2c2b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LoveCatc/supervised-llm-uncertainty-estimation when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

lasso_select_k_features Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
LoveCatc/supervised-llm-uncertainty-estimation/utils/funs_feature_selection.py
pointer only (licence: NONE) · get_code("ceccab32110fb3d9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LoveCatc/supervised-llm-uncertainty-estimation when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_llama2 Ran
ran; our contract draft was wrong, not the code
LoveCatc/supervised-llm-uncertainty-estimation/utils/funs_load_model.py
pointer only (licence: NONE) · get_code("31807cc05985187a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LoveCatc/supervised-llm-uncertainty-estimation when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mutual_info_select_k_features Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
LoveCatc/supervised-llm-uncertainty-estimation/utils/funs_feature_selection.py
pointer only (licence: NONE) · get_code("5d966d349a113a7b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LoveCatc/supervised-llm-uncertainty-estimation when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_text Ran
ran; our contract draft was wrong, not the code
LoveCatc/supervised-llm-uncertainty-estimation/utils/data_entry.py
pointer only (licence: NONE) · get_code("e32f292f91eab5d8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LoveCatc/supervised-llm-uncertainty-estimation when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

coqa_formatter_hf Not yet run
unverified (harvested, no recorded run)
LoveCatc/supervised-llm-uncertainty-estimation/utils/data_entry.py
pointer only (licence: NONE) · get_code("cb4222238d0d7761")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LoveCatc/supervised-llm-uncertainty-estimation when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_prob_statistics Not yet run
unverified (harvested, no recorded run)
LoveCatc/supervised-llm-uncertainty-estimation/utils/funs_get_feature_X.py
pointer only (licence: NONE) · get_code("6d2be7746bd82de0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LoveCatc/supervised-llm-uncertainty-estimation when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_MMLU_X_Y Not yet run
unverified (harvested, no recorded run)
LoveCatc/supervised-llm-uncertainty-estimation/utils/funs_load_X_and_Y.py
pointer only (licence: NONE) · get_code("dfae1827665ab944")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LoveCatc/supervised-llm-uncertainty-estimation when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_X_Y_with_phase Not yet run
unverified (harvested, no recorded run)
LoveCatc/supervised-llm-uncertainty-estimation/utils/funs_load_X_and_Y.py
pointer only (licence: NONE) · get_code("a366d95b77db279a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LoveCatc/supervised-llm-uncertainty-estimation when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_gemma Not yet run
unverified (harvested, no recorded run)
LoveCatc/supervised-llm-uncertainty-estimation/utils/funs_load_model.py
pointer only (licence: NONE) · get_code("b578098555ce09be")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LoveCatc/supervised-llm-uncertainty-estimation when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 18 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

In this paper, we study the problem of uncertainty estimation and calibration for LLMs. We begin by formulating the uncertainty estimation problem, a relevant yet underexplored area in existing literature. We then propose a supervised approach that leverages labeled datasets to estimate the uncertainty in LLMs' responses. Based on the formulation, we illustrate the difference between the uncertainty estimation for LLMs and that for standard ML models and explain why the hidden neurons of the LLMs may contain uncertainty information. Our designed approach demonstrates the benefits of utilizing hidden activations to enhance uncertainty estimation across various tasks and shows robust transferability in out-of-distribution settings. We distinguish the uncertainty estimation task from the uncertainty calibration task and show that better uncertainty estimation leads to better calibration performance. Furthermore, our method is easy to implement and adaptable to different levels of model accessibility including black box, grey box, and white box.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2404.15993")
get_code_for_paper("2404.15993")
have("2404.15993")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2404.15993.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2404.15993.svg)](https://syntology.ai/paper/2404.15993)

Connect an agent — have() is free.