SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2208.11057 · 2022

Prompting as Probing: Using Language Models for Knowledge Base Construction

arXiv · PDF · Open in the Atlas

Code that ran

6 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, 2 violated it and 0 have no contract verdict; 4 failures of our instrument; 0 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/2208.11057.json · badge: /api/ran/2208.11057.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
hemile/iswc-challenge canonical (classifier label)
classifier basis: classifier_2025
6 ran · 0 no recorded run
FunctionStatusWhere it lives
clean_object Ran
ran; our contract draft was wrong, not the code
hemile/iswc-challenge/evaluate.py
code served (permissive licence) · get_code("5daf709fbac40821")
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 string
from typing import List, Dict, Union

def clean_object(obj: str) -> Union[str, None]:
    """
    Cleans the object by removing punctuation and lower-casing.
    """
    if not obj:
        return None
    for punctuation in string.punctuation:
        obj = obj.replace(punctuation, '')
    return obj.lower().strip()


# Setup code to construct valid arguments
ARGS = {
    "obj": "Hello, World! This is a TEST."
}
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
create_prompt Ran
ran; our contract draft was wrong, not the code
hemile/iswc-challenge/baseline.py
code served (permissive licence) · get_code("72ee5ba094d0c0bb")
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 = {
    "subject_entity": "France",
    "relation": "CountryBordersWithCountry",
    "mask_token": "[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 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
create_prompt Ran
ran; our contract draft was wrong, not the code
hemile/iswc-challenge/gpt3_baseline.py
code served (permissive licence) · get_code("6fd929182163484e")
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 torch.nn as nn

# Analyze the function signature and body
# The function takes:
# 1. subject_entity - a string (entity name)
# 2. relation - a string (type of relation)
# The function constructs prompts based on these parameters

# Build valid arguments
subject_entity = "Germany"
relation = "CountryBordersWithCountry"

ARGS = {
    "subject_entity": subject_entity,
    "relation": relation
}
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
is_none_gts Ran
ran, violated the contract we drafted
hemile/iswc-challenge/evaluate.py
code served (permissive licence) · get_code("36ab981dfffbc447")
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
from typing import List, Dict, Union

torch.manual_seed(0)

# The function is_none_gts takes gts: List[List[str]] and checks if it's empty
# It simply returns "not gts", so we need to provide a list of lists of strings

# Test case 1: non-empty ground truth (should return False)
gts_non_empty = [["class1", "class2"], ["class3"]]

# Test case 2: empty ground truth (should return True)
gts_empty = []

# Using the non-empty case as the main argument
ARGS = {
    "gts": gts_non_empty
}
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
is_none_preds Ran
ran, violated the contract we drafted
hemile/iswc-challenge/evaluate.py
code served (permissive licence) · get_code("370e1ea65710838a")
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 torch.nn as nn
from typing import List, Dict, Union

torch.manual_seed(0)

# The function checks if preds is None, empty, or contains only None/'none'/'null' values
# preds is expected to be a List[str]

# Test case 1: None input
preds_none = None

# Test case 2: Empty list
preds_empty = []

# Test case 3: List with single None
preds_single_none = [None]

# Test case 4: List with single 'none' string
preds_single_none_str = ['none']

# Test case 5: List with single 'NULL' string (case-insensitive)
preds_single_null_str = ['NULL']

# Test case 6: List with single empty string
preds_single_empty_str = ['']

# Test case 7: List with valid prediction (should return False)
preds_valid = ['prediction']

# Using the first test case for ARGS
ARGS = {
    'preds': preds_none
}
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
load_prompt Ran
ran; our contract draft was wrong, not the code
hemile/iswc-challenge/gpt3_baseline.py
code served (permissive licence) · get_code("bc5c5e8713300ce5")
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 tempfile
from pathlib import Path

# Create temporary directory structure with prompt files
temp_dir = tempfile.TemporaryDirectory()
temp_path = Path(temp_dir.name)

# Create prompt directories
prompts_triple = temp_path / 'data' / 'prompts_triple_based'
prompts_language = temp_path / 'data' / 'prompts_natural_language'
prompts_optimized = temp_path / 'data' / 'prompts_optimized'

prompts_triple.mkdir(parents=True, exist_ok=True)
prompts_language.mkdir(parents=True, exist_ok=True)
prompts_optimized.mkdir(parents=True, exist_ok=True)

# Create sample prompt files with placeholder for subject_entity
relation_name = 'knows'

triple_prompt_file = prompts_triple / f'{relation_name}.txt'
with open(triple_prompt_file, 'w') as f:
    f.write('The subject {subject_entity} knows the object.')

language_prompt_file = prompts_language / f'{relation_name}.txt'
with open(language_prompt_file, 'w') as f:
    f.write('In a natural language context, {subject_entity} has a relationship.')

optimized_prompt_file = prompts_optimized / f'{relation_name}.txt'
with open(optimized_prompt_file, 'w') as f:
    f.write('Optimized prompt for {subject_entity}.')

# Change to temp directory so relative paths work
import os
original_cwd = os.getcwd()
os.chdir(temp_path)

ARGS = {
    'subject_entity': 'Alice',
    'relation': relation_name,
    'prompt_type': 'triple'
}
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

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

Language Models (LMs) have proven to be useful in various downstream applications, such as summarisation, translation, question answering and text classification. LMs are becoming increasingly important tools in Artificial Intelligence, because of the vast quantity of information they can store. In this work, we present ProP (Prompting as Probing), which utilizes GPT-3, a large Language Model originally proposed by OpenAI in 2020, to perform the task of Knowledge Base Construction (KBC). ProP implements a multi-step approach that combines a variety of prompting techniques to achieve this. Our results show that manual prompt curation is essential, that the LM must be encouraged to give answer sets of variable lengths, in particular including empty answer sets, that true/false questions are a useful device to increase precision on suggestions generated by the LM, that the size of the LM is a crucial factor, and that a dictionary of entity aliases improves the LM score. Our evaluation study indicates that these proposed techniques can substantially enhance the quality of the final predictions: ProP won track 2 of the LM-KBC competition, outperforming the baseline by 36.4 percentage points. Our implementation is available on https://github.com/HEmile/iswc-challenge.

For agents

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

get_harvested_code_for_paper("2208.11057")
get_code_for_paper("2208.11057")
have("2208.11057")

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

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

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

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

Connect an agent — have() is free.