SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.13676 · EMNLP · 2023

Information Value: Measuring Utterance Predictability as Distance from Plausible Alternatives

Mario Giulianelli, Raquel Fernández, Sarenne Wallbridge

arXiv · PDF · Open in the Atlas

Code that ran

5 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 1 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/2310.13676.json · badge: /api/ran/2310.13676.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
dmg-illc/information-value canonical (classifier label)
classifier basis: census
5 ran · 1 no recorded run
FunctionStatusWhere it lives
distances_to_surprise Ran
ran; our contract draft was wrong, not the code
dmg-illc/information-value/code/compute_information_value.py
code served (permissive licence) · get_code("b008e890f8b234ca")
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 torch.nn as nn

torch.manual_seed(0)

# The function iterates over distances.items() and calls aggregation_func on each value
# distances should be a dict where values are aggregable (e.g., lists, tensors, or arrays)
# aggregation_func should be a callable that takes a value and returns a scalar or aggregated result

distances = {
    'layer1': torch.tensor([1.2, 2.3, 0.5, 1.1]),
    'layer2': torch.tensor([0.8, 1.5, 2.1, 0.3]),
    'layer3': torch.tensor([3.2, 1.1, 0.9, 2.4])
}

def aggregation_func(v):
    """Simple aggregation function that returns the mean"""
    return torch.mean(v)

ARGS = {
    'distances': distances,
    'aggregation_func': aggregation_func
}
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
get_sentence_surprisal Ran
ran; our contract draft was wrong, not the code
dmg-illc/information-value/code/compute_surprisal.py
code served (permissive licence) · get_code("84fe73957d6f9a00")
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 torch.nn as nn

torch.manual_seed(0)

class SimpleTokenizer:
    def __init__(self):
        self.bos_token_id = 101
        self.vocab_size = 1000
    
    def __call__(self, text):
        # Simple mock tokenization - return input_ids as a dict
        # Different texts get different token sequences
        if "context" in text.lower():
            token_ids = [102, 103, 104]
        elif "target" in text.lower():
            token_ids = [105, 106]
        else:
            token_ids = [107, 108, 109, 110]
        return {'input_ids': token_ids}

class SimpleLanguageModel(nn.Module):
    def __init__(self, vocab_size=1000, hidden_dim=4):
        super().__init__()
        self.embedding = nn.Embedding(vocab_size, hidden_dim)
        self.linear = nn.Linear(hidden_dim, vocab_size)
        self.device_attr = torch.device('cpu')
    
    @property
    def device(self):
        return self.device_attr
    
    def forward(self, input_ids):
        # input_ids: (batch_size, seq_len)
        x = self.embedding(input_ids)  # (batch_size, seq_len, hidden_dim)
        logits = self.linear(x)  # (batch_size, seq_len, vocab_size)
        
        class Output:
            pass
        
        output = Output()
        output.logits = logits
        return output

# Create instances
tokenizer = SimpleTokenizer()
model = SimpleLanguageModel(vocab_size=1000, hidden_dim=4)

context = "this is context text"
sentence = "target sentence here"
max_seq_len = 32
separator = 111

ARGS = {
    'context': context,
    'sentence': sentence,
    'model': model,
    'max_seq_len': max_seq_len,
    'tokenizer': tokenizer,
    'separator': separator
}
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
load_jsonl Ran
ran; our contract draft was wrong, not the code
dmg-illc/information-value/code/utils.py
code served (permissive licence) · get_code("daa5eca9bb425114")
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 json
import tempfile
import os

# Create a temporary JSONL file with test data
temp_dir = tempfile.mkdtemp()
test_file = os.path.join(temp_dir, "test.jsonl")

# Write test data to the JSONL file
test_data = [
    {"name": "Alice", "age": 30, "scores": [1, 2, 3]},
    {"name": "Bob", "age": 25, "scores": [4, 5, 6]},
]

with open(test_file, 'w', encoding='utf8') as f:
    for item in test_data:
        f.write(json.dumps(item) + '\n')

# Define ARGS with all parameters for load_jsonl
ARGS = {
    "path": test_file,
    "return_obj": False,
}
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
load_surprise_data Ran
ran; our contract draft was wrong, not the code
dmg-illc/information-value/code/utils.py
code served (permissive licence) · get_code("7348d0944016fa37")
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 DataFrame. 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 pandas as pd

# Create a temporary directory with sample CSV files
temp_dir = tempfile.mkdtemp()

# Create sample CSV files with the expected naming convention
# Format: corpus-model-sampling-extra1-extra2-extra3.csv
sample_data_1 = pd.DataFrame({
    'word': ['the', 'cat', 'sat'],
    'surprisal': [0.5, 1.2, 0.8]
})
sample_data_1.to_csv(os.path.join(temp_dir, 'wiki-gpt2-uniform-x-y-z.csv'), index=False)

sample_data_2 = pd.DataFrame({
    'word': ['on', 'the', 'mat'],
    'surprisal': [0.3, 0.6, 1.1],
    'logprob': [-0.5, -1.2, -0.8]
})
sample_data_2.to_csv(os.path.join(temp_dir, 'gutenberg-bert-topk_5-x-y-z.csv'), index=False)

sample_data_3 = pd.DataFrame({
    'word': ['hello', 'world'],
    'surprisal': [0.7, 0.9]
})
sample_data_3.to_csv(os.path.join(temp_dir, 'arxiv-xlnet-nucleus_0.9-x-y-z.csv'), index=False)

ARGS = {
    'data_dir': temp_dir,
    'columns': ['word', 'surprisal']
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
parse_surprise_filename Ran
ran; our contract draft was wrong, not the code
dmg-illc/information-value/code/utils.py
code served (permissive licence) · get_code("8b79fc03f8658cde")
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.

ARGS = {
    'filename': 'bbc-lstm-uniform_0.5-field1-field2-field3'
}
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
dialogue_corpus_to_jsonl Not yet run
unverified (harvested, no recorded run)
dmg-illc/information-value/code/to_jsonl.py
code served (permissive licence) · get_code("5098129b17010197")
How it ran

no invocation recorded.

Also present in other papers' code

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

We present information value, a measure which quantifies the predictability of an utterance relative to a set of plausible alternatives. We introduce a method to obtain interpretable estimates of information value using neural text generators, and exploit their psychometric predictive power to investigate the dimensions of predictability that drive human comprehension behaviour. Information value is a stronger predictor of utterance acceptability in written and spoken dialogue than aggregates of token-level surprisal and it is complementary to surprisal for predicting eye-tracked reading times. 1

For agents

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

get_harvested_code_for_paper("2310.13676")
get_code_for_paper("2310.13676")
have("2310.13676")

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

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

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

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

Connect an agent — have() is free.