SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.12794 · NeurIPS · 2024

Benchmarking LLMs via Uncertainty Quantification

Shuming Shi, Longyue Wang, Derek Wong, Zhaopeng Tu, Emine Yilmaz, Fanghua Ye, Mingming Yang, Jianhui Pang

arXiv · PDF · Open in the Atlas

Code that ran

13 of 17 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, 1 violated it and 0 have no contract verdict; 12 failures of our instrument; 4 no recorded run); 2 of them were also run on the host, not in the jail, by the peer-agreement lane that set their level, measured 2026-11-23; 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/2401.12794.json · badge: /api/ran/2401.12794.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
smartyfh/llm-uncertainty-bench canonical (classifier label)
classifier basis: classifier_2025
12 ran · 4 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
load_data Ran
ran; our contract draft was wrong, not the code
smartyfh/llm-uncertainty-bench/generate_logits.py
code served (permissive licence) · get_code("9cb5a160cb942951")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned dict. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-05T01:10:40Z). If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import tempfile
import os

# Create a temporary JSON file with sample data
temp_dir = tempfile.mkdtemp()
data_file = os.path.join(temp_dir, "test_data.json")

sample_data = {
    "key1": "value1",
    "key2": [1, 2, 3],
    "key3": {"nested": "object"}
}

with open(data_file, 'w') as f:
    json.dump(sample_data, f)

ARGS = {
    "data_file": data_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
softmax Ran
ran, violated the contract we drafted
this paper's copy was not recorded; identical code first harvested from samuelschmidgall/randommutationsearch
pointer only · get_code("7f9b15275ca5759c")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

cal_acc Ran
ran; our contract draft was wrong, not the code
smartyfh/llm-uncertainty-bench/uncertainty_quantification_via_cp.py
code served (permissive licence) · get_code("1a38d8124050f460")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from collections import Counter

# Define the options that the function uses
options = ['A', 'B', 'C', 'D', 'E', 'F']

# Create sample logits data
logits_data_all = {
    'prompt1_icl1': {
        'test': [
            {'id': 0, 'logits_options': np.array([0.1, 0.2, 0.3, 0.25, 0.1, 0.05])},
            {'id': 1, 'logits_options': np.array([0.05, 0.1, 0.15, 0.2, 0.3, 0.2])},
        ]
    },
    'prompt1_icl2': {
        'test': [
            {'id': 0, 'logits_options': np.array([0.2, 0.1, 0.25, 0.15, 0.2, 0.1])},
            {'id': 1, 'logits_options': np.array([0.1, 0.2, 0.1, 0.15, 0.25, 0.2])},
        ]
    },
    'prompt2_icl1': {
        'test': [
            {'id': 0, 'logits_options': np.array([0.15, 0.25, 0.2, 0.1, 0.2, 0.1])},
            {'id': 1, 'logits_options': np.array([0.2, 0.15, 0.1, 0.25, 0.2, 0.1])},
        ]
    },
    'prompt2_icl2': {
        'test': [
            {'id': 0, 'logits_options': np.array([0.1, 0.15, 0.2, 0.2, 0.25, 0.1])},
            {'id': 1, 'logits_options': np.array([0.25, 0.1, 0.2, 0.1, 0.15, 0.2])},
        ]
    },
}

# Create sample raw test data
test_raw_data = [
    {'id': 0, 'answer': 'C'},
    {'id': 1, 'answer': 'E'},
]

# Define prompt and ICL methods
prompt_methods = ['prompt1', 'prompt2']
icl_methods = ['icl1', 'icl2']

ARGS = {
    'logits_data_all': logits_data_all,
    'test_raw_data': test_raw_data,
    'prompt_methods': prompt_methods,
    'icl_methods': icl_methods,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
cal_coverage Ran
ran; our contract draft was wrong, not the code
smartyfh/llm-uncertainty-bench/uncertainty_quantification_via_cp.py
code served (permissive licence) · get_code("2d8b9343c19529f9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Construct pred_sets_all: dict mapping method combinations to prediction sets
# Each prediction set maps test_id to a set of predicted answers
pred_sets_all = {
    'method1_fs1': {
        'test_0': {'answer_a', 'answer_b'},
        'test_1': {'answer_c'},
        'test_2': {'answer_a', 'answer_d'},
    },
    'method1_fs2': {
        'test_0': {'answer_a'},
        'test_1': {'answer_b', 'answer_c'},
        'test_2': {'answer_d'},
    },
    'method2_fs1': {
        'test_0': {'answer_b', 'answer_c'},
        'test_1': {'answer_c'},
        'test_2': {'answer_a'},
    },
    'method2_fs2': {
        'test_0': {'answer_a', 'answer_b', 'answer_c'},
        'test_1': {'answer_d'},
        'test_2': {'answer_a', 'answer_d'},
    },
}

# Construct test_id_to_answer: dict mapping test_id to ground truth answer
test_id_to_answer = {
    'test_0': 'answer_a',
    'test_1': 'answer_c',
    'test_2': 'answer_a',
}

# Construct prompt_methods and icl_methods
prompt_methods = ['method1', 'method2']
icl_methods = ['fs1', 'fs2']

ARGS = {
    'pred_sets_all': pred_sets_all,
    'test_id_to_answer': test_id_to_answer,
    'prompt_methods': prompt_methods,
    'icl_methods': icl_methods,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
cal_set_size Ran
ran; our contract draft was wrong, not the code
smartyfh/llm-uncertainty-bench/uncertainty_quantification_via_cp.py
code served (permissive licence) · get_code("b53afba9c0da9944")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct pred_sets_all
# This is a dict where keys are combinations of prompt_methods and icl_methods
# Values are dicts where keys are arbitrary and values are sets/lists
pred_sets_all = {
    'prompt1_icl1': {
        'sample1': [1, 2, 3],
        'sample2': [4, 5],
        'sample3': [6, 7, 8, 9]
    },
    'prompt1_icl2': {
        'sample1': [1, 2],
        'sample2': [3, 4, 5, 6],
        'sample3': [7]
    },
    'prompt2_icl1': {
        'sample1': [1],
        'sample2': [2, 3, 4],
        'sample3': [5, 6]
    },
    'prompt2_icl2': {
        'sample1': [1, 2, 3, 4, 5],
        'sample2': [6],
        'sample3': [7, 8]
    }
}

prompt_methods = ['prompt1', 'prompt2']
icl_methods = ['icl1', 'icl2']

ARGS = {
    'pred_sets_all': pred_sets_all,
    'prompt_methods': prompt_methods,
    'icl_methods': icl_methods
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
cal_uacc Ran
ran; our contract draft was wrong, not the code
smartyfh/llm-uncertainty-bench/uncertainty_quantification_via_cp.py
code served (permissive licence) · get_code("50a4b22e789fd992")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Analyze the function:
# - results_acc: dict where values are numeric (used in multiplication with np.sqrt)
# - set_sizes: dict where values are numeric (used as divisor)
# - Both dicts should have the same keys
# - The function iterates over results_acc.items()

# Create sample data
results_acc = {
    'model_1': 0.85,
    'model_2': 0.92,
    'model_3': 0.78
}

set_sizes = {
    'model_1': 2,
    'model_2': 3,
    'model_3': 4
}

ARGS = {
    'results_acc': results_acc,
    'set_sizes': set_sizes
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
convert_id_to_ans Ran
ran; our contract draft was wrong, not the code
smartyfh/llm-uncertainty-bench/uncertainty_quantification_via_cp.py
code served (permissive licence) · get_code("037e99602ccc4435")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# Analyze the function: it iterates over test_raw_data, 
# accessing row['id'] and row['answer'] for each row.
# test_raw_data should be a list of dicts with 'id' and 'answer' keys.

test_raw_data = [
    {'id': 1, 'answer': 'cat'},
    {'id': 2, 'answer': 'dog'},
    {'id': 3, 'answer': 'bird'},
]

ARGS = {
    'test_raw_data': test_raw_data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_accuracy Ran
ran; our contract draft was wrong, not the code
smartyfh/llm-uncertainty-bench/uncertainty_quantification_via_cp.py
code served (permissive licence) · get_code("7027200b9089953e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Construct logits_data: list of dicts with 'id' and 'logits_options'
logits_data = [
    {
        'id': 'sample_0',
        'logits_options': np.array([0.1, 0.9, 0.2, 0.3, 0.15, 0.25])
    },
    {
        'id': 'sample_1',
        'logits_options': np.array([0.5, 0.2, 0.8, 0.1, 0.3, 0.4])
    }
]

# Construct raw_data: list of dicts with 'id' and 'answer'
raw_data = [
    {
        'id': 'sample_0',
        'answer': 'B'
    },
    {
        'id': 'sample_1',
        'answer': 'C'
    }
]

ARGS = {
    'logits_data': logits_data,
    'raw_data': raw_data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_fewshot_exps Ran
ran; our contract draft was wrong, not the code
smartyfh/llm-uncertainty-bench/generate_logits.py
code served (permissive licence) · get_code("50b7e2a98d17a3d4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

# Construct data parameter - a list of dictionaries
# The function accesses data[0]['source'] and data[idx]['id']
# We need to match the few_shot_exp_ids structure

data = []

# Create entries for MMLU dataset with indices 0, 1, 3, 5, 7, 9
for i in range(10):
    data.append({
        'source': 'MMLU',
        'id': i,
        'text': f'sample_{i}',
        'label': i % 2
    })

ARGS = {
    'data': data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_logits_data Ran
ran; our contract draft was wrong, not the code
smartyfh/llm-uncertainty-bench/uncertainty_quantification_via_cp.py
code served (permissive licence) · get_code("fc79c5e7f5428533")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import pickle
import os
import tempfile
import numpy as np

# Create a temporary directory for logits files
temp_dir = tempfile.mkdtemp()

# Create mock logits data files
model_name = "test_model"
data_name = "test_data"
prompt_methods = ["method1", "method2"]
icl_methods = ["icl1", "icl2"]

# Generate and save mock logits data
for m in prompt_methods:
    for fs in icl_methods:
        logits_file = os.path.join(temp_dir, model_name + '_' + data_name + '_' + m + '_' + fs + '.pkl')
        # Create mock logits data with 25 items (after removing 5 ids, will have 20)
        mock_logits = [{"logits": np.random.randn(10), "label": i % 3} for i in range(25)]
        with open(logits_file, 'wb') as f:
            pickle.dump(mock_logits, f)

# Create mock raw data
# After removing 5 items from 25, we have 20 items
# With cal_ratio=0.5, we get 10 calibration and 10 test items
cal_raw_data = [{"text": f"cal_{i}", "label": i % 3} for i in range(10)]
test_raw_data = [{"text": f"test_{i}", "label": i % 3} for i in range(10)]

ARGS = {
    "model_name": "test_model",
    "data_name": "test_data",
    "cal_raw_data": cal_raw_data,
    "test_raw_data": test_raw_data,
    "logits_data_dir": temp_dir,
    "cal_ratio": 0.5,
    "prompt_methods": ["method1", "method2"],
    "icl_methods": ["icl1", "icl2"]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_logits_data Ran
ran; our contract draft was wrong, not the code
smartyfh/llm-uncertainty-bench/uncertainty_quantification_via_cp.py
code served (permissive licence) · get_code("d27097c4a183befa")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import pickle
import os
import tempfile
import numpy as np
from sklearn.model_selection import train_test_split

# Create a temporary directory for logits files
temp_dir = tempfile.mkdtemp()

# Create mock logits data files
model_name = "bert"
data_name = "dataset1"
prompt_methods = ["method1", "method2"]
icl_methods = ["icl_a", "icl_b"]

# Generate logits data with 15 items (after removing 5, we'll have 10)
# We need enough data to split into calibration and test sets
for m in prompt_methods:
    for fs in icl_methods:
        logits_file = os.path.join(temp_dir, model_name + '_' + data_name + '_' + m + '_' + fs + '.pkl')
        # Create 15 logits items, each a small dict or list representing model outputs
        logits_data = [{"logits": np.random.rand(3), "label": i % 2} for i in range(15)]
        with open(logits_file, 'wb') as f:
            pickle.dump(logits_data, f)

# Create calibration and test raw data
# After removing 5 items from 15, we have 10 items
# With cal_ratio=0.6, we should get 6 calibration and 4 test items
cal_raw_data = [{"text": f"cal_{i}"} for i in range(6)]
test_raw_data = [{"text": f"test_{i}"} for i in range(4)]

ARGS = {
    "model_name": "bert",
    "data_name": "dataset1",
    "cal_raw_data": cal_raw_data,
    "test_raw_data": test_raw_data,
    "logits_data_dir": temp_dir,
    "cal_ratio": 0.6,
    "prompt_methods": ["method1", "method2"],
    "icl_methods": ["icl_a", "icl_b"]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_raw_data Ran
ran; our contract draft was wrong, not the code
smartyfh/llm-uncertainty-bench/uncertainty_quantification_via_cp.py
code served (permissive licence) · get_code("756bbcda282e506a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import os
import tempfile
import shutil

# Create a temporary directory for test data
temp_dir = tempfile.mkdtemp()

# Create sample raw data as JSON
sample_data = [
    {"id": 0, "text": "sample text 0"},
    {"id": 1, "text": "sample text 1"},
    {"id": 2, "text": "sample text 2"},
    {"id": 3, "text": "sample text 3"},
    {"id": 4, "text": "sample text 4"},
    {"id": 5, "text": "sample text 5"},
    {"id": 6, "text": "sample text 6"},
    {"id": 7, "text": "sample text 7"},
    {"id": 8, "text": "sample text 8"},
    {"id": 9, "text": "sample text 9"},
    {"id": 10, "text": "sample text 10"},
    {"id": 11, "text": "sample text 11"},
    {"id": 12, "text": "sample text 12"},
    {"id": 13, "text": "sample text 13"},
    {"id": 14, "text": "sample text 14"},
]

# Write sample data to JSON file
data_file_path = os.path.join(temp_dir, "test_data.json")
with open(data_file_path, 'w') as f:
    json.dump(sample_data, f)

ARGS = {
    "raw_data_dir": temp_dir,
    "data_name": "test_data",
    "cal_ratio": 0.7,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_raw_data Ran
ran; our contract draft was wrong, not the code
smartyfh/llm-uncertainty-bench/uncertainty_quantification_via_cp.py
code served (permissive licence) · get_code("f1da4e31dbe5407b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import os
import tempfile
from sklearn.model_selection import train_test_split

# Create a temporary directory for test data
temp_dir = tempfile.mkdtemp()

# Create sample raw data as a JSON file
sample_data = [
    {"id": 0, "text": "sample text 0"},
    {"id": 1, "text": "sample text 1"},
    {"id": 2, "text": "sample text 2"},
    {"id": 3, "text": "sample text 3"},
    {"id": 4, "text": "sample text 4"},
    {"id": 5, "text": "sample text 5"},
    {"id": 6, "text": "sample text 6"},
    {"id": 7, "text": "sample text 7"},
    {"id": 8, "text": "sample text 8"},
    {"id": 9, "text": "sample text 9"},
    {"id": 10, "text": "sample text 10"},
]

# Write sample data to JSON file
data_name = "test_data"
json_path = os.path.join(temp_dir, data_name + ".json")
with open(json_path, 'w') as f:
    json.dump(sample_data, f)

# Define arguments for get_raw_data function
ARGS = {
    "raw_data_dir": temp_dir,
    "data_name": data_name,
    "cal_ratio": 0.7,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
APS_CP Not yet run
unverified (harvested, no recorded run)
smartyfh/llm-uncertainty-bench/uncertainty_quantification_via_cp.py
code served (permissive licence) · get_code("6fc15eb0d745506b")
How it ran

no invocation recorded.

LAC_CP Not yet run
unverified (harvested, no recorded run)
smartyfh/llm-uncertainty-bench/uncertainty_quantification_via_cp.py
code served (permissive licence) · get_code("8f79d57c0ec1f93b")
How it ran

no invocation recorded.

apply_conformal_prediction Not yet run
unverified (harvested, no recorded run)
smartyfh/llm-uncertainty-bench/uncertainty_quantification_via_cp.py
code served (permissive licence) · get_code("051cab8f58895ebd")
How it ran

no invocation recorded.

softmax Not yet run
unverified (harvested, no recorded run)
smartyfh/llm-uncertainty-bench/uncertainty_quantification_via_cp.py
code served (permissive licence) · get_code("ae9771b6b08aedbd")
How it ran

no invocation recorded. this sample carries JSON test cases instead of a setup block; get_reference_implementation serves them with the level they back.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 5 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 5 later) and 9 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.

FunctionAlso present inEarliest-datedOthers named
softmax
brick of this paper's assembly: helper
12 other papers
4 dated earlier, 8 later
1411.2738 (2014-11)
word2vec Parameter Learning Explained
1803.05337 (2018-03)
Learning to Recognize Musical Genre from Audio
1906.05394 (2019-06)
Neural Arabic Question Answering
and 9 more not named here
get_fewshot_exps 1 other paper
1 later
2510.05566 (2025-10)
Domain-Shift-Aware Conformal Prediction for Large Language Models
get_logits_data
brick of this paper's assembly: data_transform
1 other paper
1 later
2510.05566 (2025-10)
Domain-Shift-Aware Conformal Prediction for Large Language Models
get_raw_data
brick of this paper's assembly: data_transform
1 other paper
1 later
2510.05566 (2025-10)
Domain-Shift-Aware Conformal Prediction for Large Language Models
load_data 1 other paper
1 later
2510.05566 (2025-10)
Domain-Shift-Aware Conformal Prediction for Large Language Models

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-23.

Repositories linked to this paper

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

Abstract

The proliferation of open-source Large Language Models (LLMs) from various institutions has highlighted the urgent need for comprehensive evaluation methods. However, current evaluation platforms, such as the widely recognized HuggingFace open LLM leaderboard, neglect a crucial aspect -uncertainty, which is vital for thoroughly assessing LLMs. To bridge this gap, we introduce a new benchmarking approach for LLMs that integrates uncertainty quantification. Our examination involves nine LLMs (LLM series) spanning five representative natural language processing tasks. Our findings reveal that: I) LLMs with higher accuracy may exhibit lower certainty; II) Larger-scale LLMs may display greater uncertainty compared to their smaller counterparts; and III) Instruction-finetuning tends to increase the uncertainty of LLMs. These results underscore the significance of incorporating uncertainty into the evaluation of LLMs. Our implementation is available at https://github.com/smartyfh/LLM-Uncertainty-Bench. * Corresponding author. 2 https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard 38th Conference on Neural Information Processing Systems (NeurIPS 2024) Track on Datasets and Benchmarks.

For agents

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

get_harvested_code_for_paper("2401.12794")
get_code_for_paper("2401.12794")
have("2401.12794")

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

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

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

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

Connect an agent — have() is free.