SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1912.05617 · 2019

Molecular Generative Model Based On Adversarially Regularized Autoencoder

arXiv · PDF · Open in the Atlas

Code that ran

5 of 5 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; 0 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/1912.05617.json · badge: /api/ran/1912.05617.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
gicsaw/ARAE_SMILES canonical (classifier label)
classifier basis: census
5 ran · 0 no recorded run
FunctionStatusWhere it lives
cal_accuracy Ran
ran on a synthesized input
gicsaw/ARAE_SMILES/gen_ARAE_QM9.py
code served (permissive licence) · get_code("1d69617e288c4eb4")
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 numpy as np

# Construct small test data
# S1 and S2 are lists of sequences
# The function compares S1[i][1:length[i]+1] with S2[i][:length[i]]
# So S1 needs to have an extra element at the start, and S2 is the reference

S1 = [
    np.array([999, 1, 2, 3, 4]),  # First element is ignored, then compare [1,2,3] with length=3
    np.array([999, 5, 6, 7, 8])   # First element is ignored, then compare [5,6] with length=2
]

S2 = [
    np.array([1, 2, 3, 0, 0]),    # Only first 3 elements matter when length[0]=3
    np.array([5, 6, 0, 0, 0])     # Only first 2 elements matter when length[1]=2
]

length = [3, 2]  # Specifies how many elements to compare for each sequence

ARGS = {
    'S1': S1,
    'S2': S2,
    'length': length
}
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 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
convert_to_smiles Ran
ran on a synthesized input
gicsaw/ARAE_SMILES/gen_ARAE_QM9.py
code served (permissive licence) · get_code("258ee5f5f9b12a82")
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 str. 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
import numpy as np

torch.manual_seed(0)

# vector: an iterable of indices
# char: a dict or list mapping indices to characters
vector = [0, 1, 2, 1, 0]
char = {0: 'C', 1: 'O', 2: 'N', 3: 'H', 4: 'S'}

ARGS = {
    'vector': vector,
    'char': char
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
read_data Ran
ran on a synthesized input
gicsaw/ARAE_SMILES/train_ARAE_QM9.py
code served (permissive licence) · get_code("9ea8bc15d08bdb13")
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 os
import tempfile

# Create a temporary directory to hold test data files
temp_dir = tempfile.mkdtemp()
data_dir = temp_dir + '/'

# Create small dummy numpy arrays and save them
X_data = np.random.randn(10, 5).astype(np.float32)
Y_data = np.random.randn(10, 3).astype(np.float32)
L_data = np.random.randint(0, 2, size=(10, 4))

# Save the files with the expected naming convention
np.save(os.path.join(data_dir, 'Xtrain.npy'), X_data)
np.save(os.path.join(data_dir, 'Ytrain.npy'), Y_data)
np.save(os.path.join(data_dir, 'Ltrain.npy'), L_data)

# Define ARGS
ARGS = {
    'data_dir': data_dir,
    'data': 'train'
}
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
read_data Ran
ran on a synthesized input
gicsaw/ARAE_SMILES/train_ARAE_QM90.py
code served (permissive licence) · get_code("11ef42aca3f50478")
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 tempfile
import os

# Create temporary directory and dummy numpy files
temp_dir = tempfile.mkdtemp()
data_subdir = os.path.join(temp_dir, 'data', 'QM9')
os.makedirs(data_subdir, exist_ok=True)

# Create small dummy numpy files with distinct shapes for each array type
X_data = np.random.randn(2, 4).astype(np.float32)  # batch=2, features=4
Y_data = np.random.randn(2, 3).astype(np.float32)  # batch=2, targets=3
L_data = np.random.randn(2, 5).astype(np.float32)  # batch=2, labels=5

# Save the dummy data files
np.save(os.path.join(data_subdir, 'Xtrain.npy'), X_data)
np.save(os.path.join(data_subdir, 'Ytrain.npy'), Y_data)
np.save(os.path.join(data_subdir, 'Ltrain.npy'), L_data)

ARGS = {
    'data_dir': data_subdir + '/',
    'data': 'train'
}
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
read_data Ran
ran on a synthesized input
gicsaw/ARAE_SMILES/train_ARAE_ZINC.py
code served (permissive licence) · get_code("2e05995cbd69770c")
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 tempfile
import os

# Create temporary directory and mock numpy files
temp_dir = tempfile.mkdtemp()
data_dir = temp_dir + '/'

# Create mock .npy files that read_data will try to load
X_data = np.random.randn(10, 5).astype(np.float32)
Y_data = np.random.randn(10, 2).astype(np.float32)
L_data = np.random.randint(0, 3, (10,)).astype(np.int32)

np.save(os.path.join(data_dir, 'Xtrain.npy'), X_data)
np.save(os.path.join(data_dir, 'Ytrain.npy'), Y_data)
np.save(os.path.join(data_dir, 'Ltrain.npy'), L_data)

ARGS = {
    'data_dir': data_dir,
    'data': 'train'
}
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

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 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.

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

Deep generative models are attracting great attention as a new promising approach for molecular design. All models reported so far are based on either variational autoencoder (VAE) or generative adversarial network (GAN). Here we propose a new type model based on an adversarially regularized autoencoder (ARAE). It basically uses latent variables like VAE, but the distribution of the latent variables is obtained by adversarial training like in GAN. The latter is intended to avoid both inappropriate approximation of posterior distribution in VAE and difficulty in handling discrete variables in GAN. Our benchmark study showed that ARAE indeed outperformed conventional models in terms of validity, uniqueness, and novelty per generated molecule. We also demonstrated successful conditional generation of drug-like molecules with ARAE for both cases of single and multiple properties control. As a potential real-world application, we could generate EGFR inhibitors sharing the scaffolds of known active molecules while satisfying drug-like conditions simultaneously.

For agents

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

get_harvested_code_for_paper("1912.05617")
get_code_for_paper("1912.05617")
have("1912.05617")

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

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

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

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

Connect an agent — have() is free.