SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1908.04003 · 2019

RWR-GAE: Random Walk Regularization for Graph Auto Encoders

arXiv · PDF · Open in the Atlas

Code that ran

7 of 9 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; 1 honoured the contract we drafted, 1 violated it and 4 have no contract verdict; 1 failure of our instrument; 2 no recorded run), measured 2026-11-21; 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/1908.04003.json · badge: /api/ran/1908.04003.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
MysteryVaibhav/DW-GAE canonical (classifier label)
classifier basis: census
7 ran · 2 no recorded run
FunctionStatusWhere it lives
build_deepwalk_corpus Ran
ran on a synthesized input
MysteryVaibhav/DW-GAE/deepWalk/graph.py
code served (permissive licence) · get_code("403f4117b07d190a")
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 2, 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 random
import networkx as nx

class MockGraph:
    def __init__(self):
        self.adjacency = {
            0: [1, 2],
            1: [0, 2, 3],
            2: [0, 1, 3],
            3: [1, 2]
        }
    
    def nodes(self):
        return list(self.adjacency.keys())
    
    def random_walk(self, path_length, rand=None, alpha=0, start=None):
        if rand is None:
            rand = random.Random(0)
        walk = [start]
        current = start
        for _ in range(path_length - 1):
            neighbors = self.adjacency.get(current, [])
            if neighbors:
                current = rand.choice(neighbors)
                walk.append(current)
            else:
                break
        return walk

G = MockGraph()
num_paths = 2
path_length = 4
alpha = 0
rand = random.Random(0)

ARGS = {
    'G': G,
    'num_paths': num_paths,
    'path_length': path_length,
    'alpha': alpha,
    'rand': rand
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx, six — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, 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
count_lines Ran
ran on a synthesized input
MysteryVaibhav/DW-GAE/deepWalk/walks.py
code served (permissive licence) · get_code("7f315b6b9ba82456")
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 tempfile
import os

# Create a temporary file with some content for testing
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test.txt")

with open(temp_file, 'w') as f:
    f.write("line 1\n")
    f.write("line 2\n")
    f.write("line 3\n")

ARGS = {
    'f': temp_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 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
count_words Ran
ran on a synthesized input
MysteryVaibhav/DW-GAE/deepWalk/walks.py
code served (permissive licence) · get_code("a236ee68c305670f")
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 Counter. 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 tempfile
import os

# Create a temporary file with some text content
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_file.write("hello world\n")
temp_file.write("hello python world\n")
temp_file.write("python code\n")
temp_file.close()

ARGS = {
    'file': temp_file.name
}
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 Counter — a Counter output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Counter 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
grouper Ran
ran; our contract draft was wrong, not the code
MysteryVaibhav/DW-GAE/deepWalk/graph.py
code served (permissive licence) · get_code("ded4ca7d73b1360a")
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 zip_longest. 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.

from six.moves import range, zip, zip_longest

torch_manual_seed_called = False
try:
    import torch
    torch.manual_seed(0)
    torch_manual_seed_called = True
except:
    pass

# The grouper function takes:
# - n: an integer specifying group size
# - iterable: any iterable object
# - padvalue: the value to pad with (defaults to None)

# Looking at the function body, it:
# 1. Creates n copies of iter(iterable)
# 2. Passes them to zip_longest with fillvalue=padvalue
# This means iterable just needs to be any iterable sequence

ARGS = {
    'n': 3,
    'iterable': 'abcdefg',
    'padvalue': 'x'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
six, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type zip_longest — a zip_longest output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a zip_longest 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
loss_function Ran
ran on a synthesized input
MysteryVaibhav/DW-GAE/gae/optimizer.py
code served (permissive licence) · get_code("59a02f929e372616")
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

torch.manual_seed(0)

# Create small tensors for the loss function
batch_size = 2
n_nodes = 4
pred_dim = 3

# preds: logits for binary cross entropy, shape (batch_size, pred_dim)
preds = torch.randn(batch_size, pred_dim)

# labels: binary labels, 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, pred_dim)

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

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

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

# pos_weight: positive class weight for binary cross entropy
pos_weight = torch.tensor([1.5, 2.0, 1.2])

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
MysteryVaibhav/DW-GAE/gae/utils.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
sample_mask Ran
ran, violated the contract we drafted
MysteryVaibhav/DW-GAE/gae/utils.py
code served (permissive licence) · get_code("b32fd748b4bbe3bf")
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 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

# Analyze the function:
# - idx: used as an index into mask array, should be an integer or array of integers
# - l: used as the length parameter for np.zeros, should be an integer

# Create valid arguments
idx = 2  # Single index into the mask array
l = 5    # Length of the mask array

ARGS = {
    "idx": idx,
    "l": l
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — 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
count_textfiles Not yet run
unverified (harvested, no recorded run)
MysteryVaibhav/DW-GAE/deepWalk/walks.py
code served (permissive licence) · get_code("a54b6d765d3144b3")
How it ran

no invocation recorded.

load_data Not yet run
unverified (harvested, no recorded run)
MysteryVaibhav/DW-GAE/gae/utils.py
code served (permissive licence) · get_code("d43bfa83b4dea054")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 3 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 1 the same month, 3 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
parse_index_file 53 other papers
17 dated earlier, 1 the same month, 35 later · 1 only as an assembly brick
1603.08861 (2016-03)
Revisiting Semi-Supervised Learning with Graph Embeddings
1611.07308 (2016-11)
Variational Graph Auto-Encoders
1710.10568 (2017-10)
Stochastic Training of Graph Convolutional Networks with Variance Reduction
and 50 more not named here
sample_mask 28 other papers
11 dated earlier, 17 later
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 25 more not named here
grouper 1 other paper
1 later
2005.08139 (2020-05)
Train in Germany, Test in The USA: Making 3D Object Detectors Generalize

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-21.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Node embeddings have become an ubiquitous technique for representing graph data in a low dimensional space. Graph autoencoders, as one of the widely adapted deep models, have been proposed to learn graph embeddings in an unsupervised way by minimizing the reconstruction error for the graph data. However, its reconstruction loss ignores the distribution of the latent representation, and thus leading to inferior embeddings. To mitigate this problem, we propose a random walk based method to regularize the representations learnt by the encoder. We show that the proposed novel enhancement beats the existing state-of-the-art models by a large margin (upto 7.5\%) for node clustering task, and achieves state-of-the-art accuracy on the link prediction task for three standard datasets, cora, citeseer and pubmed. Code available at https://github.com/MysteryVaibhav/DW-GAE.

For agents

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

get_harvested_code_for_paper("1908.04003")
get_code_for_paper("1908.04003")
have("1908.04003")

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

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

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

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

Connect an agent — have() is free.