SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.14614 · 2024

Evaluating language models as risk scores

arXiv · PDF · Open in the Atlas

Code that ran

11 of 16 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; 4 honoured the contract we drafted, 3 violated it and 0 have no contract verdict; 4 failures of our instrument; 5 no recorded run), 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/2407.14614.json · badge: /api/ran/2407.14614.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
socialfoundations/folktexts canonical (classifier label)
classifier basis: census
11 ran · 5 no recorded run
FunctionStatusWhere it lives
compute_best_threshold Ran
ran; our contract draft was wrong, not the code
socialfoundations/folktexts/folktexts/evaluation.py
code served (permissive licence) · get_code("cf37f3a9cdc6c7aa")
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 float, ndim 0, dtype family float, shape () 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

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

# Create synthetic binary classification data
n_samples = 50
y_true = np.array([0, 1] * (n_samples // 2))  # Binary labels
y_pred_scores = np.random.rand(n_samples)  # Predicted probabilities between 0 and 1

# Ensure we have variation in predictions
y_pred_scores = np.sort(y_pred_scores)

# Define the arguments dictionary
ARGS = {
    'y_true': y_true,
    'y_pred_scores': y_pred_scores,
    'false_pos_cost': 1.0,
    'false_neg_cost': 1.0,
}
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 float, ndim 0, dtype family float, shape () — shape () 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
decode_topk_logprobs_to_risk_estimate Ran
ran, honoured the contract we drafted
socialfoundations/folktexts/folktexts/llm_utils.py
code served (permissive licence) · get_code("5062267f04eb87f0")
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 float, ndim 0, dtype family float, shape () 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

class MockMultipleChoiceQA:
    """Mock QA interface for multiple choice questions."""
    def get_answer_from_model_output(self, probs, tokenizer_vocab):
        # probs shape: (n_passes, vocab_dim)
        # Return a risk estimate in [0, 1]
        # Simple mock: average max probability across passes
        max_probs = np.max(probs, axis=1)
        risk = 1.0 - np.mean(max_probs)
        return float(np.clip(risk, 0.0, 1.0))

class MockDirectNumericQA:
    """Mock QA interface for direct numeric questions."""
    def get_answer_from_model_output(self, probs, tokenizer_vocab):
        # probs shape: (n_passes, vocab_dim)
        # Return a risk estimate in [0, 1]
        # Simple mock: variance-based risk
        max_probs = np.max(probs, axis=1)
        risk = float(np.var(max_probs))
        return float(np.clip(risk, 0.0, 1.0))

# Create mock tokenizer vocab
tokenizer_vocab = {
    "a": 0,
    "b": 1,
    "c": 2,
    "d": 3,
    "end": 4,
    "pad": 5,
}

# Create top-K logprobs for 2 passes
per_pass_topk = [
    {
        0: np.log(0.5),
        1: np.log(0.3),
        2: np.log(0.15),
        3: np.log(0.05),
    },
    {
        1: np.log(0.4),
        0: np.log(0.35),
        3: np.log(0.2),
        4: np.log(0.05),
    },
]

vocab_dim = 6
question = MockMultipleChoiceQA()

ARGS = {
    "per_pass_topk": per_pass_topk,
    "tokenizer_vocab": tokenizer_vocab,
    "vocab_dim": vocab_dim,
    "question": question,
}
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 float, ndim 0, dtype family float, shape () — shape () 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
hash_dict Ran
ran; our contract draft was wrong, not the code
socialfoundations/folktexts/folktexts/_utils.py
code served (permissive licence) · get_code("01541e897eeb12a8")
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 hashlib
import json

ARGS = {
    "d": {
        "model": "transformer",
        "batch_size": 32,
        "learning_rate": 0.001,
        "hidden_dim": 128,
        "num_layers": 2
    },
    "length": 16
}
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
is_valid_number Ran
ran, violated the contract we drafted
socialfoundations/folktexts/folktexts/_utils.py
code served (permissive licence) · get_code("31ad435fddbf752e")
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 bool, ndim 0, dtype family float, shape () 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

# Test case 1: valid integer
valid_int = 42

# Test case 2: valid float
valid_float = 3.14

# Test case 3: valid numpy number
valid_numpy_int = np.int32(10)

# Test case 4: valid numpy float
valid_numpy_float = np.float64(2.71)

# Test case 5: NaN (should be invalid)
nan_value = np.nan

# Test case 6: infinity (should be valid - it's a float, not NaN)
inf_value = np.inf

# Create ARGS dict with a valid number
ARGS = {
    "num": 42
}
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 bool, ndim 0, dtype family float, shape () — shape () 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
load_json Ran
ran; our contract draft was wrong, not the code
socialfoundations/folktexts/folktexts/_io.py
code served (permissive licence) · get_code("01ac3ca87c183a87")
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 json
from pathlib import Path
import tempfile
import os

# Create a temporary JSON file for testing
temp_dir = tempfile.mkdtemp()
test_json_path = os.path.join(temp_dir, "test.json")

# Write a sample JSON file to disk
test_data = {
    "key1": "value1",
    "key2": [1, 2, 3],
    "key3": {"nested": "object"}
}

with open(test_json_path, 'w') as f:
    json.dump(test_data, f)

# Define arguments for load_json
ARGS = {
    "path": test_json_path
}
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 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
load_pickle Ran
ran; our contract draft was wrong, not the code
socialfoundations/folktexts/folktexts/_io.py
code served (permissive licence) · get_code("7dada3fae6fa983f")
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
from pathlib import Path
import tempfile
import os

# Create a temporary file with some pickled data
temp_dir = tempfile.mkdtemp()
temp_pickle_file = os.path.join(temp_dir, "test.pkl")

# Create and pickle some test data
test_data = {"key": "value", "number": 42, "list": [1, 2, 3]}
with open(temp_pickle_file, 'wb') as f:
    pickle.dump(test_data, f)

ARGS = {
    "path": temp_pickle_file
}
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 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
query_model_batch Ran
ran, honoured the contract we drafted
socialfoundations/folktexts/folktexts/llm_utils.py
code served (permissive licence) · get_code("42c4582c73314ab0")
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, 256) 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
import torch
import torch.nn as nn
from transformers import AutoModelForCausalLM, AutoTokenizer

torch.manual_seed(0)

# Create a minimal mock model that behaves like AutoModelForCausalLM
class MockCausalLM(nn.Module):
    def __init__(self, vocab_size=256, hidden_size=4):
        super().__init__()
        self.vocab_size = vocab_size
        self.hidden_size = hidden_size
        # Minimal embedding and output layer
        self.embedding = nn.Embedding(vocab_size, hidden_size)
        self.lm_head = nn.Linear(hidden_size, vocab_size)
    
    def forward(self, input_ids, attention_mask=None):
        # Return object with logits attribute
        x = self.embedding(input_ids)
        logits = self.lm_head(x)
        
        class Output:
            pass
        
        output = Output()
        output.logits = logits
        return output

# Create a minimal mock tokenizer
class MockTokenizer:
    def __init__(self):
        self.padding_side = 'right'
        self.truncation_side = 'left'
        self.vocab_size = 256
    
    def __call__(self, texts, return_tensors=None, padding=False, truncation=False, max_length=None, add_special_tokens=False):
        # Return object with input_ids and attention_mask
        if isinstance(texts, str):
            texts = [texts]
        
        batch_size = len(texts)
        max_len = max_length if max_length else 10
        
        # Create dummy token ids
        input_ids = torch.randint(0, self.vocab_size, (batch_size, max_len), dtype=torch.long)
        # Create attention mask (some tokens are real, some are padding)
        attention_mask = torch.ones((batch_size, max_len), dtype=torch.long)
        # Make last few positions padding for some sequences to have variable lengths
        for i in range(batch_size):
            pad_start = torch.randint(max_len - 2, max_len, (1,)).item()
            attention_mask[i, pad_start:] = 0
        
        class TokenizerOutput:
            pass
        
        result = TokenizerOutput()
        result.input_ids = input_ids
        result.attention_mask = attention_mask
        return result

# Instantiate mock objects
model = MockCausalLM(vocab_size=256, hidden_size=4)
tokenizer = MockTokenizer()
text_inputs = ["Hello world", "This is a test"]
context_size = 10

ARGS = {
    "text_inputs": text_inputs,
    "model": model,
    "tokenizer": tokenizer,
    "context_size": context_size,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, transformers — 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, 256) — shape (2, 256) 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
query_model_batch_multiple_passes Ran
ran, honoured the contract we drafted
socialfoundations/folktexts/folktexts/llm_utils.py
code served (permissive licence) · get_code("e810648cd6b36c41")
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 3, dtype family float, shape (2, 3, 100) 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 torch
import torch.nn as nn
import numpy as np
from transformers import AutoModelForCausalLM, AutoTokenizer

torch.manual_seed(0)

# Create a minimal mock model
class MockCausalLM(nn.Module):
    def __init__(self, vocab_size=100, hidden_size=16):
        super().__init__()
        self.config = type('Config', (), {'vocab_size': vocab_size})()
        self.embedding = nn.Embedding(vocab_size, hidden_size)
        self.linear = nn.Linear(hidden_size, vocab_size)
    
    def forward(self, input_ids, attention_mask=None):
        x = self.embedding(input_ids)
        logits = self.linear(x)
        return type('Output', (), {'logits': logits})()

# Create a minimal mock tokenizer
class MockTokenizer:
    def __init__(self, vocab_size=100):
        self.vocab_size = vocab_size
        self.padding_side = 'right'
        self.truncation_side = 'left'
        # Create vocab with some decimal tokens
        self.vocab = {str(i): i for i in range(10)}  # digits 0-9
        self.vocab.update({f'token_{i}': 10 + i for i in range(vocab_size - 10)})
        self.pad_token_id = 0
    
    def __call__(self, text_inputs, return_tensors=None, padding=False, 
                 truncation=False, max_length=None, add_special_tokens=False):
        batch_size = len(text_inputs)
        seq_len = 8
        
        input_ids = torch.randint(0, self.vocab_size, (batch_size, seq_len))
        attention_mask = torch.ones((batch_size, seq_len), dtype=torch.long)
        
        return type('TokenizerOutput', (), {
            'input_ids': input_ids,
            'attention_mask': attention_mask
        })()
    
    def decode(self, token_ids):
        if isinstance(token_ids, list) and len(token_ids) > 0:
            return f"token_{token_ids[0]}"
        return "token_0"

# Instantiate model and tokenizer
model = MockCausalLM(vocab_size=100, hidden_size=16)
model.eval()

tokenizer = MockTokenizer(vocab_size=100)

# Create test inputs
text_inputs = ["Hello world", "How are you"]
context_size = 512
n_passes = 3
digits_only = False

ARGS = {
    'text_inputs': text_inputs,
    'model': model,
    'tokenizer': tokenizer,
    'context_size': context_size,
    'n_passes': n_passes,
    'digits_only': digits_only
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family float, shape (2, 3, 100) — shape (2, 3, 100) 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
safe_division Ran
ran, honoured the contract we drafted
socialfoundations/folktexts/folktexts/_utils.py
code served (permissive licence) · get_code("d2bc3968e99d74c2")
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 float, ndim 0, dtype family float, shape () 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 logging
import numpy as np

# Setup code for safe_division function
# The function takes two float arguments: a and b
# It also takes a keyword-only argument: worst_result (float)

# Test with valid numbers
ARGS = {
    'a': 10.0,
    'b': 2.0,
    'worst_result': -1.0
}
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 float, ndim 0, dtype family float, shape () — shape () 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
save_pickle Ran
ran, violated the contract we drafted
socialfoundations/folktexts/folktexts/_io.py
code served (permissive licence) · get_code("830399f6f5c3fa70")
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 bool, ndim 0, dtype family float, shape () 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 torch
import logging
from pathlib import Path
import tempfile

logging.basicConfig(level=logging.INFO)

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

# Create a simple object to pickle
obj_to_save = {
    "data": torch.tensor([[1, 2, 3, 4], [5, 6, 7, 8]]),
    "metadata": {"name": "test", "version": 1},
    "list": [1, 2, 3, 4, 5]
}

# Define the arguments dictionary
ARGS = {
    "obj": obj_to_save,
    "path": Path(temp_dir) / "test_pickle.pkl",
    "overwrite": True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cloudpickle, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () 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
tokenizer_supports_system_prompt Ran
ran, violated the contract we drafted
socialfoundations/folktexts/folktexts/prompting.py
code served (permissive licence) · get_code("ca43e66139b9adbd")
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 bool, ndim 0, dtype family float, shape () 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.

from transformers import AutoTokenizer
from unittest.mock import MagicMock

# Create a mock tokenizer that supports system prompts
mock_tokenizer = MagicMock(spec=AutoTokenizer)
mock_tokenizer.apply_chat_template = MagicMock(return_value="<|im_start|>system\ntest<|im_end|>\n<|im_start|>user\ntest<|im_end|>")

ARGS = {
    "tokenizer": mock_tokenizer
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jinja2, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () 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
evaluate_binary_predictions Not yet run
unverified (harvested, no recorded run)
socialfoundations/folktexts/folktexts/evaluation.py
code served (permissive licence) · get_code("b9dfaaf12e5dc135")
How it ran

no invocation recorded.

evaluate_binary_predictions_fairness Not yet run
unverified (harvested, no recorded run)
socialfoundations/folktexts/folktexts/evaluation.py
code served (permissive licence) · get_code("c8232e3ddcdf11c2")
How it ran

no invocation recorded.

render_evaluation_plots Not yet run
unverified (harvested, no recorded run)
socialfoundations/folktexts/folktexts/plotting.py
code served (permissive licence) · get_code("cacc10e89eb26d82")
How it ran

no invocation recorded.

render_fairness_plots Not yet run
unverified (harvested, no recorded run)
socialfoundations/folktexts/folktexts/plotting.py
code served (permissive licence) · get_code("fa65093fc4513ba8")
How it ran

no invocation recorded.

save_fig Not yet run
unverified (harvested, no recorded run)
socialfoundations/folktexts/folktexts/plotting.py
code served (permissive licence) · get_code("b35fd0172480d532")
How it ran

no invocation recorded.

Also present in other papers' code

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

Current question-answering benchmarks predominantly focus on accuracy in realizable prediction tasks. Conditioned on a question and answer-key, does the most likely token match the ground truth? Such benchmarks necessarily fail to evaluate LLMs' ability to quantify ground-truth outcome uncertainty. In this work, we focus on the use of LLMs as risk scores for unrealizable prediction tasks. We introduce folktexts, a software package to systematically generate risk scores using LLMs, and evaluate them against US Census data products. A flexible API enables the use of different prompting schemes, local or web-hosted models, and diverse census columns that can be used to compose custom prediction tasks. We evaluate 17 recent LLMs across five proposed benchmark tasks. We find that zero-shot risk scores produced by multiple-choice question-answering have high predictive signal but are widely miscalibrated. Base models consistently overestimate outcome uncertainty, while instruction-tuned models underestimate uncertainty and produce over-confident risk scores. In fact, instruction-tuning polarizes answer distribution regardless of true underlying data uncertainty. This reveals a general inability of instruction-tuned LLMs to express data uncertainty using multiple-choice answers. A separate experiment using verbalized chat-style risk queries yields substantially improved calibration across instruction-tuned models. These differences in ability to quantify data uncertainty cannot be revealed in realizable settings, and highlight a blind-spot in the current evaluation ecosystem that folktexts covers.

For agents

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

get_harvested_code_for_paper("2407.14614")
get_code_for_paper("2407.14614")
have("2407.14614")

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

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

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

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

Connect an agent — have() is free.