SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2510.21891 · ICML · 2026

Embedding Trust: Semantic Isotropy Predicts Nonfactuality in Long-Form Text Generation

Tim Rudner, Julia Kempe, M Lewis, L Van Der Maaten, L Chen, De Oliveira, M Hassan, K Li, M Singh, Website Code, Dhrupad Bhardwaj, Garg

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; 5 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 7 failures of our instrument; 5 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/2510.21891.json · badge: /api/ran/2510.21891.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
dhrupadb/semantic_isotropy canonical (classifier label)
classifier basis: census
13 ran · 5 no recorded run
FunctionStatusWhere it lives
calculate_eigenscore Ran
ran, honoured the contract we drafted
dhrupadb/semantic_isotropy/lib/python/semantic_isotropy/metrics/isotropy.py
code served (permissive licence) · get_code("6a4e823c1dcce8b4")
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

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

# Create a small matrix Z with shape (K, d)
# K=2 (number of samples), d=4 (dimension)
Z = np.random.randn(2, 4)

# Define ARGS dict with all parameters
ARGS = {
    "Z": Z,
    "alpha": 0.001
}
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
chat_gpt Ran
ran; our contract draft was wrong, not the code
dhrupadb/semantic_isotropy/lib/python/semantic_isotropy/llm/chat.py
code served (permissive licence) · get_code("be3e7e1de0d35f5e")
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 os
from unittest.mock import Mock, MagicMock

# Set up environment variable for API key
os.environ['OPENAI_API_KEY'] = 'sk-test-key-12345'

# Create mock OpenAI client and response
mock_message = Mock()
mock_message.choices = [Mock()]
mock_message.choices[0].message = Mock()
mock_message.choices[0].message.content = "This is a test response from the model."
mock_message.choices[0].logprobs = Mock()
mock_message.choices[0].logprobs.content = [{"token": "test", "logprob": -0.5}]

# Patch the OpenAI client
import sys
from unittest.mock import patch

mock_client = Mock()
mock_client.chat.completions.create = Mock(return_value=mock_message)

sys.modules['openai'] = MagicMock()
sys.modules['openai'].OpenAI = Mock(return_value=mock_client)

ARGS = {
    'request': 'What is the capital of France?',
    'model': 'gpt-4-mini',
    'api_key': 'sk-test-key-12345',
    'system': 'You are a helpful assistant.',
    'prefill': None,
    'logprobs': False,
    'top_logprobs': 0,
    'max_tokens': 100,
    'temperature': 0.7
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
openai — 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
chunker Ran
ran; our contract draft was wrong, not the code
dhrupadb/semantic_isotropy/lib/python/semantic_isotropy/metrics/luq.py
code served (permissive licence) · get_code("ec7977b6ec96dce1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned generator. 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)

# The function chunker takes a sequence and a size, and yields chunks of that size
# seq: any sequence (list, string, tensor, etc.)
# size: integer representing chunk size

# Let's create a simple list as the sequence
seq = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
size = 3

ARGS = {
    'seq': seq,
    'size': size
}
Setup block drafted by
a language model, Claude Sonnet 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 generator — a generator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a generator 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
detect_api_model Ran
ran, violated the contract we drafted
dhrupadb/semantic_isotropy/lib/python/semantic_isotropy/llm/utils.py
code served (permissive licence) · get_code("4ad1bdc5acb7f7f1")
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

# The function detect_api_model takes a single parameter: model (a string)
# It checks if certain substrings are present in the model name
# No complex objects or tensors are needed

ARGS = {
    "model": "gemini-pro"
}
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 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
get_entity_page_idx Ran
ran, honoured the contract we drafted
dhrupadb/semantic_isotropy/lib/python/semantic_isotropy/datasets/utils.py
code served (permissive licence) · get_code("5c542beb7cd01abb")
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 int, ndim 0, dtype family int, 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
from typing import Dict, Any

logger = logging.getLogger(__name__)

def get_entity_page_idx(entity: str, trivia_entry: Dict[str, Any]) -> int:
    """
    Get the reference doc page index of an entity in a trivia entry
    """
    valid_pages = [(i, title) for i, title in enumerate(trivia_entry['entity_pages']['title']) if title.lower().strip() == entity.lower().strip()]
    if len(valid_pages) == 0:
        logger.warning(f'''No valid pages found for entity "{entity}" in trivia entry {trivia_entry['question_id']}. Using the first page.''')
        return -1
    if len(valid_pages) > 1:
        logger.warning(f'''Multiple valid pages found for entity "{entity}" in trivia entry {trivia_entry['question_id']}. Using the first page.''')
        return valid_pages[0][0]
    return valid_pages[0][0]


# Construct a valid trivia_entry dict
trivia_entry = {
    'question_id': 'q_123',
    'entity_pages': {
        'title': [
            'Albert Einstein',
            'Physics',
            'Relativity Theory',
            'Nobel Prize'
        ]
    }
}

# Construct a valid entity string that matches one of the titles
entity = 'Albert Einstein'

ARGS = {
    'entity': entity,
    'trivia_entry': trivia_entry
}
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 int, ndim 0, dtype family int, 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
header_prompt Ran
ran; our contract draft was wrong, not the code
dhrupadb/semantic_isotropy/lib/python/semantic_isotropy/metrics/isotropy.py
code served (permissive licence) · get_code("824698032b03a793")
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 = {
    'entity': 'machine learning',
    'text': 'Machine learning is a subset of artificial intelligence that focuses on enabling computers to learn from data.',
    'model_name': 'nomic-embed-text'
}
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
last_token_pool Ran
ran; our contract draft was wrong, not the code
dhrupadb/semantic_isotropy/lib/python/semantic_isotropy/metrics/isotropy.py
code served (permissive licence) · get_code("2ded070fabe7bdc7")
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 Tensor, 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 torch
from torch import Tensor

torch.manual_seed(0)

# Create small tensors for testing
batch_size = 2
seq_length = 5
hidden_dim = 4

# Create last_hidden_states: (batch_size, seq_length, hidden_dim)
last_hidden_states = torch.randn(batch_size, seq_length, hidden_dim)

# Create attention_mask: (batch_size, seq_length)
# Test case 1: left padding (all sequences are fully attended)
attention_mask = torch.ones(batch_size, seq_length, dtype=torch.long)

ARGS = {
    "last_hidden_states": last_hidden_states,
    "attention_mask": attention_mask,
}
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 Tensor, 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
load_data Ran
ran; our contract draft was wrong, not the code
dhrupadb/semantic_isotropy/lib/python/semantic_isotropy/datasets/loaders.py
code served (permissive licence) · get_code("2222a8717f160209")
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 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 tempfile
import json
import pickle
import os

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

# Create a JSON file
json_file = os.path.join(temp_dir, "test_data.json")
json_data = [
    {"id": 1, "text": "hello", "label": "positive"},
    {"id": 2, "text": "world", "label": "negative"}
]
with open(json_file, 'w', encoding='utf-8') as f:
    json.dump(json_data, f)

# Create a JSONL file
jsonl_file = os.path.join(temp_dir, "test_data.jsonl")
with open(jsonl_file, 'w', encoding='utf-8') as f:
    for item in json_data:
        f.write(json.dumps(item) + '\n')

# Create a pickle file
pkl_file = os.path.join(temp_dir, "test_data.pkl")
with open(pkl_file, 'wb') as f:
    pickle.dump(json_data, f)

# Define ARGS with the JSON file path (can be any of the three formats)
ARGS = {
    "input_path": json_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 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
luq_simscore Ran
ran, honoured the contract we drafted
dhrupadb/semantic_isotropy/lib/python/semantic_isotropy/metrics/luq.py
code served (permissive licence) · get_code("694b4f509df41eb6")
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 (3, 3) 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 typing import List, Callable

def entailment_func_stub(chunk: list, response: str) -> float:
    """Stub entailment function that returns a small float score."""
    return 0.5

# Create sample responses with the expected structure
responses = [
    {
        'response': 'The sky is blue.',
        'statements': [
            {'text': 'The sky is blue.'},
            {'text': 'Water is wet.'},
            {'text': 'Grass is green.'},
        ]
    },
    {
        'response': 'The ocean is vast and deep.',
        'statements': [
            {'text': 'The ocean is vast.'},
            {'text': 'The ocean is deep.'},
            {'text': 'Fish live in the ocean.'},
        ]
    },
    {
        'response': 'Mountains are tall.',
        'statements': [
            {'text': 'Mountains are tall.'},
            {'text': 'Mountains have peaks.'},
        ]
    }
]

ARGS = {
    'responses': responses,
    'entailment_func': entailment_func_stub,
    'max_sentences': 20
}
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 (3, 3) — shape (3, 3) 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
normalize_kernel Ran
ran, honoured the contract we drafted
dhrupadb/semantic_isotropy/lib/python/semantic_isotropy/metrics/entailment.py
code served (permissive licence) · get_code("8ce6bec1d737caea")
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, 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

# Create a small positive semi-definite kernel matrix
# Using a simple covariance-like structure
K = np.array([
    [4.0, 1.0, 0.5, 0.2],
    [1.0, 3.0, 0.3, 0.1],
    [0.5, 0.3, 2.0, 0.4],
    [0.2, 0.1, 0.4, 1.5]
], dtype=np.float64)

ARGS = {
    "K": K
}
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, 4) — shape (4, 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
scale_entropy Ran
ran, honoured the contract we drafted
dhrupadb/semantic_isotropy/lib/python/semantic_isotropy/metrics/entailment.py
code served (permissive licence) · get_code("f237a2e20964ecca")
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

torch_imported = False
try:
    import torch
    torch_imported = True
except ImportError:
    pass

# Analyze the function:
# - entropy: a numeric value (float or numpy scalar) that gets divided
# - n_classes: an integer used to compute max_entropy via np.log

# Create test arguments
entropy_value = 0.5  # A reasonable entropy value between 0 and 1
n_classes_value = 4  # Number of classes

ARGS = {
    "entropy": entropy_value,
    "n_classes": n_classes_value
}
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 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
strip_and_return Ran
ran; our contract draft was wrong, not the code
dhrupadb/semantic_isotropy/lib/python/semantic_isotropy/datasets/utils.py
code served (permissive licence) · get_code("c3571ac83908406b")
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 torch

def strip_and_return(string):
    left_stripped = string.lstrip()
    right_stripped = left_stripped.rstrip()
    left_trim = string[:len(string) - len(left_stripped)]
    right_trim = left_stripped[len(right_stripped):]
    return (right_stripped, left_trim, right_trim)

ARGS = {
    "string": "   hello world   "
}
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 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
vn_entropy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
dhrupadb/semantic_isotropy/lib/python/semantic_isotropy/metrics/entailment.py
code served (permissive licence) · get_code("8d22a1140b36128d")
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

# Construct a valid kernel matrix K
# The function expects a square matrix that represents a kernel
# We'll create a small positive semi-definite kernel matrix
np.random.seed(0)
n_samples = 4
K = np.random.randn(n_samples, n_samples)
K = (K + K.T) / 2  # Make symmetric
K = K @ K.T  # Make positive semi-definite

ARGS = {
    "K": K,
    "normalize": True,
    "scale": True,
    "jitter": 1e-6
}
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
check_server_availability Not yet run
unverified (harvested, no recorded run)
dhrupadb/semantic_isotropy/lib/python/semantic_isotropy/llm/utils.py
code served (permissive licence) · get_code("1a5bef35c1af84b7")
How it ran

no invocation recorded.

entailment_score_func Not yet run
unverified (harvested, no recorded run)
dhrupadb/semantic_isotropy/lib/python/semantic_isotropy/metrics/luq.py
code served (permissive licence) · get_code("c10959ce1ce212ed")
How it ran

no invocation recorded.

estimate_tokens Not yet run
unverified (harvested, no recorded run)
dhrupadb/semantic_isotropy/lib/python/semantic_isotropy/llm/utils.py
code served (permissive licence) · get_code("57836e516ed482b0")
How it ran

no invocation recorded.

load_booksummaries Not yet run
unverified (harvested, no recorded run)
dhrupadb/semantic_isotropy/lib/python/semantic_isotropy/datasets/loaders.py
code served (permissive licence) · get_code("9b626a61e890cc9e")
How it ran

no invocation recorded.

load_factscore Not yet run
unverified (harvested, no recorded run)
dhrupadb/semantic_isotropy/lib/python/semantic_isotropy/datasets/loaders.py
code served (permissive licence) · get_code("decb9bb02edcb636")
How it ran

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, 3 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 1 later) and 15 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
last_token_pool 8 other papers
7 dated earlier, 1 later
2402.12997 (2024-02)
Towards Trustworthy Reranking: A Simple yet Effective Abstention Mechanism
2404.06347 (2024-04)
RAR-b: Reasoning as Retrieval Benchmark
2406.05540 (2024-06)
A Fine-tuning Dataset and Benchmark for Large Language Models for Protein Understanding
and 5 more not named here
chunker 7 other papers
7 dated earlier
1507.05717 (2015-07)
An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition
1702.07825 (2017-02)
Deep Voice: Real-time Neural Text-to-Speech
1902.00613 (2019-02)
Understanding Composition of Word Embeddings via Tensor Decomposition
and 4 more not named here
normalize_kernel 1 other paper
1 same year, order not determinable
2025.findings-acl.234 (2025 (year only))
Beyond Semantic Entropy: Boosting LLM Uncertainty Quantification with Pairwise Semantic Similarity

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

To deploy large language models (LLMs) in highstakes application domains that require substantively accurate responses to open-ended prompts, we need reliable, computationally inexpensive methods that assess the trustworthiness of longform responses generated by LLMs. However, existing approaches often rely on claim-by-claim fact-checking, which is computationally expensive and brittle in long-form responses to openended prompts. In this work, we introduce semantic isotropy-the degree of uniformity across normalized text embeddings on the unit sphere-and use it to assess the trustworthiness of long-form responses generated by LLMs. To do so, we generate several long-form responses, embed them, and estimate the level of semantic isotropy of these responses as the angular dispersion of the embeddings on the unit sphere. We find that higher semantic isotropy-that is, greater embedding dispersion-reliably signals lower factual consistency across samples. Our approach requires no labeled data, no fine-tuning, and no hyperparameter selection, and can be used with open-or closedweight embedding models. Across multiple domains, our method consistently outperforms existing aggregate trust signals in predicting nonfactuality using only a handful of samples, offering a practical, low-cost first-pass signal that complements claim-level verification in real-world LLM workflows.

For agents

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

get_harvested_code_for_paper("2510.21891")
get_code_for_paper("2510.21891")
have("2510.21891")

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

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

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

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

Connect an agent — have() is free.