SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1905.12724 · 2019

Variational Diffusion Autoencoders with Random Walk Sampling

arXiv · PDF · Open in the Atlas

Code that ran

9 of 16 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 9 have no contract verdict; 0 failures of our instrument; 7 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/1905.12724.json · badge: /api/ran/1905.12724.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
lihenryhfl/SpectralVAEGAN community (classifier label)
classifier basis not recorded on the link
9 ran · 7 no recorded run
FunctionStatusWhere it lives
create_pairs_from_labeled_data Ran
ran on a synthesized input
lihenryhfl/SpectralVAEGAN/vdae/pairs.py
code served (permissive licence) · get_code("d5f96b481cc7e0ae")
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
import random

random.seed(0)
np.random.seed(0)

# Create sample data: 5 samples with feature dimension 4
x = np.random.randn(5, 4).astype(np.float32)

# Create digit_indices: a nested array where each row contains indices of samples for that class
# We have 3 classes (0, 1, 2)
# Class 0: samples [0, 1]
# Class 1: samples [2, 3]
# Class 2: sample [4]
digit_indices = [
    [0, 1],      # class 0
    [2, 3],      # class 1
    [4],         # class 2
]

# use_classes can be None or a list of class indices
use_classes = None

ARGS = {
    "x": x,
    "digit_indices": digit_indices,
    "use_classes": use_classes,
}
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 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
get_choices Ran
ran on a synthesized input
lihenryhfl/SpectralVAEGAN/vdae/pairs.py
code served (permissive licence) · get_code("3397f51110e4a583")
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 numpy as np
from random import randint
from collections import defaultdict

# Test case 1: arr is a numpy array
arr_list = np.array([10, 20, 30, 40, 50, 60, 70, 80])
num_choices_1 = 3
valid_range_1 = [15, 75]
not_arr_1 = [20, 50]
replace_1 = False

ARGS = {
    "arr": arr_list,
    "num_choices": num_choices_1,
    "valid_range": valid_range_1,
    "not_arr": not_arr_1,
    "replace": replace_1
}
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 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
get_scale Ran
ran on a synthesized input
lihenryhfl/SpectralVAEGAN/vdae/util.py
code served (permissive licence) · get_code("b482d03e6f8ffec4")
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 float64, ndim 0, 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

# Create a small sample dataset for x
# The function will reshape it to (batch_size, flattened_features)
# Using shape (10, 4) to have 10 points with 4 features each
x = np.random.randn(10, 4).astype(np.float32)

batch_size = 3
n_nbrs = 2

ARGS = {
    "x": x,
    "batch_size": batch_size,
    "n_nbrs": n_nbrs,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
imscatter Ran
ran on a synthesized input
lihenryhfl/SpectralVAEGAN/vdae/vdae_util.py
code served (permissive licence) · get_code("9845dd5e25ba4c00")
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 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 matplotlib.pyplot as plt

# Create small test data
np.random.seed(0)

# x and y coordinates for scatter points
x = np.array([0.2, 0.8])
y = np.array([0.3, 0.7])

# samples: shape (2, 12) - 2 samples, each flattened to 12 elements
samples = np.random.rand(2, 12).astype(np.float32)

# shape for grayscale image: (3, 4) - will reshape 12 elements into 3x4
shape_gray = (3, 4)

# Create a figure and axis
fig, ax = plt.subplots()

ARGS = {
    'x': x,
    'y': y,
    'samples': samples,
    'shape': shape_gray,
    'ax': ax,
    'zoom': 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy — 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 float — 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
load_data Ran
ran on a synthesized input
lihenryhfl/SpectralVAEGAN/vdae/data.py
code served (permissive licence) · get_code("c4b2990ab9c5ad43")
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

ARGS = {
    'params': {
        'dset': 'cc',
        'n': 100,
        'noise_sig': 0.1,
        'train_set_fraction': 0.8,
        'standardize': True
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
h5py, keras, numpy, sklearn — 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
make_batches Ran
ran on a synthesized input
lihenryhfl/SpectralVAEGAN/vdae/util.py
code served (permissive licence) · get_code("e135919e9b27c8de")
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 torch

torch.manual_seed(0)

# Define arguments for make_batches function
ARGS = {
    "size": 100,
    "batch_size": 32
}
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 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
make_layer_list Ran
ran on a synthesized input
lihenryhfl/SpectralVAEGAN/vdae/util.py
code served (permissive licence) · get_code("a3f6d9141e555686")
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 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'arch': [
        {
            'type': 'Dense',
            'size': 64,
            'activation': 'relu'
        },
        {
            'type': 'Dense',
            'size': 32,
            'activation': 'relu'
        },
        {
            'type': 'Flatten'
        },
        {
            'type': 'Dense',
            'size': 10,
            'activation': 'softmax'
        }
    ],
    'network_type': 'siamese',
    'reg': 0.001,
    'dropout': 0.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 list, ndim 1, dtype family float — 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
predict_with_K_fn Ran
ran on a synthesized input
lihenryhfl/SpectralVAEGAN/vdae/vdae_util.py
code served (permissive licence) · get_code("7ecb4b40a28622dc")
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. 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

class MockKerasOutput:
    """Mock Keras tensor output with get_shape method"""
    def __init__(self, shape):
        self._shape = shape
    
    def get_shape(self):
        return self._shape

class MockKerasFunction:
    """Mock Keras function that acts as a callable"""
    def __init__(self, num_outputs=2, output_shapes=None):
        self.num_outputs = num_outputs
        if output_shapes is None:
            output_shapes = [[None, 4], [None, 3]]
        self.outputs = [MockKerasOutput(shape) for shape in output_shapes]
    
    def __call__(self, x_batch):
        """Returns list of outputs matching the shapes"""
        batch_size = x_batch[0].shape[0]
        outputs = []
        for output_obj in self.outputs:
            shape = list(output_obj.get_shape())
            shape[0] = batch_size
            outputs.append(np.random.randn(*shape))
        return outputs

# Create small input data
x_input = np.random.randn(2, 4).astype(np.float32)

# Create mock Keras function with 2 outputs
K_fn = MockKerasFunction(
    num_outputs=2,
    output_shapes=[[None, 4], [None, 3]]
)

ARGS = {
    'K_fn': K_fn,
    'x': x_input,
    'bs': 1000
}
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 list — a list 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
stack_layers Ran
ran on a synthesized input
lihenryhfl/SpectralVAEGAN/vdae/layer.py
code served (permissive licence) · get_code("814ca20c84d96c8b")
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 tensorflow as tf
from keras import backend as K
import numpy as np

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

# Create minimal input tensors
batch_size = 2
input_dim = 4

# Create sample input data
unlabeled_input = tf.constant(np.random.randn(batch_size, input_dim).astype(np.float32))
orthonorm_input = tf.constant(np.random.randn(batch_size, input_dim).astype(np.float32))

# Define inputs dict
inputs = {
    'Unlabeled': unlabeled_input,
    'Orthonorm': orthonorm_input
}

# Define layers list with various layer types
layers = [
    {
        'type': 'linear',
        'size': 8,
        'name': 'linear_1'
    },
    {
        'type': 'relu',
        'size': 6,
        'name': 'relu_1'
    },
    {
        'type': 'softplus',
        'size': 5,
        'l2_reg': 0.001,
        'name': 'softplus_1'
    },
    {
        'type': 'tanh',
        'size': 4,
        'name': 'tanh_1'
    }
]

ARGS = {
    'inputs': inputs,
    'layers': layers,
    'kernel_initializer': 'glorot_uniform',
    'return_all_layers': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras, numpy, tensorflow — 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
Orthonorm Not yet run
unverified (harvested, no recorded run)
lihenryhfl/SpectralVAEGAN/vdae/layer.py
code served (permissive licence) · get_code("b7f96c3f7527ce26")
How it ran

no invocation recorded.

embed_data Not yet run
unverified (harvested, no recorded run)
lihenryhfl/SpectralVAEGAN/vdae/data.py
code served (permissive licence) · get_code("a448df61f6aa9fd2")
How it ran

no invocation recorded.

full_affinity Not yet run
unverified (harvested, no recorded run)
lihenryhfl/SpectralVAEGAN/vdae/costs.py
code served (permissive licence) · get_code("3847457d45802ae3")
How it ran

no invocation recorded.

knn_affinity Not yet run
unverified (harvested, no recorded run)
lihenryhfl/SpectralVAEGAN/vdae/costs.py
code served (permissive licence) · get_code("7af6527a017a74c2")
How it ran

no invocation recorded.

orthonorm_op Not yet run
unverified (harvested, no recorded run)
lihenryhfl/SpectralVAEGAN/vdae/layer.py
code served (permissive licence) · get_code("83305d58a471435d")
How it ran

no invocation recorded.

pick_nearest_k Not yet run
unverified (harvested, no recorded run)
lihenryhfl/SpectralVAEGAN/vdae/networks.py
code served (permissive licence) · get_code("bac1359a6cea53e2")
How it ran

no invocation recorded.

squared_distance Not yet run
unverified (harvested, no recorded run)
lihenryhfl/SpectralVAEGAN/vdae/costs.py
code served (permissive licence) · get_code("eeab17c83f3d81f1")
How it ran

no invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 11 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 11 later) and 5 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
get_scale 2 other papers
1 dated earlier, 1 later
1902.02693 (2019-02)
StampNet: unsupervised multi-class object discovery
aaai_25868 (2023 (year only))
TC-DWA: Text Clustering with Dual Word-Level Augmentation
make_layer_list 2 other papers
1 dated earlier, 1 later
1902.02693 (2019-02)
StampNet: unsupervised multi-class object discovery
aaai_25868 (2023 (year only))
TC-DWA: Text Clustering with Dual Word-Level Augmentation
create_pairs_from_labeled_data 1 other paper
1 later
aaai_25868 (2023 (year only))
TC-DWA: Text Clustering with Dual Word-Level Augmentation
embed_data 1 other paper
1 later
aaai_25868 (2023 (year only))
TC-DWA: Text Clustering with Dual Word-Level Augmentation
full_affinity 1 other paper
1 later
aaai_25868 (2023 (year only))
TC-DWA: Text Clustering with Dual Word-Level Augmentation
get_choices 1 other paper
1 later
aaai_25868 (2023 (year only))
TC-DWA: Text Clustering with Dual Word-Level Augmentation
knn_affinity 1 other paper
1 later
aaai_25868 (2023 (year only))
TC-DWA: Text Clustering with Dual Word-Level Augmentation
load_data 1 other paper
1 later
aaai_25868 (2023 (year only))
TC-DWA: Text Clustering with Dual Word-Level Augmentation
make_batches 1 other paper
1 later
aaai_25868 (2023 (year only))
TC-DWA: Text Clustering with Dual Word-Level Augmentation
orthonorm_op 1 other paper
1 later
aaai_25868 (2023 (year only))
TC-DWA: Text Clustering with Dual Word-Level Augmentation
squared_distance 1 other paper
1 later
aaai_25868 (2023 (year only))
TC-DWA: Text Clustering with Dual Word-Level Augmentation

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

Variational autoencoders (VAEs) and generative adversarial networks (GANs) enjoy an intuitive connection to manifold learning: in training the decoder/generator is optimized to approximate a homeomorphism between the data distribution and the sampling space. This is a construction that strives to define the data manifold. A major obstacle to VAEs and GANs, however, is choosing a suitable prior that matches the data topology. Well-known consequences of poorly picked priors are posterior and mode collapse. To our knowledge, no existing method sidesteps this user choice. Conversely, $\textit{diffusion maps}$ automatically infer the data topology and enjoy a rigorous connection to manifold learning, but do not scale easily or provide the inverse homeomorphism (i.e. decoder/generator). We propose a method that combines these approaches into a generative model that inherits the asymptotic guarantees of $\textit{diffusion maps}$ while preserving the scalability of deep models. We prove approximation theoretic results for the dimension dependence of our proposed method. Finally, we demonstrate the effectiveness of our method with various real and synthetic datasets.

For agents

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

get_harvested_code_for_paper("1905.12724")
get_code_for_paper("1905.12724")
have("1905.12724")

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

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

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

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

Connect an agent — have() is free.