SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.20490 · 2026

ECUAS n : A family of metrics for principled evaluation of uncertainty-augmented systems

Pablo Piantanida, Luciana Ferrer, Lautaro Estienne, Erik Ernst, Matías Vera

arXiv · PDF

Code that ran

10 of 13 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 7 failures of our instrument; 3 no recorded run), measured 2026-11-23; 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/2605.20490.json · badge: /api/ran/2605.20490.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
erikernst4/callm canonical (classifier label)
classifier basis: census
3 ran · 0 no recorded run
luferrer/expected_cost community
Papers with Code archive
7 ran · 3 no recorded run
FunctionStatusWhere it lives
CostMatrix Ran
ran on a synthesized input · constructed an object; no result was computed
luferrer/expected_cost/expected_cost/ec.py
code served (permissive licence) · get_code("818b04bf40101f71")
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 an instance of its own class, CostMatrix: the run constructed the object and did not call it, so no result was computed. 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 a simple cost matrix for the CostMatrix class
# The __init__ method takes 'costs' parameter
# Looking at the code, costs should be a 2D array-like structure
# with rows representing true classes and columns representing decisions

costs_matrix = np.array([
    [0, 1, 1],      # True class 0: cost 0 for decision 0, cost 1 for decisions 1 and 2
    [1, 0, 1],      # True class 1: cost 1 for decision 0, cost 0 for decision 1, cost 1 for decision 2
    [1, 1, 0]       # True class 2: cost 1 for decisions 0 and 1, cost 0 for decision 2
])

ARGS = {
    'costs': costs_matrix
}
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 CostMatrix — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a CostMatrix 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
answer_index_to_letter Ran
ran; our contract draft was wrong, not the code
erikernst4/callm/callm/prompts/mmlu.py
code served (permissive licence) · get_code("f853f957bc781793")
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 str. 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)

ARGS = {
    "index": 0
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
average_cost_from_confusion_matrix Ran
ran; our contract draft was wrong, not the code
luferrer/expected_cost/expected_cost/ec.py
code served (permissive licence) · get_code("c7924f71b252f4be")
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 float64, ndim 0, 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

class CostMatrix:
    """Stand-in class for cost matrix object"""
    def __init__(self, matrix):
        self.matrix = matrix
    
    def get_matrix(self):
        return self.matrix

# Set up small confusion matrix R (3x3: 3 classes, 3 decision options)
# Each row sums to 1.0 (fraction of samples per class)
R = np.array([
    [0.8, 0.1, 0.1],
    [0.2, 0.7, 0.1],
    [0.1, 0.2, 0.7]
])

# Set up class priors (3 classes)
priors = np.array([0.3, 0.4, 0.3])

# Set up cost matrix (3x3: true class vs decision)
# Zero-one cost: 0 for correct decisions, 1 for incorrect
costs = CostMatrix(np.array([
    [0.0, 1.0, 1.0],
    [1.0, 0.0, 1.0],
    [1.0, 1.0, 0.0]
]))

ARGS = {
    "R": R,
    "priors": priors,
    "costs": costs,
    "adjusted": False
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
bayes_decisions Ran
ran; our contract draft was wrong, not the code
luferrer/expected_cost/expected_cost/ec.py
code served (permissive licence) · get_code("f0cc3213726c2e2f")
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 numpy as np
from scipy.special import expit, logit, logsumexp

# Create a mock utils module with the required functions
class MockUtils:
    @staticmethod
    def llks_to_logpost(llks, priors):
        log_posteriors_unnormed = llks + np.log(priors)
        return log_posteriors_unnormed - logsumexp(log_posteriors_unnormed, axis=1, keepdims=True)
    
    @staticmethod
    def llrs_to_logpost(llrs, priors):
        logodds = llrs + np.log(priors[1] / priors[0])
        logpost_class1 = -logsumexp(np.c_[np.zeros_like(logodds), -logodds], axis=1)
        logpost_class0 = -logsumexp(np.c_[np.zeros_like(logodds), +logodds], axis=1)
        return np.c_[logpost_class0, logpost_class1]

utils = MockUtils()

# Create a mock cost matrix object
class CostMatrix:
    def __init__(self, matrix):
        self._matrix = matrix
    
    def get_matrix(self):
        return self._matrix

# Create test data
# For binary classification with log_posteriors score_type
num_samples = 2
num_classes = 2

# Log posteriors: shape (N, K)
log_scores = np.log(np.array([
    [0.7, 0.3],
    [0.4, 0.6]
]))

# Cost matrix: shape (K, K) - cost of predicting class j when true class is i
cost_matrix = np.array([
    [0, 1],      # Cost when true class is 0
    [2, 0]       # Cost when true class is 1
])

costs = CostMatrix(cost_matrix)

# Priors for the evaluation data
priors = np.array([0.5, 0.5])

ARGS = {
    'scores': log_scores,
    'costs': costs,
    'priors': priors,
    'score_type': 'log_posteriors',
    'silent': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
format_choices Ran
ran; our contract draft was wrong, not the code
erikernst4/callm/callm/prompts/mmlu.py
code served (permissive licence) · get_code("2b843a69da666503")
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 str. 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

# Construct valid arguments for format_choices
# The function takes a list of strings and formats them with letters A, B, C, D

ARGS = {
    'choices': [
        'First option',
        'Second option',
        'Third option',
        'Fourth option'
    ]
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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_last_llm_outputs_path Ran
ran; our contract draft was wrong, not the code
erikernst4/callm/callm/utils.py
code served (permissive licence) · get_code("3e5b842949fde932")
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 str. 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 os
import tempfile
import shutil

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()

# Create the lightning_logs directory with version subdirectories
lightning_logs_dir = os.path.join(temp_dir, 'lightning_logs')
os.makedirs(lightning_logs_dir, exist_ok=True)

# Create version_0 with llm_outputs.csv
version_0_dir = os.path.join(lightning_logs_dir, 'version_0')
os.makedirs(version_0_dir, exist_ok=True)
llm_outputs_path_0 = os.path.join(version_0_dir, 'llm_outputs.csv')
with open(llm_outputs_path_0, 'w') as f:
    f.write('output,data\n')

# Create version_1 (newer) without llm_outputs.csv
version_1_dir = os.path.join(lightning_logs_dir, 'version_1')
os.makedirs(version_1_dir, exist_ok=True)

# Create version_2 (newest) with llm_outputs.csv
version_2_dir = os.path.join(lightning_logs_dir, 'version_2')
os.makedirs(version_2_dir, exist_ok=True)
llm_outputs_path_2 = os.path.join(version_2_dir, 'llm_outputs.csv')
with open(llm_outputs_path_2, 'w') as f:
    f.write('output,data\n')

ARGS = {
    'log_dir': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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_posteriors_from_scores Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
luferrer/expected_cost/expected_cost/ec.py
code served (permissive licence) · get_code("ca15dfbfeb8955ad")
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 ndarray, ndim 2, dtype family float, shape (2, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 scipy.special import expit, logit, logsumexp

# Create small sample data for testing
np.random.seed(42)

# Test case 1: log_posteriors score type
scores_log_post = np.array([
    [-1.5, -2.0],
    [-0.5, -1.0],
], dtype=np.float32)

# Test case 2: posteriors score type
scores_post = np.array([
    [0.2, 0.8],
    [0.3, 0.7],
], dtype=np.float32)

# Test case 3: log_likelihoods score type
scores_llk = np.array([
    [-1.0, -2.0],
    [-0.5, -1.5],
], dtype=np.float32)

# Test case 4: log_likelihood_ratios score type
scores_llr = np.array([
    [0.5],
    [-0.5],
], dtype=np.float32)

# Priors for binary classification
priors = np.array([0.4, 0.6])

# Construct arguments for different test scenarios
ARGS = {
    'scores': scores_log_post,
    'priors': priors,
    'score_type': 'log_posteriors'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 2) — shape (2, 2) as a later run recorded it
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_priors_from_data Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
luferrer/expected_cost/expected_cost/ec.py
code served (permissive licence) · get_code("3c440f21da67deeb")
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 ndarray, ndim 2, dtype family float, shape (4, 1) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 arguments for get_priors_from_data
# The function takes targets (array of class labels) and num_classes (int)

# Create a simple targets array with class labels
targets = np.array([0, 1, 2, 0, 1, 2, 2])

# Number of classes
num_classes = 4

ARGS = {
    "targets": targets,
    "num_classes": num_classes
}
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 ndarray, ndim 2, dtype family float, shape (4, 1) — shape (4, 1) as a later run recorded it
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
llks_to_logpost Ran
ran, honoured the contract we drafted
luferrer/expected_cost/expected_cost/ec.py
code served (permissive licence) · get_code("23f87553a731f93a")
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 ndarray, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 scipy.special import expit, logit, logsumexp

# Set seed for reproducibility
np.random.seed(0)

# Create sample log likelihoods: shape (batch_size=2, num_classes=4)
# Each row contains log likelihoods for one sample across 4 classes
llks = np.array([
    [-1.5, -2.3, -0.8, -3.1],
    [-0.5, -1.2, -2.5, -0.9]
], dtype=np.float32)

# Create prior probabilities: shape (num_classes=4,)
# These should sum to 1
priors = np.array([0.1, 0.2, 0.3, 0.4], dtype=np.float32)

ARGS = {
    "llks": llks,
    "priors": priors
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
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
llrs_to_logpost Ran
ran, honoured the contract we drafted
luferrer/expected_cost/expected_cost/ec.py
code served (permissive licence) · get_code("8f4e6ee6e8b1f45b")
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 ndarray, ndim 2, dtype family float, shape (4, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 scipy.special import expit, logit, logsumexp

# Construct valid arguments for llrs_to_logpost

# llrs: log-likelihood-ratios, should be a 1D or 2D numpy array
llrs = np.array([-1.5, 0.3, 1.2, -0.8])

# priors: class priors [P0, P1], should sum to 1 (or at least be positive)
priors = np.array([0.3, 0.7])

ARGS = {
    "llrs": llrs,
    "priors": priors,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (4, 2) — shape (4, 2) as a later run recorded it
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
average_cost Not yet run
unverified (harvested, no recorded run)
luferrer/expected_cost/expected_cost/ec.py
code served (permissive licence) · get_code("cc74b9e05fc3002b")
How it ran

no invocation recorded.

average_cost_for_bayes_decisions Not yet run
unverified (harvested, no recorded run)
luferrer/expected_cost/expected_cost/ec.py
code served (permissive licence) · get_code("6d8e614bd1e91643")
How it ran

no invocation recorded.

generalized_confusion_matrix Not yet run
unverified (harvested, no recorded run)
luferrer/expected_cost/expected_cost/ec.py
code served (permissive licence) · get_code("596b735ec2604cb2")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 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 13 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-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

In high-stakes automated decision-making, access to predictive uncertainty is essential for enabling users -human or downstream systems -to accept or reject predictions based on application-specific cost trade-offs. Such uncertainty-augmented (UA) systems -i.e., systems that output both predictions and uncertainty scoresare currently being assessed in the literature in a variety of ways, using separate metrics to evaluate the predictions and the uncertainty scores, setting a cost function with a fixed rejection cost or integrating over a coverage-risk curve. We argue that these evaluation approaches are inadequate for assessing overall performance of the UA system for decision making under uncertainty and propose a novel family of metrics, ECUAS n , formulated as proper scoring rules for the task of interest. The parameter n controls the trade-off between the cost of incorrect predictions and imperfect uncertainties depending on the needs of the use-case. We demonstrate the advantages of the ECUAS n metrics both theoretically and empirically, through experiments on diverse classification and generation datasets, including a manually annotated subset of TriviaQA.

For agents

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

get_harvested_code_for_paper("2605.20490")
get_code_for_paper("2605.20490")
have("2605.20490")

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

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

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

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

Connect an agent — have() is free.