SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.01139 · NAACL · 2024

ParallelPARC: A Scalable Pipeline for Generating Natural-Language Analogies

Yonatan Bitton, Ron Yosef, Dafna Shahaf, Oren Sultan

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/2403.01139.json · badge: /api/ran/2403.01139.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
orensul/parallelparc marked official in Papers with Code
Papers with Code archive
5 ran · 1 no recorded run
FunctionStatusWhere it lives
call_gpt3 Ran
ran; our contract draft was wrong, not the code
orensul/parallelparc/pipeline/analogy_candidates_generation/generate_analogy_candidates.py
code served (permissive licence) · get_code("0a1b0984fcb66112")
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) 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 openai

# Mock the openai module to avoid actual API calls
class MockChoice:
    def __init__(self):
        self.text = "This is a mock response from GPT-3."

class MockResponse:
    def __init__(self):
        self.choices = [MockChoice()]

# Monkey-patch openai.Completion.create to return a mock response
original_create = None
try:
    original_create = openai.Completion.create
except AttributeError:
    pass

def mock_create(**kwargs):
    return MockResponse()

openai.Completion = type('Completion', (), {'create': staticmethod(mock_create)})

# Define the arguments
ARGS = {
    'prompt': "What is the capital of France?"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
openai — 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_propara_files Ran
ran; our contract draft was wrong, not the code
orensul/parallelparc/pipeline/analogy_candidates_generation/generate_analogy_candidates.py
code served (permissive licence) · get_code("efd493d4628930a7")
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 temporary files for testing
temp_dir = tempfile.mkdtemp()

# Create a TSV file with the expected format
tsv_content = """ID\t\tPROMPT: Water Cycle\t-\tDescription
ID2\t\tPROMPT: Photosynthesis\t-\tDescription
ID3\t\tPROMPT: Evaporation Process\t-\tDescription
"""

tsv_file = os.path.join(temp_dir, "test.tsv")
with open(tsv_file, 'w') as f:
    f.write(tsv_content)

# Create a JSON file with the expected format
json_content = """{"para_id": "ID", "sentence_texts": ["Water evaporates from the surface.", "It rises into the atmosphere."], "participants": ["water"], "states": [["liquid"], ["gas"]]}
{"para_id": "ID2", "sentence_texts": ["Plants use sunlight to make food.", "Oxygen is produced."], "participants": ["plant", "oxygen"], "states": [["active"], ["produced"]]}
{"para_id": "ID3", "sentence_texts": ["Heat causes water to evaporate.", "The process is continuous."], "participants": ["heat", "water"], "states": [["applied"], ["evaporating"]]}
"""

json_file = os.path.join(temp_dir, "test.json")
with open(json_file, 'w') as f:
    f.write(json_content)

ARGS = {
    "propara_json_file": json_file,
    "propara_tsv_file": tsv_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
extract_relations Ran
ran; our contract draft was wrong, not the code
orensul/parallelparc/pipeline/analogy_candidates_generation/generate_analogy_candidates.py
code served (permissive licence) · get_code("d687e73c1476d3d3")
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:
# - relations: a string with multiple lines, each containing the word 'like'
# - side: a string, either 'source' or 'source' (default)
# - The function splits each line by 'like' and takes either index 0 or 1
# - Returns a string with extracted parts

ARGS = {
    'relations': 'I like cats\nDogs like bones\nCats like mice',
    'side': 'source'
}
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
get_paragraph_titles Ran
ran; our contract draft was wrong, not the code
orensul/parallelparc/pipeline/analogy_candidates_generation/generate_analogy_candidates.py
code served (permissive licence) · get_code("117c39f1fcdce9e9")
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) 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 os

# Create a temporary file with the expected format
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_filename = temp_file.name

# Write sample content matching the expected format
sample_content = """some prefix\t\tPROMPT: First Title\t-some suffix
another line without prompt
more text\t\tPROMPT: Second Title\t-more content
\t\tPROMPT: Third Title\t-end
"""

temp_file.write(sample_content)
temp_file.close()

ARGS = {
    'filename': temp_filename
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
read_propara_paragraphs Ran
ran; our contract draft was wrong, not the code
orensul/parallelparc/pipeline/analogy_candidates_generation/generate_analogy_candidates.py
code served (permissive licence) · get_code("e60e10a04916f0ce")
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) 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 file with valid ProPara format data
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.jsonl')

# Write sample ProPara data in JSONL format
sample_data = [
    {
        'para_id': 'para_1',
        'sentence_texts': ['Water is heated.', 'Steam rises.', 'Condensation occurs.'],
        'participants': ['water', 'steam', 'condensation'],
        'states': [
            [{'participant': 'water', 'state': 'heated', 'location': 'container'}],
            [{'participant': 'steam', 'state': 'rising', 'location': 'air'}],
            [{'participant': 'condensation', 'state': 'forming', 'location': 'surface'}]
        ]
    },
    {
        'para_id': 'para_2',
        'sentence_texts': ['Ice melts slowly.', 'Liquid forms.'],
        'participants': ['ice', 'liquid'],
        'states': [
            [{'participant': 'ice', 'state': 'melting', 'location': 'container'}],
            [{'participant': 'liquid', 'state': 'formed', 'location': 'container'}]
        ]
    }
]

for item in sample_data:
    temp_file.write(json.dumps(item) + '\n')

temp_file.close()

ARGS = {
    'filename': temp_file.name
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
gpt3_generate_target_propara_topics_analogies Not yet run
unverified (harvested, no recorded run)
orensul/parallelparc/pipeline/analogy_candidates_generation/generate_analogy_candidates.py
code served (permissive licence) · get_code("03dddbc5bdef095d")
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

Analogy-making is central to human cognition, allowing us to adapt to novel situations -an ability that current AI systems still lack. Most analogy datasets today focus on simple analogies (e.g., word analogies); datasets including complex types of analogies are typically manually curated and very small. We believe that this holds back progress in computational analogy. In this work, we design a data generation pipeline, ParallelPARC (Parallel Paragraph Creator) leveraging state-of-the-art Large Language Models (LLMs) to create complex, paragraph-based analogies, as well as distractors, both simple and challenging. We demonstrate our pipeline and create ProPara-Logy, a dataset of analogies between scientific processes. We publish a gold-set, validated by humans, and a silver-set, generated automatically. We test LLMs' and humans' analogy recognition in binary and multiple-choice settings, and found that humans outperform the best models (∼13% gap) after a light supervision. We demonstrate that our silver-set is useful for training models. Lastly, we show challenging distractors confuse LLMs, but not humans. We hope our pipeline will encourage research in this emerging field. Generate analogy candidates Auto-labeling the candidates Human validation Generate distractors Human annotation of a random sample Random split Silver set Gold set Input paragraphs (ProPara) Analogy (positive), Random (simple negative), Distractor (challenging negative) Analogy (positive), Random (simple negative), Distractor (challenging negative)

For agents

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

get_harvested_code_for_paper("2403.01139")
get_code_for_paper("2403.01139")
have("2403.01139")

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

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

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

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

Connect an agent — have() is free.