SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.05300 · NeurIPS · 2024

Unity by Diversity: Improved Representation Learning for Multimodal VAEs

Stephan Mandt, Thomas Sutter, Julia Vogt, Yang Meng, Andrea Agostini, Daphné Chopard, Norbert Fortin, Babak Shahbaba

arXiv · PDF · Open in the Atlas

Code that ran

9 of 9 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; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 7 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/2403.05300.json · badge: /api/ran/2403.05300.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
thomassutter/mmvampvae canonical (classifier label)
classifier basis: census
2 ran · 0 no recorded run
yangmeng96/mmvmvae-hippocampal canonical (classifier label)
classifier basis: census
2 ran · 0 no recorded run
agostini335/mmvmvae-mimic canonical (classifier label)
classifier basis: census
1 ran · 0 no recorded run
iffsid/mmvae canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
thomassutter/MoPoE community
Papers with Code archive
2 ran · 0 no recorded run
mhw32/multimodal-vae-public unrelated (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
ProductOfExperts Ran
ran on a synthesized input
mhw32/multimodal-vae-public/celeba/model.py
code served (permissive licence) · get_code("fd73a28471152d32")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned tuple, 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
import torch.nn as nn

class ProductOfExperts(nn.Module):
    """Return parameters for product of independent experts.
    See https://arxiv.org/pdf/1410.7827.pdf for equations.

    @param mu: M x D for M experts
    @param logvar: M x D for M experts
    """

    def forward(self, mu, logvar, eps=1e-08):
        var = torch.exp(logvar) + eps
        T = 1.0 / var
        pd_mu = torch.sum(mu * T, dim=0) / torch.sum(T, dim=0)
        pd_var = 1.0 / torch.sum(T, dim=0)
        pd_logvar = torch.log(pd_var)
        return (pd_mu, pd_logvar)


INIT_ARGS = {}

ARGS = {
    'mu': torch.randn(2, 4),
    'logvar': torch.randn(2, 4),
    'eps': 1e-08
}

if __name__ == '__main__':
    model = ProductOfExperts(**INIT_ARGS)
    result = model(**ARGS)
    print("Output shapes:", result[0].shape, result[1].shape)
    print("Result:", result)
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
actvn Ran
ran; our contract draft was wrong, not the code
thomassutter/mmvampvae/networks/ConvNetworksPolyMNIST.py
code served (permissive licence) · get_code("634a1f51262e608f")
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 (2, 4) 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)

# The function actvn takes a single parameter 'x' which is passed to 
# torch.nn.functional.leaky_relu, so it expects a tensor
x = torch.randn(2, 4)

ARGS = {
    'x': x
}
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 (2, 4) — shape (2, 4) 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
actvn Ran
ran; our contract draft was wrong, not the code
thomassutter/mmvampvae/networks/ClfImgPolyMNIST.py
code served (permissive licence) · get_code("51e3b2175da36d6c")
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 (2, 4) 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.functional as F

torch.manual_seed(0)

# The function actvn takes a tensor x and applies leaky_relu with negative slope 0.2
# It needs a tensor as input
x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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 (2, 4) — shape (2, 4) 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
calc_group_divergence_moe Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
thomassutter/MoPoE/divergence_measures/mm_div.py
pointer only (licence: NONE) · get_code("5ebd166eac274293")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thomassutter/MoPoE 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. A run is recorded.

calc_kl_divergence Ran
ran; our contract draft was wrong, not the code
thomassutter/MoPoE/divergence_measures/mm_div.py
pointer only (licence: NONE) · get_code("015d54b0ff033548")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thomassutter/MoPoE 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. A run is recorded.

hyperparameter_tuning_rf Ran
ran; our contract draft was wrong, not the code
agostini335/mmvmvae-mimic/offline_hp_tuning_pipeline.py
pointer only (licence: GPL-3.0) · get_code("968b4ba8e468406e")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, agostini335/mmvmvae-mimic, is not in the permissive set Syntology serves inline. 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. A run is recorded.

load_data Ran
ran; our contract draft was wrong, not the code
yangmeng96/mmvmvae-hippocampal/utils/RatsDataset.py
code served (permissive licence) · get_code("a1451764d0bafadd")
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 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 os
import tempfile
import shutil

# Create a temporary directory structure with mock data files
temp_dir = tempfile.mkdtemp()

rat_names = ['barat', 'buchanan', 'mitt', 'stella', 'superchris']

for rat_name in rat_names[:3]:  # Create data for 3 rats
    rat_dir = os.path.join(temp_dir, rat_name)
    os.makedirs(rat_dir, exist_ok=True)
    
    # Create mock trial_info.npy (trials x 4, where column 3 is odor target)
    trial_info = np.random.randint(0, 5, size=(10, 4)).astype(np.float32)
    np.save(os.path.join(rat_dir, rat_name.lower() + '_trial_info.npy'), trial_info)
    
    # Create mock spike_data_binned.npy (neurons x trials x time_bins)
    spike_data = np.random.rand(8, 10, 100).astype(np.float32)
    np.save(os.path.join(rat_dir, rat_name.lower() + '_spike_data_binned.npy'), spike_data)
    
    # Create mock lfp_data_sampled.npy (trials x channels x time_bins)
    # Note: function will swap axes 1 and 2
    lfp_data = np.random.rand(10, 6, 100).astype(np.float32)
    np.save(os.path.join(rat_dir, rat_name.lower() + '_lfp_data_sampled.npy'), lfp_data)

ARGS = {
    'dir_data': temp_dir,
    'num_modalities': 3,
    'start_times': [10, 15, 20],
    'window_len': 30
}
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, ndim 1, 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
load_raw_data Ran
ran; our contract draft was wrong, not the code
yangmeng96/mmvmvae-hippocampal/utils/RatsDataset.py
code served (permissive licence) · get_code("711cd768f8a4bec1")
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
import shutil

# Create a temporary directory structure with mock data files
temp_dir = tempfile.mkdtemp()
rat_name = "Rat1"
rat_dir = os.path.join(temp_dir, rat_name)
os.makedirs(rat_dir, exist_ok=True)

# Create mock data files that the function will try to load
trial_info_data = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.float32)
spike_data = np.array([[1, 2], [3, 4]], dtype=np.float32)
lfp_data = np.random.randn(2, 3, 4).astype(np.float32)  # shape (2, 3, 4) - will be swapped to (2, 4, 3)

# Save the mock data files with expected names
trial_info_path = os.path.join(rat_dir, rat_name.lower() + '_trial_info.npy')
spike_data_path = os.path.join(rat_dir, rat_name.lower() + '_spike_data_binned.npy')
lfp_data_path = os.path.join(rat_dir, rat_name.lower() + '_lfp_data_sampled.npy')

np.save(trial_info_path, trial_info_data)
np.save(spike_data_path, spike_data)
np.save(lfp_data_path, lfp_data)

ARGS = {
    "dir_data": temp_dir,
    "rat_name": rat_name
}
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
unpack_data_mlp Ran
ran, honoured the contract we drafted
iffsid/mmvae/src/report/analyse_ms.py
pointer only (licence: GPL-3.0) · get_code("49f906d6c8bb6264")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, iffsid/mmvae, is not in the permissive set Syntology serves inline. 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. A run is recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 4 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 1 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
actvn 6 other papers
6 dated earlier
1810.00821 (2018-10)
Variational Discriminator Bottleneck: Improving Imitation Learning, Inverse RL, and GANs by Constraining Information Flow
1912.05237 (2019-12)
Towards Unsupervised Learning of Generative Models for 3D Controllable Image Synthesis
2002.11810 (2020-02)
On Leveraging Pretrained GANs for Generation with Limited Data
and 3 more not named here
calc_kl_divergence
brick of this paper's assembly: helper
2 other papers
2 dated earlier · 2 only as an assembly brick
2006.08242 (2020-06)
Multimodal Generative Learning Utilizing Jensen-Shannon-Divergence
2105.02470 (2021-05)
Generalized Multimodal ELBO
actvn 1 other paper
1 later
2411.03097 (2024-11)
Correlating Variational Autoencoders Natively For Multi-View Imputation
unpack_data_mlp 1 other paper
1 dated earlier
1911.03393 (2019-11)
Variational Mixture-of-Experts Autoencoders for Multi-Modal Deep Generative Models

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 for multimodal data hold promise for many tasks in data analysis, such as representation learning, conditional generation, and imputation. Current architectures either share the encoder output, decoder input, or both across modalities to learn a shared representation. Such architectures impose hard constraints on the model. In this work, we show that a better latent representation can be obtained by replacing these hard constraints with a soft constraint. We propose a new mixture-of-experts prior, softly guiding each modality's latent representation towards a shared aggregate posterior. This approach results in a superior latent representation and allows each encoding to preserve information better from its uncompressed original features. In extensive experiments on multiple benchmark datasets and two challenging real-world datasets, we show improved learned latent representations and imputation of missing data modalities compared to existing methods.

For agents

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

get_harvested_code_for_paper("2403.05300")
get_code_for_paper("2403.05300")
have("2403.05300")

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

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

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

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

Connect an agent — have() is free.