SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2024.findings-naacl.294 · NAACL Findings · 2024

PoLLMgraph: Unraveling Hallucinations in Large Language Models via State Transition Dynamics

Lei Ma, Qing Li, Dingfan Chen, Mario Fritz, Derui Zhu, Zongxiong Chen, Jens Grossklags

Open in the Atlas

Code that ran

13 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 5 have no contract verdict; 7 failures of our instrument; 1 no recorded run), measured 2026-11-24; 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/2024.findings-naacl.294.json · badge: /api/ran/2024.findings-naacl.294.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
balevinstein/Probes canonical (classifier label)
classifier basis: census
13 ran · 1 no recorded run
FunctionStatusWhere it lives
get_embeddings Ran
ran; our contract draft was wrong, not the code
balevinstein/Probes/Train_CCSProbe.py
code served (permissive licence) · get_code("1fd11bf75e70a151")
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 torch
import pandas as pd
import numpy as np

torch.manual_seed(0)

# Create a small DataFrame with the structure expected by get_embeddings
# The function expects data.iloc[idx] to return rows with 'embeddings' and 'label' columns
data_list = []
for i in range(4):  # Even number of rows as required by assertion
    data_list.append({
        'embeddings': torch.randn(4),  # Small embedding dimension
        'label': i % 2
    })

data = pd.DataFrame(data_list)

ARGS = {
    'data': data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_embeddings Ran
ran on a synthesized input
balevinstein/Probes/Generate_CCS_predictions.py
code served (permissive licence) · get_code("e4680e27c1f698ff")
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 2, 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
import pandas as pd

# Create a small DataFrame with an 'embeddings' column
# The function iterates over rows and accesses data.iloc[idx]['embeddings']
data = pd.DataFrame({
    'embeddings': [
        torch.randn(4),  # Small embedding vector
        torch.randn(4),  # Another embedding vector
    ]
})

ARGS = {
    'data': data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas, torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, 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
init_model Ran
ran on a synthesized input
balevinstein/Probes/Generate_Embeddings.py
code served (permissive licence) · get_code("a0e0c36e3114dce9")
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
from transformers import AutoTokenizer, OPTForCausalLM

torch.manual_seed(0)

ARGS = {
    "model_name": "125m"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — 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
init_model Ran
ran on a synthesized input
balevinstein/Probes/LLaMa_generate_embeddings.py
code served (permissive licence) · get_code("9999ece90de8a519")
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
import torch.nn as nn
from transformers import AutoTokenizer, OPTForCausalLM, LlamaForCausalLM, LlamaTokenizer
from unittest.mock import MagicMock, patch

torch.manual_seed(0)

# The function init_model takes a single parameter: model_name (str)
# It tries to load either a LLaMa model or an OPT model based on model_name
# Since we can't do actual file I/O or network requests, we'll mock the model loading

# We'll use a model_name that triggers the OPT path (easier to mock)
# and patch the from_pretrained methods

ARGS = {
    'model_name': '125m'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — 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
load_config Ran
ran; our contract draft was wrong, not the code
balevinstein/Probes/TrainProbes.py
code served (permissive licence) · get_code("47a75377f206e2cb")
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
import tempfile
import os

# Create a temporary JSON config file
temp_dir = tempfile.mkdtemp()
config_file_path = os.path.join(temp_dir, "config.json")

config_data = {
    "model": "bert",
    "learning_rate": 0.001,
    "batch_size": 32,
    "epochs": 10,
    "hidden_dim": 768
}

with open(config_file_path, 'w') as f:
    json.dump(config_data, f)

ARGS = {
    "config_file": config_file_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_csv Ran
ran; our contract draft was wrong, not the code
balevinstein/Probes/Train_CCSProbe.py
code served (permissive licence) · get_code("490da4aec73c34bb")
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 pandas as pd
import tempfile
import os

# Create a temporary CSV file with embeddings data
with tempfile.NamedTemporaryFile(mode='w', suffix='.csv', delete=False) as f:
    temp_filename = f.name
    f.write("id,embeddings,label\n")
    f.write("1,\"[0.1, 0.2, 0.3, 0.4]\",A\n")
    f.write("2,\"[0.5, 0.6, 0.7, 0.8]\",B\n")

ARGS = {
    'filename': temp_filename
}
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
load_data Ran
ran; our contract draft was wrong, not the code
balevinstein/Probes/Generate_Embeddings.py
code served (permissive licence) · get_code("f2ad4d1f97c24685")
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 pandas as pd
from pathlib import Path
import tempfile
import os

# Create a temporary directory and a sample CSV file for testing
temp_dir = tempfile.mkdtemp()
dataset_path = Path(temp_dir)

# Create a sample CSV file
sample_data = {
    'col1': [1, 2, 3],
    'col2': ['a', 'b', 'c']
}
df_sample = pd.DataFrame(sample_data)
csv_file = dataset_path / 'test_dataset.csv'
df_sample.to_csv(csv_file, index=False)

# Define ARGS dict with all parameters
ARGS = {
    'dataset_path': dataset_path,
    'dataset_name': 'test_dataset',
    'true_false': False
}
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
load_datasets Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
balevinstein/Probes/TrainProbes.py
code served (permissive licence) · get_code("c32cb2b828044b4d")
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 pandas as pd
from pathlib import Path
import tempfile
import os

# Create a temporary directory and CSV files for testing
temp_dir = tempfile.mkdtemp()
input_path = Path(temp_dir)

# Create sample CSV files that the function will try to read
dataset_names = ['dataset1', 'dataset2']
model_name = '_model'
layers_to_process = [1, -2, 3]
idx = 1

# Create dummy CSV files
for dataset_name in dataset_names:
    path = input_path / f'embeddings_{dataset_name}{model_name}_{abs(layers_to_process[idx])}.csv'
    df = pd.DataFrame({
        'col1': [1, 2, 3],
        'col2': [4, 5, 6],
        'col3': [7, 8, 9]
    })
    df.to_csv(path, index=False)

# Also create a version with removed period
for dataset_name in dataset_names:
    path = input_path / f'embeddings_{dataset_name}{model_name}_{abs(layers_to_process[idx])}_rmv_period.csv'
    df = pd.DataFrame({
        'col1': [10, 20, 30],
        'col2': [40, 50, 60],
        'col3': [70, 80, 90]
    })
    df.to_csv(path, index=False)

ARGS = {
    'dataset_names': ['dataset1', 'dataset2'],
    'layers_to_process': [1, -2, 3],
    'should_remove_period': False,
    'input_path': input_path,
    'model_name': '_model',
    'idx': 1
}
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 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
make_model_list Ran
ran on a synthesized input
balevinstein/Probes/Generate_predictions.py
code served (permissive licence) · get_code("05d973d3cd4eedbe")
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
from pathlib import Path

# Create a temporary directory to act as probes_path
probes_path = Path(tempfile.gettempdir()) / "test_probes"
probes_path.mkdir(exist_ok=True)

# Define arguments for make_model_list
ARGS = {
    "probes_path": probes_path,
    "llm_name": "bert",
    "layer": 12,
    "suffix_list": ["linear", "mlp", "attention"]
}
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
prepare_data_for_mlp Ran
ran, violated the contract we drafted
balevinstein/Probes/Train_CCSProbe.py
code served (permissive licence) · get_code("f2d39d520a929049")
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 3, 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
import numpy as np

torch.manual_seed(0)

# Create small sample embeddings for positive examples
# Shape: (batch_size=2, embedding_dim=4)
all_pos_hs = [
    [0.1, 0.2, 0.3, 0.4],
    [0.5, 0.6, 0.7, 0.8]
]

# Create small sample embeddings for negative examples
# Shape: (batch_size=2, embedding_dim=4)
all_neg_hs = [
    [0.9, 0.8, 0.7, 0.6],
    [0.5, 0.4, 0.3, 0.2]
]

ARGS = {
    "all_pos_hs": all_pos_hs,
    "all_neg_hs": all_neg_hs
}
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 tuple, ndim 3, 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
prepare_data_for_mlp Ran
ran on a synthesized input
balevinstein/Probes/Generate_CCS_predictions.py
code served (permissive licence) · get_code("4697840ac836c457")
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
import numpy as np

torch.manual_seed(0)

# The function takes embeddings and converts them to a torch tensor
# embeddings can be a list, numpy array, or tensor-like object
# It should be convertible to float32

# Create a small embedding array (batch_size=2, embedding_dim=4)
embeddings_input = [
    [0.1, 0.2, 0.3, 0.4],
    [0.5, 0.6, 0.7, 0.8]
]

ARGS = {
    "embeddings": embeddings_input
}
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 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
prepare_datasets Ran
ran; our contract draft was wrong, not the code
balevinstein/Probes/TrainProbes.py
code served (permissive licence) · get_code("5b5f6a3969b72cda")
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 pandas as pd

# Create small sample dataframes
df1 = pd.DataFrame({
    'feature_a': [1, 2, 3],
    'feature_b': [4, 5, 6]
})

df2 = pd.DataFrame({
    'feature_a': [7, 8],
    'feature_b': [9, 10]
})

df3 = pd.DataFrame({
    'feature_a': [11, 12, 13, 14],
    'feature_b': [15, 16, 17, 18]
})

ARGS = {
    'datasets': [df1, df2, df3],
    'dataset_names': ['dataset_1', 'dataset_2', 'dataset_3'],
    'test_first_only': False
}
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 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
process_row Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
balevinstein/Probes/Generate_Embeddings.py
code served (permissive licence) · get_code("cc6f60b3b538e888")
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)

# Create a minimal tokenizer stand-in
class MockTokenizer:
    def __call__(self, text, return_tensors=None):
        # Return a mock tokenizer output with input_ids
        class TokenizerOutput:
            def __init__(self):
                self.input_ids = torch.tensor([[1, 2, 3]])
        return TokenizerOutput()

# Create a minimal model that supports generate() with hidden_states
class MockModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.embed = nn.Embedding(10, 4)
    
    def generate(self, input_ids, output_hidden_states=False, return_dict_in_generate=False, max_new_tokens=1, min_new_tokens=1):
        # Returns a mock generate output with hidden_states
        class GenerateOutput:
            def __init__(self):
                # hidden_states is a tuple of tuples
                # hidden_states[0] is the tuple for the generated token
                # Each element in hidden_states[0] is a tensor of shape (batch_size, seq_len, hidden_dim)
                # We need at least 2 layers (indices 0 and 1)
                self.hidden_states = (
                    (
                        torch.randn(1, 4, 4),  # layer 0: (batch=1, seq_len=4, hidden_dim=4)
                        torch.randn(1, 4, 4),  # layer 1: (batch=1, seq_len=4, hidden_dim=4)
                    ),
                )
        return GenerateOutput()

model = MockModel()
tokenizer = MockTokenizer()

ARGS = {
    "prompt": "This is a test prompt.",
    "model": model,
    "tokenizer": tokenizer,
    "layers_to_use": [0, 1],
    "remove_period": True
}
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_llama_model Not yet run
unverified (harvested, no recorded run)
balevinstein/Probes/LLaMa_generate_embeddings.py
code served (permissive licence) · get_code("32ad78f82e67feaf")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 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.

FunctionAlso present inEarliest-datedOthers named
load_config 2 other papers
2 dated earlier
2304.13734 (2023-04)
The Internal State of an LLM Knows When It's Lying
2307.00175 (2023-07)
Still No Lie Detector for Language Models: Probing Empirical and Conceptual Roadblocks
load_data 2 other papers
2 dated earlier
2304.13734 (2023-04)
The Internal State of an LLM Knows When It's Lying
2307.00175 (2023-07)
Still No Lie Detector for Language Models: Probing Empirical and Conceptual Roadblocks
load_datasets 2 other papers
2 dated earlier
2304.13734 (2023-04)
The Internal State of an LLM Knows When It's Lying
2307.00175 (2023-07)
Still No Lie Detector for Language Models: Probing Empirical and Conceptual Roadblocks
prepare_datasets 2 other papers
2 dated earlier
2304.13734 (2023-04)
The Internal State of an LLM Knows When It's Lying
2307.00175 (2023-07)
Still No Lie Detector for Language Models: Probing Empirical and Conceptual Roadblocks
process_row 2 other papers
2 dated earlier
2304.13734 (2023-04)
The Internal State of an LLM Knows When It's Lying
2307.00175 (2023-07)
Still No Lie Detector for Language Models: Probing Empirical and Conceptual Roadblocks
get_embeddings 1 other paper
1 dated earlier
2307.00175 (2023-07)
Still No Lie Detector for Language Models: Probing Empirical and Conceptual Roadblocks
load_csv 1 other paper
1 dated earlier
2307.00175 (2023-07)
Still No Lie Detector for Language Models: Probing Empirical and Conceptual Roadblocks
prepare_data_for_mlp 1 other paper
1 dated earlier
2307.00175 (2023-07)
Still No Lie Detector for Language Models: Probing Empirical and Conceptual Roadblocks

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

Repositories linked to this paper

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

Abstract

Despite tremendous advancements in large language models (LLMs) over recent years, a notably urgent challenge for their practical deployment is the phenomenon of "hallucination", where the model fabricates facts and produces non-factual statements. In response, we propose PoLLMgraph-a Polygraph for LLMs-as an effective modelbased white-box detection and forecasting approach. PoLLMgraph distinctly differs from the large body of existing research that concentrates on addressing such challenges through black-box evaluations. In particular, we demonstrate that hallucination can be effectively detected by analyzing the LLM's internal state transition dynamics during generation via tractable probabilistic models. Experimental results on various open-source LLMs confirm the efficacy of PoLLMgraph, outperforming state-of-theart methods by a considerable margin, evidenced by over 20% improvement in AUC-ROC on common benchmarking datasets like TruthfulQA. Our work paves a new way for model-based white-box analysis of LLMs, motivating the research community to further explore, understand, and refine the intricate dynamics of LLM behaviors † . * Equal contribution † Code and dataset are available on https:// github.com/hitum-dev/PoLLMgraph.

For agents

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

get_harvested_code_for_paper("2024.findings-naacl.294")
get_code_for_paper("2024.findings-naacl.294")
have("2024.findings-naacl.294")

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

curl https://syntology.ai/api/ran/2024.findings-naacl.294.json

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

[![Syntology run record](https://syntology.ai/api/ran/2024.findings-naacl.294.svg)](https://syntology.ai/paper/2024.findings-naacl.294)

Connect an agent — have() is free.