SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1905.03290 · 2019

Importance Weighted Hierarchical Variational Inference

arXiv · PDF · Open in the Atlas

Code that ran

3 of 6 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; 0 failures of our instrument; 3 no recorded run), measured 2026-11-22; 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.03290.json · badge: /api/ran/1905.03290.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
artsobolev/IWHVI community (classifier label)
classifier basis not recorded on the link
3 ran · 3 no recorded run
FunctionStatusWhere it lives
binarize_batch Ran
ran on a synthesized input
artsobolev/IWHVI/utils.py
code served (permissive licence) · get_code("bf3d97286409570d")
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 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 numpy as np

# The function expects batch_tuple to be a tuple/list of numpy arrays
# Each array will be compared element-wise with 255 and random values
# The arrays should have numeric values (0-255 range makes sense for the logic)

# Create small sample batches as numpy arrays
batch1 = np.array([[100, 200, 255, 50], [10, 255, 100, 200]], dtype=np.uint8)
batch2 = np.array([[150, 100, 200, 255], [255, 50, 100, 150]], dtype=np.uint8)
batch3 = np.array([[200, 100, 50, 255], [100, 200, 150, 100]], dtype=np.uint8)

# batch_tuple is a tuple of numpy arrays
batch_tuple = (batch1, batch2, batch3)

ARGS = {
    "batch_tuple": batch_tuple
}
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 3, 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
dynamic_tile_to Ran
ran on a synthesized input
artsobolev/IWHVI/utils.py
code served (permissive licence) · get_code("170966cfcc1120a3")
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 EagerTensor, ndim 3, dtype family float, shape (2, 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 tensorflow as tf

# Create two tensors with different numbers of dimensions
# x has shape (4, 3) - 2 dimensions
# y has shape (2, 4, 3) - 3 dimensions
x = tf.constant([[1, 2, 3], [4, 5, 6], [7, 8, 9], [10, 11, 12]], dtype=tf.float32)
y = tf.constant([[[1, 2, 3], [4, 5, 6], [7, 8, 9], [10, 11, 12]],
                  [[13, 14, 15], [16, 17, 18], [19, 20, 21], [22, 23, 24]]], dtype=tf.float32)

ARGS = {
    'x': x,
    'y': y
}
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 EagerTensor, ndim 3, dtype family float, shape (2, 4, 3) — shape (2, 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
get_static_mnist Ran
ran on a synthesized input
artsobolev/IWHVI/datasets.py
code served (permissive licence) · get_code("5e6952f28ee2b65e")
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 Datasets. 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 os
import tempfile
import numpy as np

# Create a temporary directory for the datasets
temp_dir = tempfile.mkdtemp()

# Create mock binary MNIST data files
mnist_dir = os.path.join(temp_dir, 'BinaryMNIST')
os.makedirs(mnist_dir, exist_ok=True)

# Generate small mock data for train, valid, and test splits
# Each line is 784 binary values (28x28 pixels) as space-separated 0s and 1s
np.random.seed(0)

for split in ['train', 'valid', 'test']:
    num_samples = 100 if split == 'train' else 50
    mock_data = np.random.randint(0, 2, size=(num_samples, 784))
    
    split_path = os.path.join(mnist_dir, f'binarized_mnist_{split}.amat')
    with open(split_path, 'w') as f:
        for sample in mock_data:
            f.write(' '.join(map(str, sample)) + '\n')

ARGS = {
    'datasets_dir': temp_dir,
    'validation_size': 5000,
}
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 Datasets — a Datasets output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Datasets output the recorded ndim 1 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
get_dynamic_mnist Not yet run
unverified (harvested, no recorded run)
artsobolev/IWHVI/datasets.py
code served (permissive licence) · get_code("dcf2b9c82ec518fb")
How it ran

no invocation recorded.

get_intraclass_paired_mnist Not yet run
unverified (harvested, no recorded run)
artsobolev/IWHVI/datasets.py
code served (permissive licence) · get_code("293fe0177c7c6bd7")
How it ran

no invocation recorded.

real_nvp_conditional_template Not yet run
unverified (harvested, no recorded run)
artsobolev/IWHVI/utils.py
code served (permissive licence) · get_code("59519e349060c94b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 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 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.

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

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 Inference is a powerful tool in the Bayesian modeling toolkit, however, its effectiveness is determined by the expressivity of the utilized variational distributions in terms of their ability to match the true posterior distribution. In turn, the expressivity of the variational family is largely limited by the requirement of having a tractable density function. To overcome this roadblock, we introduce a new family of variational upper bounds on a marginal log density in the case of hierarchical models (also known as latent variable models). We then give an upper bound on the Kullback-Leibler divergence and derive a family of increasingly tighter variational lower bounds on the otherwise intractable standard evidence lower bound for hierarchical variational distributions, enabling the use of more expressive approximate posteriors. We show that previously known methods, such as Hierarchical Variational Models, Semi-Implicit Variational Inference and Doubly Semi-Implicit Variational Inference can be seen as special cases of the proposed approach, and empirically demonstrate superior performance of the proposed method in a set of experiments.

For agents

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

get_harvested_code_for_paper("1905.03290")
get_code_for_paper("1905.03290")
have("1905.03290")

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

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

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

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

Connect an agent — have() is free.