SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1904.11088 · 2019

D-VAE: A Variational Autoencoder for Directed Acyclic Graphs

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 3 have no contract verdict; 2 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.11088.json · badge: /api/ran/1904.11088.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
muhanzhang/D-VAE canonical (classifier label)
classifier basis: census
5 ran · 3 no recorded run
FunctionStatusWhere it lives
compute_kernel_numpy Ran
ran on a synthesized input
muhanzhang/D-VAE/bayesian_optimization/gauss.py
code served (permissive licence) · get_code("6c74edc2c0dc695e")
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 2, dtype family float, shape (2, 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 numpy as np

# Analyze the function:
# - lls: log length scale(s), used as np.exp(lls), then in np.outer with ls
#   appears to be 1D array of shape (n_features,)
# - lsf: log signal frequency, scalar or array, used as np.exp(lsf)
# - x: data array, can be 1D or 2D, shape (n_samples, n_features) after processing
# - z: data array, can be 1D or 2D, shape (m_samples, n_features) after processing

# The function computes a kernel matrix between x and z
# Let's create small distinct dimensions:
# - n_features = 4 (for lls dimension)
# - n_samples_x = 2 (for x)
# - n_samples_z = 3 (for z, different from x to avoid ambiguity)

np.random.seed(0)

# lls: log length scale, one per feature, shape (4,)
lls = np.array([-0.5, 0.0, 0.2, -0.3])

# lsf: log signal frequency, scalar
lsf = np.array(0.5)

# x: input data, shape (2, 4)
x = np.random.randn(2, 4)

# z: reference data, shape (3, 4)
z = np.random.randn(3, 4)

ARGS = {
    "lls": lls,
    "lsf": lsf,
    "x": x,
    "z": z
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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 2, dtype family float, shape (2, 3) — shape (2, 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_object Ran
ran on a synthesized input
muhanzhang/D-VAE/util.py
code served (permissive licence) · get_code("efe304eb2d1e874e")
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 gzip
import pickle
import tempfile
import os

# Create a temporary gzip file with pickled data
temp_dir = tempfile.mkdtemp()
test_data = {"key": "value", "number": 42, "list": [1, 2, 3]}

temp_file = os.path.join(temp_dir, "test_object.pkl.gz")
with gzip.GzipFile(temp_file, 'wb') as f:
    f.write(pickle.dumps(test_data))

ARGS = {
    "filename": 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 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
lstm Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
muhanzhang/D-VAE/software/enas/src/common_ops.py
code served (permissive licence) · get_code("266925fcd482144b")
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 3, 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 tensorflow as tf

tf.random.set_seed(0)

# Determine sizes from function body:
# - x and prev_h are concatenated, then matmul with w
# - ifog = tf.matmul(tf.concat([x, prev_h], axis=1), w)
# - ifog is split into 4 parts along axis=1
# - Element-wise operations between i, g and f, prev_c, o
# So: x shape (batch, input_dim), prev_h shape (batch, hidden_dim)
# concat gives (batch, input_dim + hidden_dim)
# w shape must be (input_dim + hidden_dim, 4 * hidden_dim)
# ifog shape (batch, 4 * hidden_dim)
# Each of i, f, o, g has shape (batch, hidden_dim)

batch_size = 2
input_dim = 3
hidden_dim = 4

x = tf.constant([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]], dtype=tf.float32)  # shape (2, 3)
prev_c = tf.constant([[0.1, 0.2, 0.3, 0.4], [0.5, 0.6, 0.7, 0.8]], dtype=tf.float32)  # shape (2, 4)
prev_h = tf.constant([[0.01, 0.02, 0.03, 0.04], [0.05, 0.06, 0.07, 0.08]], dtype=tf.float32)  # shape (2, 4)

# w must map from (input_dim + hidden_dim) to (4 * hidden_dim)
# w shape: (7, 16)
w = tf.random.normal((input_dim + hidden_dim, 4 * hidden_dim), dtype=tf.float32)

ARGS = {
    "x": x,
    "prev_c": prev_c,
    "prev_h": prev_h,
    "w": w,
}
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 tuple, ndim 3, 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
one_hot Ran
ran on a synthesized input
muhanzhang/D-VAE/util.py
code served (permissive licence) · get_code("7aa8d3508c19b8f6")
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 (1, 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)

ARGS = {
    "idx": 2,
    "length": 5
}
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 (1, 5) — shape (1, 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
stack_lstm Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
muhanzhang/D-VAE/software/enas/src/common_ops.py
code served (permissive licence) · get_code("19717b48f9cb0a9a")
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 4, 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 tensorflow as tf
import numpy as np

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

# Parameters
batch_size = 2
input_dim = 4
hidden_dim = 3
num_layers = 2

# Create input x: shape (batch_size, input_dim)
x = tf.constant(np.random.randn(batch_size, input_dim).astype(np.float32))

# Create prev_c (list of cell states for each layer): each shape (batch_size, hidden_dim)
prev_c = [
    tf.constant(np.random.randn(batch_size, hidden_dim).astype(np.float32))
    for _ in range(num_layers)
]

# Create prev_h (list of hidden states for each layer): each shape (batch_size, hidden_dim)
prev_h = [
    tf.constant(np.random.randn(batch_size, hidden_dim).astype(np.float32))
    for _ in range(num_layers)
]

# Create weight matrices for each layer
# For layer 0: input is x (dim input_dim), concatenated with prev_h (dim hidden_dim)
# So w[0] shape is (input_dim + hidden_dim, 4 * hidden_dim)
# For layer 1+: input is prev_h from layer i-1 (dim hidden_dim), concatenated with prev_h (dim hidden_dim)
# So w[i] shape is (hidden_dim + hidden_dim, 4 * hidden_dim) = (2*hidden_dim, 4*hidden_dim)

w = [
    tf.constant(np.random.randn(input_dim + hidden_dim, 4 * hidden_dim).astype(np.float32)),
    tf.constant(np.random.randn(hidden_dim + hidden_dim, 4 * hidden_dim).astype(np.float32))
]

ARGS = {
    'x': x,
    'prev_c': prev_c,
    'prev_h': prev_h,
    'w': w
}
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 tuple, ndim 4, 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
create_weight Not yet run
unverified (harvested, no recorded run)
muhanzhang/D-VAE/software/enas/src/common_ops.py
pointer only (licence: MIT); the stored copy get_code serves, from MINGUKKANG/ENAS-Tensorflow, is pointer only (licence: NONE) · get_code("f2a563259f2890ae")
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 MINGUKKANG/ENAS-Tensorflow, 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. No invocation recorded.

get_highest_over_time Not yet run
unverified (harvested, no recorded run)
muhanzhang/D-VAE/bayesian_optimization/summarize.py
code served (permissive licence) · get_code("b877cbe6c942ca45")
How it ran

no invocation recorded.

load_ENAS_graphs Not yet run
unverified (harvested, no recorded run)
muhanzhang/D-VAE/util.py
code served (permissive licence) · get_code("41d695892acdddd6")
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, 6 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 3 later) and 2 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
compute_kernel_numpy 2 other papers
2 later
1910.00698 (2019-10)
Re-balancing Variational Autoencoder Loss for Molecule Sequence Generation
2010.04683 (2020-10)
Smooth Variational Graph Embeddings for Efficient Neural Architecture Search
create_weight 1 other paper
1 dated earlier
1802.03268 (2018-02)
Efficient Neural Architecture Search via Parameter Sharing
get_highest_over_time 1 other paper
1 later
2010.04683 (2020-10)
Smooth Variational Graph Embeddings for Efficient Neural Architecture Search
load_object 1 other paper
1 later
1910.00698 (2019-10)
Re-balancing Variational Autoencoder Loss for Molecule Sequence Generation
lstm 1 other paper
1 dated earlier
1802.03268 (2018-02)
Efficient Neural Architecture Search via Parameter Sharing
stack_lstm 1 other paper
1 dated earlier
1802.03268 (2018-02)
Efficient Neural Architecture Search via Parameter Sharing

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 structured data are abundant in the real world. Among different graph types, directed acyclic graphs (DAGs) are of particular interest to machine learning researchers, as many machine learning models are realized as computations on DAGs, including neural networks and Bayesian networks. In this paper, we study deep generative models for DAGs, and propose a novel DAG variational autoencoder (D-VAE). To encode DAGs into the latent space, we leverage graph neural networks. We propose an asynchronous message passing scheme that allows encoding the computations on DAGs, rather than using existing simultaneous message passing schemes to encode local graph structures. We demonstrate the effectiveness of our proposed DVAE through two tasks: neural architecture search and Bayesian network structure learning. Experiments show that our model not only generates novel and valid DAGs, but also produces a smooth latent space that facilitates searching for DAGs with better performance through Bayesian optimization.

For agents

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

get_harvested_code_for_paper("1904.11088")
get_code_for_paper("1904.11088")
have("1904.11088")

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

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

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

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

Connect an agent — have() is free.