SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.18208 · 2023

ArcheType: A Novel Framework for Open-Source Column Type Annotation using Large Language Models

arXiv · PDF · Open in the Atlas

Code that ran

8 of 12 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 0 have no contract verdict; 7 failures of our instrument; 4 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.18208.json · badge: /api/ran/2310.18208.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
penfever/archetype canonical (classifier label)
classifier basis: census
8 ran · 4 no recorded run
FunctionStatusWhere it lives
ans_contains_gt Ran
ran; our contract draft was wrong, not the code
penfever/archetype/src/match.py
code served (permissive licence) · get_code("74cf88859115a4f7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - ans_n: a string that will be checked against items in fixed_labels
# - fixed_labels: an iterable of strings that are checked for membership in ans_n

# The function checks if any fixed_label is contained within ans_n string,
# and returns the first match found, or None if no match

ans_n = "the quick brown fox"
fixed_labels = ["quick", "slow", "lazy"]

ARGS = {
    "ans_n": ans_n,
    "fixed_labels": fixed_labels
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
basic_contains Ran
ran; our contract draft was wrong, not the code
penfever/archetype/src/match.py
code served (permissive licence) · get_code("67c8089c5e3e21bc")
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.

# Setup code for basic_contains function

ARGS = {
    'ans_n': 'cat',
    'fixed_labels': ['dog', 'cat', 'bird', 'elephant'],
    'method': 'ans_contains_gt'
}
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
check_contains Ran
ran, violated the contract we drafted
penfever/archetype/src/schema_match_fix.py
code served (permissive licence) · get_code("ff1186166256a765")
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 numpy as np

torch.manual_seed(0)

# The function check_contains tests if s1 is in s2 or s2 is in s1
# It works with any objects that support the 'in' operator
# This includes strings, lists, tuples, sets, etc.

# Test case 1: strings where one is contained in the other
s1_str = "hello"
s2_str = "hello world"

# Test case 2: lists where one is contained in the other
s1_list = [1, 2]
s2_list = [1, 2, 3, 4]

# Test case 3: with actual containment check
s1_test = "world"
s2_test = "hello world"

# We'll use the string case as our primary test
ARGS = {
    "s1": "world",
    "s2": "hello world"
}
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 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
find_context Ran
ran; our contract draft was wrong, not the code
penfever/archetype/src/make_dataset.py
code served (permissive licence) · get_code("6dfd82807e080ac0")
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

def find_context(s):
    idx = s.find('INPUT:')
    len_c = len('INPUT:')
    s = s[idx + len_c:] + '\n'
    return s

ARGS = {
    's': 'Some prefix text INPUT: this is the content after the marker'
}
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
fix_labels Ran
ran; our contract draft was wrong, not the code
penfever/archetype/src/data.py
code served (permissive licence) · get_code("cd1e40c83d059762")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Construct valid arguments for fix_labels function
label = "Test Label/Name"

label_set = {
    'dict_map': {
        'Test Label': 'remapped_label',
        'Another': 'different_label'
    },
    'abbrev_map': {
        'TL': 'test_label',
        'AB': 'abbreviation'
    }
}

ARGS = {
    'label': label,
    'label_set': label_set
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
gt_contains_ans Ran
ran; our contract draft was wrong, not the code
penfever/archetype/src/match.py
code served (permissive licence) · get_code("ae448ba332acd5ee")
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

def gt_contains_ans(ans_n, fixed_labels):
    if ans_n == '':
        return None
    for fixed_label in fixed_labels:
        if ans_n in fixed_label:
            ans_n = fixed_label
            return ans_n
    return None

# Setup code
torch.manual_seed(0)

# Define arguments
ans_n = "cat"
fixed_labels = ["concatenate", "category", "dog"]

ARGS = {
    "ans_n": ans_n,
    "fixed_labels": fixed_labels
}
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
make_json Ran
ran; our contract draft was wrong, not the code
penfever/archetype/src/data.py
code served (permissive licence) · get_code("91b062a66f173cf9")
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 numpy as np

torch.manual_seed(0)

prompt = "What is machine learning?"

var_params = {
    "temperature": 0.7,
    "top_k": 50
}

args = {
    'params': {
        'max_new_tokens': 100,
        'do_sample': True,
        'temperature': 0.9,
        'top_p': 0.95,
        'typical_p': 0.95,
        'repetition_penalty': 1.0,
        'encoder_repetition_penalty': 1.0,
        'top_k': 40,
        'min_length': 10,
        'no_repeat_ngram_size': 2,
        'num_beams': 1,
        'penalty_alpha': 0.6,
        'length_penalty': 1.0,
        'early_stopping': False,
        'seed': 42
    }
}

ARGS = {
    'prompt': prompt,
    'var_params': var_params,
    'args': args
}
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 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
missing_entries Ran
ran; our contract draft was wrong, not the code
penfever/archetype/src/metrics.py
code served (permissive licence) · get_code("0716edf17d1982e3")
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 set. 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 temporary JSON files with the expected structure
temp_dir = tempfile.mkdtemp()
f1_path = os.path.join(temp_dir, "file1.json")
f2_path = os.path.join(temp_dir, "file2.json")

# Create test data for file 1
d1 = {
    "entry1": {"file+idx": "path/to/file1.txt+0"},
    "entry2": {"file+idx": "path/to/file2.txt+1"},
    "entry3": {"file+idx": "path/to/file3.txt+2"},
}

# Create test data for file 2 (subset of file 1, plus one unique entry)
d2 = {
    "entry1": {"file+idx": "path/to/file1.txt+0"},
    "entry4": {"file+idx": "path/to/file4.txt+3"},
}

# Write the test data to temporary files
with open(f1_path, 'w') as f:
    json.dump(d1, f)

with open(f2_path, 'w') as f:
    json.dump(d2, f)

ARGS = {
    "f1": f1_path,
    "f2": f2_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 set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set 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
prompt_context_insert Not yet run
unverified (harvested, no recorded run)
penfever/archetype/src/data.py
code served (permissive licence) · get_code("795f51d12a10435e")
How it ran

no invocation recorded.

reorder_matrix Not yet run
unverified (harvested, no recorded run)
penfever/archetype/src/metrics.py
code served (permissive licence) · get_code("5e24c4d3022c08ae")
How it ran

no invocation recorded.

run_comprehensive_cases Not yet run
unverified (harvested, no recorded run)
penfever/archetype/src/schema_match_fix.py
code served (permissive licence) · get_code("953ab30e131a5d9d")
How it ran

no invocation recorded.

run_special_cases Not yet run
unverified (harvested, no recorded run)
penfever/archetype/src/schema_match_fix.py
code served (permissive licence) · get_code("b19f8eb48371ddb2")
How it ran

no invocation recorded.

Also present in other papers' code

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

Existing deep-learning approaches to semantic column type annotation (CTA) have important shortcomings: they rely on semantic types which are fixed at training time; require a large number of training samples per type and incur large run-time inference costs; and their performance can degrade when evaluated on novel datasets, even when types remain constant. Large language models have exhibited strong zero-shot classification performance on a wide range of tasks and in this paper we explore their use for CTA. We introduce ArcheType, a simple, practical method for context sampling, prompt serialization, model querying, and label remapping, which enables large language models to solve CTA problems in a fully zero-shot manner. We ablate each component of our method separately, and establish that improvements to context sampling and label remapping provide the most consistent gains. ArcheType establishes a new state-of-the-art performance on zero-shot CTA benchmarks (including three new domain-specific benchmarks which we release along with this paper), and when used in conjunction with classical CTA techniques, it outperforms a SOTA DoDuo model on the fine-tuned SOTAB benchmark. Our code is available at https://github.com/penfever/ArcheType.

For agents

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

get_harvested_code_for_paper("2310.18208")
get_code_for_paper("2310.18208")
have("2310.18208")

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

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

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

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

Connect an agent — have() is free.