SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.14473 · NeurIPS · 2024

Poisson Variational Autoencoder

Hadi Vafaii, Dekel Galor, Jacob Yates

arXiv · PDF · Open in the Atlas

Code that ran

6 of 14 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 8 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/2405.14473.json · badge: /api/ran/2405.14473.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
hadivafaii/PoissonVAE canonical (classifier label)
classifier basis: census
6 ran · 8 no recorded run
FunctionStatusWhere it lives
clf_score Ran
ran; our contract draft was wrong, not the code
hadivafaii/PoissonVAE/analysis/linear.py
code served (permissive licence) · get_code("30b09c63b20f61e9")
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 numpy as np
from sklearn import linear_model
from sklearn.metrics import r2_score, classification_report

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

# Create small synthetic datasets
n_samples_train = 8
n_samples_test = 4
n_features = 4

# Training data
X_train = np.random.randn(n_samples_train, n_features).astype(np.float32)
y_train = np.random.randint(0, 2, n_samples_train)

# Test data
X_test = np.random.randn(n_samples_test, n_features).astype(np.float32)
y_test = np.random.randint(0, 2, n_samples_test)

# Validation data
X_val = np.random.randn(n_samples_test, n_features).astype(np.float32)
y_val = np.random.randint(0, 2, n_samples_test)

# Build z_dict with feature arrays
z_dict = {
    'trn': X_train,
    'tst': X_test,
    'val': X_val
}

# Build g_dict with label arrays
g_dict = {
    'trn': y_train,
    'tst': y_test,
    'val': y_val
}

ARGS = {
    'z_dict': z_dict,
    'g_dict': g_dict
}
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 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
fusion1 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hadivafaii/PoissonVAE/base/adamax.py
code served (permissive licence) · get_code("3b0641f4cd06c379")
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; 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)

# Create small tensors for the fusion1 function
# exp_avg: exponential moving average tensor
exp_avg = torch.randn(2, 4)

# grad: gradient tensor (same shape as exp_avg)
grad = torch.randn(2, 4)

# beta1: momentum coefficient (typically around 0.9)
beta1 = 0.9

ARGS = {
    "exp_avg": exp_avg,
    "grad": grad,
    "beta1": beta1,
}
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 — no output shape is stated: observe_signature.py could not observe it (import:OSError)
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_stride Ran
ran, honoured the contract we drafted
hadivafaii/PoissonVAE/base/common.py
code served (permissive licence) · get_code("2063e35da2a2021b")
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 torch
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - cell_type: str - used with .split('_')[0]
# - cmult: int - used as the stride value for 'down' case
# 
# The function splits cell_type on '_' and checks the first part
# against ['normal', 'combiner', 'down', 'up']
# cmult is returned as stride for 'down' case

ARGS = {
    'cell_type': 'normal_block_v1',
    'cmult': 2
}
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 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
job_runner_script Ran
ran; our contract draft was wrong, not the code
hadivafaii/PoissonVAE/base/helper.py
code served (permissive licence) · get_code("26dd100e5899052d")
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

torch.manual_seed(0)

ARGS = {
    'device': 0,
    'dataset': 'mnist',
    'model': 'vae',
    'archi': 'conv',
    'seed': 42,
    'args': '--epochs 10 --lr 0.001',
    'bash_script': 'fit_vae.sh',
    'relative_path': '.'
}
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 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
model2key Ran
ran; our contract draft was wrong, not the code
hadivafaii/PoissonVAE/base/helper.py
code served (permissive licence) · get_code("a905f358b880a636")
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

torch.manual_seed(0)

ARGS = {
    'model_type': 'poisson'
}
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 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
model2temp Ran
ran, honoured the contract we drafted
hadivafaii/PoissonVAE/base/helper.py
code served (permissive licence) · get_code("6b5dc5e83f74893d")
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 float, 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)

ARGS = {
    'model_type': 'poisson'
}
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 float, 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
beta_anneal_cosine Not yet run
unverified (harvested, no recorded run)
hadivafaii/PoissonVAE/base/utils_model.py
code served (permissive licence) · get_code("0e1c7dcfafaa7aa3")
How it ran

no invocation recorded.

compute_n_exp Not yet run
unverified (harvested, no recorded run)
hadivafaii/PoissonVAE/base/distributions.py
code served (permissive licence) · get_code("c92aa4adcb3ce16f")
How it ran

no invocation recorded.

get_act_fn Not yet run
unverified (harvested, no recorded run)
hadivafaii/PoissonVAE/base/common.py
code served (permissive licence) · get_code("3851c136f925660d")
How it ran

no invocation recorded.

sort_fits Not yet run
unverified (harvested, no recorded run)
hadivafaii/PoissonVAE/analysis/final.py
code served (permissive licence) · get_code("c5d312d61ee2c3b4")
How it ran

no invocation recorded.

split_data Not yet run
unverified (harvested, no recorded run)
hadivafaii/PoissonVAE/base/dataset.py
code served (permissive licence) · get_code("9cbf78f099058bd8")
How it ran

no invocation recorded.

temp_anneal_exp Not yet run
unverified (harvested, no recorded run)
hadivafaii/PoissonVAE/base/utils_model.py
code served (permissive licence) · get_code("ec35c8ed9b8fb0bd")
How it ran

no invocation recorded.

temp_anneal_linear Not yet run
unverified (harvested, no recorded run)
hadivafaii/PoissonVAE/base/utils_model.py
code served (permissive licence) · get_code("550668a7c4d3ad87")
How it ran

no invocation recorded.

untangle_score Not yet run
unverified (harvested, no recorded run)
hadivafaii/PoissonVAE/analysis/linear.py
code served (permissive licence) · get_code("b224e1d857b2648a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 5 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 4 later) and 9 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
fusion1 1 other paper
1 dated earlier
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
get_act_fn 1 other paper
1 later
2410.19315 (2024-10)
Brain-like Variational Inference
get_stride 1 other paper
1 later
2410.19315 (2024-10)
Brain-like Variational Inference
split_data 1 other paper
1 later
2410.19315 (2024-10)
Brain-like Variational Inference
temp_anneal_linear 1 other paper
1 later
2410.19315 (2024-10)
Brain-like Variational Inference

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) employ Bayesian inference to interpret sensory inputs, mirroring processes that occur in primate vision across both ventral [1] and dorsal [2] pathways. Despite their success, traditional VAEs rely on continuous latent variables, which deviates sharply from the discrete nature of biological neurons. Here, we developed the Poisson VAE (P-VAE), a novel architecture that combines principles of predictive coding with a VAE that encodes inputs into discrete spike counts. Combining Poisson-distributed latent variables with predictive coding introduces a metabolic cost term in the model loss function, suggesting a relationship with sparse coding which we verify empirically. Additionally, we analyze the geometry of learned representations, contrasting the P-VAE to alternative VAE models. We find that the P-VAE encodes its inputs in relatively higher dimensions, facilitating linear separability of categories in a downstream classification task with a much better (5×) sample efficiency. Our work provides an interpretable computational framework to study brain-like sensory processing and paves the way

For agents

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

get_harvested_code_for_paper("2405.14473")
get_code_for_paper("2405.14473")
have("2405.14473")

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

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

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

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

Connect an agent — have() is free.