SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1904.09981 · 2019

GraphNAS: Graph Neural Architecture Search with Reinforcement Learning

arXiv · PDF · Open in the Atlas

Code that ran

5 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 5 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.09981.json · badge: /api/ran/1904.09981.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
GraphNAS/GraphNAS-simple canonical (classifier label)
classifier basis: census
5 ran · 3 no recorded run
FunctionStatusWhere it lives
act_map Ran
ran on a synthesized input
GraphNAS/GraphNAS-simple/graphnas/search_space.py
code served (permissive licence) · get_code("5bcfe3f645127aa3")
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 function. 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)

# The function act_map takes a single parameter 'act' which is a string
# that specifies which activation function to return.
# Valid options are: 'linear', 'elu', 'sigmoid', 'tanh', 'relu', 'relu6', 'softplus', 'leaky_relu'

ARGS = {
    'act': 'relu'
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
calc_f1 Ran
ran on a synthesized input
GraphNAS/GraphNAS-simple/graphnas/utils/model_utils.py
code served (permissive licence) · get_code("217cd43d66baee23")
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 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 torch
import numpy as np

torch.manual_seed(0)

# Create binary classification output and labels
# For sigmoid=True (binary classification), we need sigmoid probabilities
output = torch.tensor([
    [0.9, 0.1, 0.2, 0.8],
    [0.3, 0.7, 0.6, 0.4]
], dtype=torch.float32)

labels = torch.tensor([
    [1, 0, 0, 1],
    [0, 1, 1, 0]
], dtype=torch.float32)

ARGS = {
    'output': output,
    'labels': labels,
    'sigmoid': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, 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 float — 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
discount Ran
ran on a synthesized input
GraphNAS/GraphNAS-simple/graphnas/trainer.py
code served (permissive licence) · get_code("35a7fa611d2a624f")
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 ndarray, ndim 1, dtype family float, shape (5,) 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 numpy as np
import scipy.signal

# Set random seed for reproducibility
np.random.seed(0)

# Create a small numpy array to serve as input
# The function expects an array-like object with shape that supports axis=0
x = np.array([1.0, 2.0, 3.0, 4.0, 5.0])

# Create a discount amount (a scalar value between 0 and 1)
amount = 0.99

ARGS = {
    "x": x,
    "amount": amount
}
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 ndarray, ndim 1, dtype family float, shape (5,) — shape (5,) 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
evaluate Ran
ran on a synthesized input
GraphNAS/GraphNAS-simple/graphnas/gnn_model_manager.py
code served (permissive licence) · get_code("20568d7a0cb74f25")
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 float, 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

torch.manual_seed(0)

# Create small tensors for the evaluate function
# output: should have shape (batch_size, num_classes) - function calls torch.max(output, dim=1)
batch_size = 2
num_classes = 4
output = torch.randn(batch_size, num_classes)

# labels: should have shape (batch_size,) - function indexes it with mask
labels = torch.tensor([0, 2])

# mask: should have shape (batch_size,) and be boolean - function uses it for indexing and .sum()
mask = torch.tensor([True, True])

ARGS = {
    "output": output,
    "labels": labels,
    "mask": 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 float, 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
process_action Ran
ran on a synthesized input
GraphNAS/GraphNAS-simple/graphnas/utils/model_utils.py
code served (permissive licence) · get_code("85f398d50a188593")
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
import torch.nn as nn

torch.manual_seed(0)

# Create a simple args object with num_class attribute
class Args:
    def __init__(self, num_class):
        self.num_class = num_class

# Test with type 'two': actions is a list, last element gets replaced
actions_two = [1, 2, 3, 4, 5]
args_two = Args(num_class=10)

# Test with type 'simple': actions is a list of dicts, last dict gets 'out_dim' set
actions_simple = [
    {'in_dim': 4, 'out_dim': 8},
    {'in_dim': 8, 'out_dim': 16},
    {'in_dim': 16, 'out_dim': 32}
]
args_simple = Args(num_class=10)

# Test with type 'dict': actions is returned as-is
actions_dict = {'layer1': 4, 'layer2': 8}
args_dict = Args(num_class=10)

# Test with type 'micro': actions is returned as-is
actions_micro = [1, 2, 3]
args_micro = Args(num_class=10)

# Create ARGS dict with one valid set of arguments
ARGS = {
    'actions': actions_two.copy(),
    'type': 'two',
    'args': args_two
}
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
gat_message Not yet run
unverified (harvested, no recorded run)
GraphNAS/GraphNAS-simple/graphnas/gnn.py
code served (permissive licence) · get_code("79a91165eceb9b79")
How it ran

no invocation recorded.

load_data Not yet run
unverified (harvested, no recorded run)
GraphNAS/GraphNAS-simple/graphnas_variants/micro_graphnas/micro_model_manager.py
code served (permissive licence) · get_code("244052d2ff0ad026")
How it ran

no invocation recorded.

scale Not yet run
unverified (harvested, no recorded run)
GraphNAS/GraphNAS-simple/graphnas/trainer.py
code served (permissive licence) · get_code("af2ac57cf32c5b7f")
How it ran

no invocation recorded.

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, 2 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 2 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.

FunctionAlso present inEarliest-datedOthers named
evaluate 1 other paper
1 later
2008.00077 (2020-08)
Neural Architecture Search in Graph Neural Networks
gat_message 1 other paper
1 later
2008.00077 (2020-08)
Neural Architecture Search in Graph Neural Networks

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

Graph Neural Networks (GNNs) have been popularly used for analyzing non-Euclidean data such as social network data and biological data. Despite their success, the design of graph neural networks requires a lot of manual work and domain knowledge. In this paper, we propose a Graph Neural Architecture Search method (GraphNAS for short) that enables automatic search of the best graph neural architecture based on reinforcement learning. Specifically, GraphNAS first uses a recurrent network to generate variable-length strings that describe the architectures of graph neural networks, and then trains the recurrent network with reinforcement learning to maximize the expected accuracy of the generated architectures on a validation data set. Extensive experimental results on node classification tasks in both transductive and inductive learning settings demonstrate that GraphNAS can achieve consistently better performance on the Cora, Citeseer, Pubmed citation network, and protein-protein interaction network. On node classification tasks, GraphNAS can design a novel network architecture that rivals the best human-invented architecture in terms of test set accuracy.

For agents

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

get_harvested_code_for_paper("1904.09981")
get_code_for_paper("1904.09981")
have("1904.09981")

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

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

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

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

Connect an agent — have() is free.