SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1611.07308 · 2016

Variational Graph Auto-Encoders

Max Welling, Thomas Kipf

arXiv · PDF · Open in the Atlas

Code that ran

11 of 13 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; 3 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 4 failures of our instrument; 2 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/1611.07308.json · badge: /api/ran/1611.07308.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
Omairss/RepresentationLearning community (classifier label)
classifier basis not recorded on the link
6 ran · 2 no recorded run
DaehanKim/vgae_pytorch reimplementation (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
zfjsail/gae-pytorch community (classifier label)
classifier basis not recorded on the link
2 ran · 0 no recorded run
leffff/vgae-pytorch community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
FunctionStatusWhere it lives
adj_matrix_from_edge_index Ran
ran on a synthesized input
leffff/vgae-pytorch/utils.py
code served (permissive licence) · get_code("978d23ad9dfa53fb")
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, 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 torch

torch.manual_seed(0)

# x is used as x.shape[0], so it needs to be a tensor with a first dimension
# edge_index is a LongTensor with shape (2, num_edges) containing node indices
x = torch.randn(5, 4)  # 5 nodes, 4 features

# edge_index should be (2, num_edges) where each column is an edge (source, target)
# All indices must be valid (< x.shape[0])
edge_index = torch.LongTensor([
    [0, 1, 2, 3],  # source nodes
    [1, 2, 3, 4]   # target nodes
])

ARGS = {
    'x': x,
    'edge_index': edge_index
}
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, 5) — shape (5, 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
construct_feed_dict Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Omairss/RepresentationLearning/src/preprocessing.py
pointer only (licence: MIT); the stored copy get_code serves, from sigvae/SIGraphVAE, is pointer only (licence: NONE) · get_code("b959bc9ff832fac0")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from sigvae/SIGraphVAE, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

dot_product_decode Ran
ran; our contract draft was wrong, not the code
DaehanKim/vgae_pytorch/model.py
code served (permissive licence) · get_code("ae488d391f6d24c2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family float, shape (3, 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 torch

torch.manual_seed(0)

# Z should be a 2D tensor representing node embeddings
# Shape: (num_nodes, embedding_dim)
# Using 3 nodes and 4 dimensions to keep it small and distinct
Z = torch.randn(3, 4)

ARGS = {
    'Z': Z
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
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 (3, 3) — shape (3, 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
get_layer_uid Ran
ran, honoured the contract we drafted
Omairss/RepresentationLearning/src/layers.py
pointer only (licence: MIT); the stored copy get_code serves, from sigvae/SIGraphVAE, is pointer only (licence: NONE) · get_code("addac9c28c065096")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from sigvae/SIGraphVAE, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

glorot_init Ran
ran, honoured the contract we drafted
DaehanKim/vgae_pytorch/model.py
code served (permissive licence) · get_code("33c8d926f0ebceb3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Parameter, ndim 2, dtype family float, shape (4, 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 torch
import torch.nn as nn
import numpy as np

torch.manual_seed(0)

input_dim = 4
output_dim = 3

ARGS = {
    'input_dim': input_dim,
    'output_dim': output_dim
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Parameter, ndim 2, dtype family float, shape (4, 3) — shape (4, 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
load_data Ran
ran on a synthesized input
Omairss/RepresentationLearning/src/input_data.py
code served (permissive licence) · get_code("a90896d151bea6b9")
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 numpy as np
import sys
import pickle as pkl
import networkx as nx
import scipy.sparse as sp
import tempfile
import os

# Create temporary directory and mock data files
tmpdir = tempfile.mkdtemp()

# Create mock pickle files for the dataset
dataset_name = 'test_dataset'

# Create small sparse matrices for x, tx, allx
x = sp.csr_matrix(np.random.rand(5, 3))
tx = sp.csr_matrix(np.random.rand(2, 3))
allx = sp.csr_matrix(np.random.rand(7, 3))

# Create a simple graph
graph = {
    0: [1, 2],
    1: [0, 3],
    2: [0, 4],
    3: [1],
    4: [2],
    5: [6],
    6: [5, 7],
    7: [6]
}

# Save pickle files
with open(os.path.join(tmpdir, f'ind.{dataset_name}.x'), 'wb') as f:
    pkl.dump(x, f)

with open(os.path.join(tmpdir, f'ind.{dataset_name}.tx'), 'wb') as f:
    pkl.dump(tx, f)

with open(os.path.join(tmpdir, f'ind.{dataset_name}.allx'), 'wb') as f:
    pkl.dump(allx, f)

with open(os.path.join(tmpdir, f'ind.{dataset_name}.graph'), 'wb') as f:
    pkl.dump(graph, f)

# Create test index file
test_indices = [5, 6, 7]
with open(os.path.join(tmpdir, f'ind.{dataset_name}.test.index'), 'w') as f:
    for idx in test_indices:
        f.write(f'{idx}\n')

# Change working directory to tmpdir so relative paths work
original_cwd = os.getcwd()
os.chdir(tmpdir)

# Create data directory in tmpdir
os.makedirs('data', exist_ok=True)

# Copy files to data directory
import shutil
for name in ['x', 'tx', 'allx', 'graph']:
    src = os.path.join(tmpdir, f'ind.{dataset_name}.{name}')
    dst = os.path.join(tmpdir, 'data', f'ind.{dataset_name}.{name}')
    shutil.copy(src, dst)

src = os.path.join(tmpdir, f'ind.{dataset_name}.test.index')
dst = os.path.join(tmpdir, 'data', f'ind.{dataset_name}.test.index')
shutil.copy(src, dst)

ARGS = {
    'dataset': dataset_name
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx, numpy, scipy — 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
load_data Ran
ran on a synthesized input
zfjsail/gae-pytorch/gae/utils.py
code served (permissive licence) · get_code("5e07de06a8aff025")
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 pickle as pkl
import networkx as nx
import numpy as np
import scipy.sparse as sp
import torch
import tempfile
import os

# Create temporary directory for mock data files
tmpdir = tempfile.mkdtemp()

# Create mock data files
# x: training features (140, 1433)
x = sp.csr_matrix((140, 4), dtype=np.float32)
x[np.arange(140), np.random.randint(0, 4, 140)] = 1.0

# tx: test features (1000, 1433)
tx = sp.csr_matrix((1000, 4), dtype=np.float32)
tx[np.arange(1000), np.random.randint(0, 4, 1000)] = 1.0

# allx: all training features (1708, 1433)
allx = sp.csr_matrix((1708, 4), dtype=np.float32)
allx[np.arange(1708), np.random.randint(0, 4, 1708)] = 1.0

# graph: adjacency dict
graph = {i: [j for j in range(5) if j != i] for i in range(100)}

# Save pickle files
with open(os.path.join(tmpdir, 'ind.cora.x'), 'wb') as f:
    pkl.dump(x, f)

with open(os.path.join(tmpdir, 'ind.cora.tx'), 'wb') as f:
    pkl.dump(tx, f)

with open(os.path.join(tmpdir, 'ind.cora.allx'), 'wb') as f:
    pkl.dump(allx, f)

with open(os.path.join(tmpdir, 'ind.cora.graph'), 'wb') as f:
    pkl.dump(graph, f)

# Create test index file
test_idx_reorder = np.arange(100, 200)
with open(os.path.join(tmpdir, 'ind.cora.test.index'), 'w') as f:
    for idx in test_idx_reorder:
        f.write(f'{idx}\n')

# Change to temp directory for the function to find files
os.chdir(tmpdir)
os.makedirs('data', exist_ok=True)

# Move files to data directory
for filename in ['ind.cora.x', 'ind.cora.tx', 'ind.cora.allx', 'ind.cora.graph', 'ind.cora.test.index']:
    src = os.path.join(tmpdir, filename)
    dst = os.path.join(tmpdir, 'data', filename)
    if os.path.exists(src):
        os.rename(src, dst)

torch.manual_seed(0)

ARGS = {
    'dataset': 'cora'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx, numpy, scipy, 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
loss_function Ran
ran on a synthesized input
zfjsail/gae-pytorch/gae/optimizer.py
code served (permissive licence) · get_code("cf61291f93016fe4")
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 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
import torch.nn.functional as F

torch.manual_seed(0)

# Create small tensors for the function parameters
batch_size = 2
n_nodes = 4
pred_dim = 3
latent_dim = 5

# preds: predictions from model, shape (batch_size, pred_dim)
preds = torch.randn(batch_size, pred_dim)

# labels: binary targets, shape (batch_size, pred_dim)
labels = torch.randint(0, 2, (batch_size, pred_dim)).float()

# mu: mean from VAE encoder, shape (batch_size, latent_dim)
mu = torch.randn(batch_size, latent_dim)

# logvar: log variance from VAE encoder, shape (batch_size, latent_dim)
logvar = torch.randn(batch_size, latent_dim)

# n_nodes: number of nodes (scalar integer)
n_nodes = 4

# norm: normalization weight (scalar float)
norm = 1.0

# pos_weight: positive class weight for BCE, shape (pred_dim,)
pos_weight = torch.ones(pred_dim)

ARGS = {
    "preds": preds,
    "labels": labels,
    "mu": mu,
    "logvar": logvar,
    "n_nodes": n_nodes,
    "norm": norm,
    "pos_weight": pos_weight
}
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 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
parse_index_file Ran
ran, honoured the contract we drafted
Omairss/RepresentationLearning/src/input_data.py
code served (permissive licence) · get_code("5c3fa9402a9405bc")
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 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 tempfile
import os

# Create a temporary file with index data
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_file.write("0\n")
temp_file.write("1\n")
temp_file.write("5\n")
temp_file.write("3\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 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
preprocess_graph Ran
ran; our contract draft was wrong, not the code
Omairss/RepresentationLearning/src/preprocessing.py
pointer only (licence: MIT); the stored copy get_code serves, from sigvae/SIGraphVAE, is pointer only (licence: NONE) · get_code("20362feefced8682")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from sigvae/SIGraphVAE, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sparse_to_tuple Ran
ran; our contract draft was wrong, not the code
Omairss/RepresentationLearning/src/preprocessing.py
pointer only (licence: MIT); the stored copy get_code serves, from mocherson/MedGCN, is pointer only (licence: NONE) · get_code("3965c8f8e2d0023e")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from mocherson/MedGCN, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

dropout_sparse Not yet run
unverified (harvested, no recorded run)
Omairss/RepresentationLearning/src/layers.py
code served (permissive licence) · get_code("1aae0eaba6789dd0")
How it ran

no invocation recorded.

weight_variable_glorot Not yet run
unverified (harvested, no recorded run)
Omairss/RepresentationLearning/src/initializations.py
code served (permissive licence) · get_code("8a99ee5c26e527fa")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 10 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 10 later) and 3 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
parse_index_file 53 other papers
1 dated earlier, 52 later · 1 only as an assembly brick
1603.08861 (2016-03)
Revisiting Semi-Supervised Learning with Graph Embeddings
1710.10568 (2017-10)
Stochastic Training of Graph Convolutional Networks with Variance Reduction
1710.10903 (2017-10)
Graph Attention Networks
and 50 more not named here
get_layer_uid 33 other papers
3 dated earlier, 30 later · 5 only as an assembly brick
1603.08861 (2016-03)
Revisiting Semi-Supervised Learning with Graph Embeddings
1606.09375 (2016-06)
Convolutional Neural Networks on Graphs with Fast Localized Spectral Filtering
1609.02907 (2016-09)
Semi-Supervised Classification with Graph Convolutional Networks
and 30 more not named here
sparse_to_tuple 9 other papers
9 later
1804.00099 (2018-04)
Graph Convolutional Neural Networks via Scattering
1904.00326 (2019-04)
MedGCN: Medication recommendation and lab test imputation via graph convolutional networks
1906.05017 (2019-06)
Graph Embedding on Biomedical Networks: Methods, Applications, and Evaluations
and 6 more not named here
construct_feed_dict 4 other papers
4 later
1906.05017 (2019-06)
Graph Embedding on Biomedical Networks: Methods, Applications, and Evaluations
1908.07078 (2019-08)
Semi-Implicit Graph Variational Auto-Encoders
2002.03665 (2020-02)
AnomalyDAE: Dual autoencoder for anomaly detection on attributed networks
and 1 more not named here
dot_product_decode 3 other papers
3 later
1906.06532 (2019-06)
Attributed Graph Clustering: A Deep Attentional Embedding Approach
2106.00967 (2021-06)
Multiresolution Equivariant Graph Variational Autoencoder
2407.04999 (2024-07)
Rethinking the Effectiveness of Graph Classification Datasets in Benchmarks for Assessing GNNs
dropout_sparse 3 other papers
3 later
1906.05017 (2019-06)
Graph Embedding on Biomedical Networks: Methods, Applications, and Evaluations
2002.03665 (2020-02)
AnomalyDAE: Dual autoencoder for anomaly detection on attributed networks
ijcai2022_0498 (2022 (year only))
Stabilizing and Enhancing Link Prediction through Deepened Graph Auto-Encoders
preprocess_graph 3 other papers
3 later
1906.05017 (2019-06)
Graph Embedding on Biomedical Networks: Methods, Applications, and Evaluations
1908.07078 (2019-08)
Semi-Implicit Graph Variational Auto-Encoders
2002.03665 (2020-02)
AnomalyDAE: Dual autoencoder for anomaly detection on attributed networks
weight_variable_glorot 2 other papers
2 later
1906.05017 (2019-06)
Graph Embedding on Biomedical Networks: Methods, Applications, and Evaluations
2002.03665 (2020-02)
AnomalyDAE: Dual autoencoder for anomaly detection on attributed networks
glorot_init 1 other paper
1 later
2106.00967 (2021-06)
Multiresolution Equivariant Graph Variational Autoencoder
loss_function 1 other paper
1 later
2104.14210 (2021-04)
FairDrop: Biased Edge Dropout for Enhancing Fairness in Graph Representation Learning

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.

For agents

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

get_harvested_code_for_paper("1611.07308")
get_code_for_paper("1611.07308")
have("1611.07308")

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

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

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

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

Connect an agent — have() is free.