SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1904.05811 · 2019

Relational Graph Attention Networks

arXiv · PDF · Open in the Atlas

Code that ran

7 of 10 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 7 have no contract verdict; 0 failures of our instrument; 3 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/1904.05811.json · badge: /api/ran/1904.05811.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
Babylonpartners/rgat canonical (classifier label)
classifier basis: census
7 ran · 3 no recorded run
FunctionStatusWhere it lives
get_graph_file_path Ran
ran on a synthesized input
Babylonpartners/rgat/rgat/datasets/rdf.py
code served (permissive licence) · get_code("4251a2734ed7f1f5")
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 os
import tensorflow as tf

# Mock the get_file function to avoid actual network calls
original_get_file = tf.keras.utils.get_file

def mock_get_file(fname, origin, cache_subdir):
    """Mock implementation that returns a fake file path without downloading"""
    return os.path.join(cache_subdir, fname)

tf.keras.utils.get_file = mock_get_file

ARGS = {
    'name': 'AIFB'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — 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_shape Ran
ran on a synthesized input
Babylonpartners/rgat/rgat/ops/math_ops.py
code served (permissive licence) · get_code("c4517c4403af4f37")
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 tensorflow as tf

# Create a simple TensorFlow tensor with a partially unknown shape
# We'll use a placeholder-like pattern that TensorFlow can work with

# Create a tensor with static shape fully known
x_static = tf.constant([[1.0, 2.0, 3.0, 4.0],
                        [5.0, 6.0, 7.0, 8.0]])

# Create a tensor with dynamic dimensions (using tf.function or operations that create dynamic shapes)
# We'll use tf.reshape with a dynamic dimension
batch_size = tf.constant(2)
x_dynamic = tf.reshape(tf.range(8, dtype=tf.float32), [batch_size, 4])

# For the function test, we'll use the dynamic tensor which will have None in static shape
# but known dynamic shape at runtime
ARGS = {
    "x": x_dynamic
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — 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
indices_expand Ran
ran on a synthesized input
Babylonpartners/rgat/rgat/ops/sparse_ops.py
code served (permissive licence) · get_code("8e3108492b379a3e")
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 EagerTensor, ndim 2, dtype family int, shape (6, 3) 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 tensorflow as tf

# Create a small sparse tensor indices example
# Shape: (2, 2) - 2 indices with 2 dimensions each
indices = tf.constant([[0, 1],
                       [0, 2]], dtype=tf.int64)

# Final dimension size for expansion
final_dim = 3

ARGS = {
    'indices': indices,
    'final_dim': final_dim,
    'name': 'indices_expand'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 2, dtype family int, shape (6, 3) — shape (6, 3) 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
relational_supports_to_support Ran
ran on a synthesized input
Babylonpartners/rgat/rgat/utils/graph_utils.py
code served (permissive licence) · get_code("08331bfe1e711295")
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 csr_matrix. 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
from scipy import sparse
from collections import OrderedDict

torch.manual_seed(0)

# Create sparse matrices for relational_supports
# Using different shapes to make dimensions distinguishable
sparse_matrix_1 = sparse.csr_matrix(np.random.rand(4, 3))
sparse_matrix_2 = sparse.csr_matrix(np.random.rand(4, 5))
sparse_matrix_3 = sparse.csr_matrix(np.random.rand(4, 2))

# Test case 1: OrderedDict with no ordering specified
relational_supports_ordered = OrderedDict([
    ('rel_1', sparse_matrix_1),
    ('rel_2', sparse_matrix_2),
    ('rel_3', sparse_matrix_3)
])

# Test case 2: regular dict with explicit ordering
relational_supports_dict = {
    'rel_1': sparse_matrix_1,
    'rel_2': sparse_matrix_2,
    'rel_3': sparse_matrix_3
}

ordering = ['rel_1', 'rel_3', 'rel_2']

ARGS = {
    'relational_supports': relational_supports_ordered,
    'ordering': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type csr_matrix — a csr_matrix output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a csr_matrix 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
sparse_diagonal_matrix Ran
ran on a synthesized input
Babylonpartners/rgat/rgat/ops/sparse_ops.py
code served (permissive licence) · get_code("f455fbaa90dda267")
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 SparseTensor. 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 tensorflow as tf

# Create small sparse tensors to use as input
# SparseTensor 1: 3x3 matrix with 2 non-zero values
indices1 = tf.constant([[0, 0], [1, 2]], dtype=tf.int64)
values1 = tf.constant([1.0, 2.0], dtype=tf.float32)
dense_shape1 = tf.constant([3, 3], dtype=tf.int64)
sp_tensor1 = tf.SparseTensor(indices1, values1, dense_shape1)

# SparseTensor 2: 2x4 matrix with 1 non-zero value
indices2 = tf.constant([[0, 1]], dtype=tf.int64)
values2 = tf.constant([3.0], dtype=tf.float32)
dense_shape2 = tf.constant([2, 4], dtype=tf.int64)
sp_tensor2 = tf.SparseTensor(indices2, values2, dense_shape2)

# SparseTensor 3: 2x2 matrix with 1 non-zero value
indices3 = tf.constant([[1, 1]], dtype=tf.int64)
values3 = tf.constant([4.0], dtype=tf.float32)
dense_shape3 = tf.constant([2, 2], dtype=tf.int64)
sp_tensor3 = tf.SparseTensor(indices3, values3, dense_shape3)

ARGS = {
    'sp_inputs': [sp_tensor1, sp_tensor2, sp_tensor3],
    'name': 'sparse_diagonal_matrix'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SparseTensor — a SparseTensor output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SparseTensor 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
sparse_squeeze_0 Ran
ran on a synthesized input
Babylonpartners/rgat/rgat/ops/sparse_ops.py
code served (permissive licence) · get_code("6a17a54fd0e66d96")
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 SparseTensor. 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 tensorflow as tf
import numpy as np

# Create a small sparse tensor
# The function accesses: indices, values, dense_shape
# indices should be 2D with shape (nnz, ndim)
# We'll create a sparse tensor with 3 dimensions, so indices will be (nnz, 3)
# After squeezing dimension 0, we want (nnz, 2)

indices = np.array([
    [0, 1, 2],
    [0, 0, 1],
    [1, 2, 0]
], dtype=np.int64)

values = np.array([1.0, 2.0, 3.0], dtype=np.float32)

dense_shape = [2, 3, 4]  # 3D shape

sp_input = tf.SparseTensor(
    indices=indices,
    values=values,
    dense_shape=dense_shape
)

ARGS = {
    "sp_input": sp_input
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SparseTensor — a SparseTensor output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SparseTensor 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
triple_from_coo Ran
ran on a synthesized input
Babylonpartners/rgat/rgat/utils/graph_utils.py
code served (permissive licence) · get_code("b20d399aa4840475")
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 numpy as np
from scipy import sparse

# Create a small sparse COO matrix
# The function expects an object with .data, .row, .col, and .shape attributes
# This matches scipy.sparse._matrix.coo_matrix

row = np.array([0, 1, 2])
col = np.array([0, 1, 2])
data = np.array([1.0, 2.0, 3.0])
coo_matrix = sparse.coo_matrix((data, (row, col)), shape=(3, 4))

ARGS = {
    'a': coo_matrix
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
batch_of_relational_supports_to_support Not yet run
unverified (harvested, no recorded run)
Babylonpartners/rgat/rgat/utils/graph_utils.py
code served (permissive licence) · get_code("f81ac04a42efcdc5")
How it ran

no invocation recorded.

batched_sparse_dense_matmul Not yet run
unverified (harvested, no recorded run)
Babylonpartners/rgat/rgat/ops/math_ops.py
code served (permissive licence) · get_code("94f785f4888aa158")
How it ran

no invocation recorded.

batched_sparse_tensor_to_sparse_block_diagonal Not yet run
unverified (harvested, no recorded run)
Babylonpartners/rgat/rgat/ops/math_ops.py
code served (permissive licence) · get_code("96cf54880d016a0b")
How it ran

no invocation recorded.

Also present in other papers' code

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

We investigate Relational Graph Attention Networks, a class of models that extends non-relational graph attention mechanisms to incorporate relational information, opening up these methods to a wider variety of problems. A thorough evaluation of these models is performed, and comparisons are made against established benchmarks. To provide a meaningful comparison, we retrain Relational Graph Convolutional Networks, the spectral counterpart of Relational Graph Attention Networks, and evaluate them under the same conditions. We find that Relational Graph Attention Networks perform worse than anticipated, although some configurations are marginally beneficial for modelling molecular properties. We provide insights as to why this may be, and suggest both modifications to evaluation strategies, as well as directions to investigate for future work.

For agents

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

get_harvested_code_for_paper("1904.05811")
get_code_for_paper("1904.05811")
have("1904.05811")

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

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

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

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

Connect an agent — have() is free.