SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1905.12712 · 2019

Path-Augmented Graph Transformer Network

arXiv · PDF · Open in the Atlas

Code that ran

8 of 8 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 8 have no contract verdict; 0 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/1905.12712.json · badge: /api/ran/1905.12712.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
benatorc/PA-Graph-Transformer canonical (classifier label)
classifier basis: census
6 ran · 0 no recorded run
longodj/tcvaemolgen community (classifier label)
classifier basis not recorded on the link
2 ran · 0 no recorded run
FunctionStatusWhere it lives
compute_max_atoms Ran
ran on a synthesized input
benatorc/PA-Graph-Transformer/utils/model_utils.py
code served (permissive licence) · get_code("9bb4ae74031b00f1")
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 int, ndim 0, dtype family int, 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

torch.manual_seed(0)

# scope is expected to be an iterable of (st, le) tuples
# where st is start index and le is length/end index
# The function iterates through these tuples and finds the maximum le value

scope = [
    (0, 5),
    (5, 12),
    (12, 8),
    (20, 15)
]

ARGS = {
    "scope": scope
}
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 int, ndim 0, dtype family int, 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
convert_to_2D Ran
ran on a synthesized input
benatorc/PA-Graph-Transformer/utils/model_utils.py
code served (permissive licence) · get_code("e9ca172359fb9a2f")
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 (5, 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

torch.manual_seed(0)

# Create input tensor of shape [batch_size, max_padding, num_features]
# batch_size = 2, max_padding = 5, num_features = 4
input_tensor = torch.randn(2, 5, 4)

# Create scope: list of (start, length) tuples for each molecule
# First molecule has 3 atoms, second molecule has 2 atoms
scope = [
    (0, 3),  # molecule 0: starts at 0, has 3 atoms
    (0, 2),  # molecule 1: starts at 0, has 2 atoms
]

ARGS = {
    "input": input_tensor,
    "scope": scope,
}
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 Tensor, ndim 2, dtype family float, shape (5, 4) — shape (5, 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
convert_to_3D Ran
ran on a synthesized input
benatorc/PA-Graph-Transformer/utils/model_utils.py
code served (permissive licence) · get_code("9a37d121a03a67ab")
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

torch.manual_seed(0)

# Create input tensor: [num_atoms, num_features]
# Let's say we have 10 total atoms across molecules, with 4 features each
input_tensor = torch.randn(10, 4)

# Create scope: list of (start_index, length) tuples for molecules
# Molecule 1: starts at 0, has 3 atoms
# Molecule 2: starts at 3, has 4 atoms
# Molecule 3: starts at 7, has 3 atoms
scope = [(0, 3), (3, 4), (7, 3)]

# Maximum atoms in any molecule (for padding)
max_atoms = 5

# Device
device = torch.device('cpu')

# self_attn flag
self_attn = True

ARGS = {
    'input': input_tensor,
    'scope': scope,
    'max_atoms': max_atoms,
    'device': device,
    'self_attn': self_attn
}
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 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
dec_tree_node_update Ran
ran on a synthesized input
longodj/tcvaemolgen/tcvaemolgen/models/modules/jtnn_dec.py
code served (permissive licence) · get_code("41d004d663f6044a")
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 MockNode:
    def __init__(self):
        self.data = {
            'new': torch.zeros(2, 4)
        }

nodes = MockNode()

ARGS = {
    'nodes': nodes
}
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
have_slots Ran
ran on a synthesized input
longodj/tcvaemolgen/tcvaemolgen/models/modules/jtnn_dec.py
code served (permissive licence) · get_code("da21481c18314904")
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

# Analyzing the function:
# - fa_slots and ch_slots are iterables of tuples
# - Each tuple has 3 elements: (a, c, h) where a and c are compared for equality,
#   and h is a numeric value that can be added
# - The tuples are accessed by index and the lists are mutated with .pop()

# Create valid slot lists with tuples of (a, c, h)
# a: can be 'C' or other strings
# c: integer or comparable value
# h: numeric value

fa_slots = [
    ('C', 1, 2),
    ('D', 1, 3),
    ('E', 2, 1)
]

ch_slots = [
    ('C', 1, 3),
    ('F', 2, 2),
    ('D', 1, 4)
]

ARGS = {
    'fa_slots': fa_slots,
    'ch_slots': ch_slots
}
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
onek_unk_encoding Ran
ran on a synthesized input
benatorc/PA-Graph-Transformer/graph/mol_features.py
code served (permissive licence) · get_code("a867dd74b32f6fa3")
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 int; 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

def onek_unk_encoding(x, set):
    """Returns a one-hot encoding of the given feature."""
    if x not in set:
        x = 'UNK'
    return [int(x == s) for s in set]


ARGS = {
    'x': 'apple',
    'set': ['apple', 'banana', 'cherry', 'UNK']
}
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 list, ndim 1, dtype family int — 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
ordered_pair Ran
ran on a synthesized input
benatorc/PA-Graph-Transformer/parse/generate_ring_data.py
code served (permissive licence) · get_code("c57de73aa8055f7e")
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 int; 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

torch.manual_seed(0)

# The function ordered_pair takes a pair (tuple of 2 elements)
# and returns them in sorted order based on < comparison
# The elements need to support comparison operators

# Create two distinct numbers to form a pair
a1 = 5
a2 = 3

pair = (a1, a2)

ARGS = {
    "pair": pair
}
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 tuple, ndim 1, dtype family int — 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
read_smiles Ran
ran on a synthesized input
benatorc/PA-Graph-Transformer/parse/generate_ring_data.py
code served (permissive licence) · get_code("bb1cf0fd62c16de5")
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
import os

# Create a temporary CSV file with SMILES data
temp_dir = tempfile.mkdtemp()
data_path = os.path.join(temp_dir, "test_smiles.csv")

# Write some sample SMILES strings to the file
with open(data_path, 'w') as f:
    f.write("CCO,ethanol\n")
    f.write("CC(C)O,isopropanol\n")
    f.write("c1ccccc1,benzene\n")

ARGS = {
    "data_path": data_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 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

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 7 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
have_slots 1 other paper
1 later
2107.00096 (2021-07)
Improving black-box optimization in VAE latent space using decoder uncertainty

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

Much of the recent work on learning molecular representations has been based on Graph Convolution Networks (GCN). These models rely on local aggregation operations and can therefore miss higher-order graph properties. To remedy this, we propose Path-Augmented Graph Transformer Networks (PAGTN) that are explicitly built on longer-range dependencies in graph-structured data. Specifically, we use path features in molecular graphs to create global attention layers. We compare our PAGTN model against the GCN model and show that our model consistently outperforms GCNs on molecular property prediction datasets including quantum chemistry (QM7, QM8, QM9), physical chemistry (ESOL, Lipophilictiy) and biochemistry (BACE, BBBP).

For agents

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

get_harvested_code_for_paper("1905.12712")
get_code_for_paper("1905.12712")
have("1905.12712")

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

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

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

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

Connect an agent — have() is free.