SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.12730 · ICLR · 2025

Counterfactual Generative Modeling with Variational Causal Inference

Yulun Wu, Louie Mcconnell, Claudia Iriondo

arXiv · PDF · Open in the Atlas

Code that ran

11 of 13 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 5 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 3 failures of our instrument; 2 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/2410.12730.json · badge: /api/ran/2410.12730.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
yulun-rayn/variational-causal-inference canonical (classifier label)
classifier basis: classifier_2025
11 ran · 2 no recorded run
FunctionStatusWhere it lives
Bernoulli Ran
ran on a synthesized input · constructed an object; no result was computed
yulun-rayn/variational-causal-inference/vci/model/model.py
code served (permissive licence) · get_code("dea1f055e5384287")
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 an instance of its own class, Bernoulli: the run constructed the object and did not call it, so no result was computed. 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 torch.nn.functional as F
from torch.distributions import Distribution, ExponentialFamily, Gamma, Poisson, constraints
from torch.distributions.utils import lazy_property, broadcast_all, logits_to_probs, probs_to_logits

torch.manual_seed(0)

# Define ARGS dict with all parameters for Bernoulli.__init__
ARGS = {
    'probs': torch.tensor([0.3, 0.7]),
    'logits': None,
    'validate_args': None,
}
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 Bernoulli — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Bernoulli 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
MLP Ran
ran on a synthesized input · constructed an object; no result was computed
yulun-rayn/variational-causal-inference/vci/model/model.py
code served (permissive licence) · get_code("7fa7a62d632952f9")
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 an instance of its own class, MLP: the run constructed the object and did not call it, so no result was computed. 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 torch.nn as nn

torch.manual_seed(0)

class MLP(nn.Module):
    """
    A multilayer perceptron with ReLU activations and optional BatchNorm.
    """

    def __init__(self, sizes, heads=None, batch_norm=True, final_act=None):
        super().__init__()
        self.heads = heads
        if heads is not None:
            sizes[-1] = sizes[-1] * heads
        layers = []
        for i in range(len(sizes) - 1):
            layers += [nn.Linear(sizes[i], sizes[i + 1]), nn.BatchNorm1d(sizes[i + 1]) if batch_norm and i < len(sizes) - 2 else None, nn.ReLU() if i < len(sizes) - 2 else None]
        if final_act is None:
            pass
        elif final_act == 'relu':
            layers += [nn.ReLU()]
        elif final_act == 'sigmoid':
            layers += [nn.Sigmoid()]
        elif final_act == 'softmax':
            layers += [nn.Softmax(dim=-1)]
        else:
            raise ValueError('final_act not recognized')
        layers = [l for l in layers if l is not None]
        self.network = nn.Sequential(*layers)

    def forward(self, *x):
        inputs = []
        for input in x:
            if isinstance(input, list) or isinstance(input, tuple):
                inputs = inputs + [*input]
            else:
                inputs = inputs + [input]
        inputs = torch.cat(inputs, dim=-1)
        out = self.network(inputs)
        if self.heads is not None:
            out = out.view(*out.shape[:-1], -1, self.heads)
        return out

ARGS = {
    "sizes": [8, 6, 4],
    "heads": None,
    "batch_norm": True,
    "final_act": None
}
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 MLP — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a MLP 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
NegativeBinomial Ran
ran on a synthesized input · constructed an object; no result was computed
yulun-rayn/variational-causal-inference/vci/model/model.py
code served (permissive licence) · get_code("6bc335fb08d066b1")
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 an instance of its own class, NegativeBinomial: the run constructed the object and did not call it, so no result was computed. 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)

ARGS = {
    'total_count': None,
    'probs': None,
    'logits': torch.randn(2, 4),
    'mu': torch.ones(2, 4) * 5.0,
    'theta': torch.ones(2, 4) * 2.0,
    'validate_args': False,
}
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 NegativeBinomial — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a NegativeBinomial 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
convert_counts_logits_to_mean_disp Ran
ran, honoured the contract we drafted
yulun-rayn/variational-causal-inference/vci/model/model.py
code served (permissive licence) · get_code("50ae298ea49aeb9b")
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 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 torch
import torch.nn as nn

torch.manual_seed(0)

# Construct arguments for convert_counts_logits_to_mean_disp
total_count = torch.tensor([[2.0, 3.0, 1.5, 2.5], [1.0, 4.0, 2.0, 3.0]])
logits = torch.tensor([[0.5, -0.3, 0.2, -0.1], [0.1, 0.4, -0.2, 0.3]])

ARGS = {
    "total_count": total_count,
    "logits": logits,
}
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 tuple, ndim 3, 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
kldiv_normal Ran
ran, honoured the contract we drafted
yulun-rayn/variational-causal-inference/vci/model/model.py
code served (permissive licence) · get_code("c234099c90995b3b")
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 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

torch.manual_seed(0)

# Create small tensors for the KL divergence computation
# The function expects:
# - mu1, sigma1, mu2, sigma2: tensors with shape (batch_size, dim)
# - Operations: log(), sum(dim=1), mean(dim=0)
# So we need batch dimension and feature dimension

batch_size = 2
feature_dim = 4

mu1 = torch.randn(batch_size, feature_dim)
sigma1 = torch.abs(torch.randn(batch_size, feature_dim)) + 0.1  # ensure positive for log
mu2 = torch.randn(batch_size, feature_dim)
sigma2 = torch.abs(torch.randn(batch_size, feature_dim)) + 0.1  # ensure positive for log

ARGS = {
    "mu1": mu1,
    "sigma1": sigma1,
    "mu2": mu2,
    "sigma2": sigma2,
}
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 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
logprob_bernoulli_logits Ran
ran, honoured the contract we drafted
yulun-rayn/variational-causal-inference/vci/model/model.py
code served (permissive licence) · get_code("a7f751433500aa08")
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)

# x: target binary values (batch_size, feature_dim)
x = torch.bernoulli(torch.tensor([[0.3, 0.7, 0.5, 0.2],
                                   [0.6, 0.4, 0.8, 0.1]]))

# logit: predicted logits (batch_size, feature_dim) - same shape as x
logit = torch.randn(2, 4)

# weight: optional per-element weights (batch_size, feature_dim)
weight = torch.ones(2, 4)

ARGS = {
    'x': x,
    'logit': logit,
    'weight': weight
}
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
logprob_nb_positive Ran
ran; our contract draft was wrong, not the code
yulun-rayn/variational-causal-inference/vci/model/model.py
code served (permissive licence) · get_code("eeacddf00a076b9a")
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 numpy as np

torch.manual_seed(0)

# Create small tensors with distinct dimensions
batch_size = 2
num_vars = 4

# x: data (minibatch x vars)
x = torch.randint(0, 10, (batch_size, num_vars)).float()

# mu: mean of negative binomial, must be positive (minibatch x vars)
mu = torch.rand(batch_size, num_vars) + 0.1

# theta: inverse dispersion parameter, must be positive (minibatch x vars)
theta = torch.rand(batch_size, num_vars) + 0.1

# weight: optional, can be minibatch dimension or scalar
weight = torch.rand(batch_size, 1)

# eps: numerical stability constant
eps = 1e-08

# log_fn and lgamma_fn are callables - use torch versions
log_fn = torch.log
lgamma_fn = torch.lgamma

ARGS = {
    "x": x,
    "mu": mu,
    "theta": theta,
    "weight": weight,
    "eps": eps,
    "log_fn": log_fn,
    "lgamma_fn": lgamma_fn,
}
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 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
logprob_normal Ran
ran, honoured the contract we drafted
yulun-rayn/variational-causal-inference/vci/model/model.py
code served (permissive licence) · get_code("69c7f5318d875117")
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 math

torch.manual_seed(0)

# Construct tensors for the function
# x: the input values
x = torch.randn(2, 4)

# loc: the mean of the normal distribution
loc = torch.randn(2, 4)

# scale: the standard deviation (can be scalar Real or tensor)
scale = torch.tensor(1.5)

# weight: optional weighting (should be broadcastable to x shape)
weight = torch.ones(2, 1)

ARGS = {
    "x": x,
    "loc": loc,
    "scale": scale,
    "weight": weight,
    "eps": 1e-08
}
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
logprob_zinb_positive Ran
ran; our contract draft was wrong, not the code
yulun-rayn/variational-causal-inference/vci/model/model.py
code served (permissive licence) · get_code("4d8120cda0df491d")
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)

# Construct tiny tensors with distinct sizes
batch_size = 2
n_vars = 4

# x: count data (minibatch x vars)
x = torch.randint(0, 10, (batch_size, n_vars)).float()

# mu: mean of negative binomial, positive support (minibatch x vars)
mu = torch.rand(batch_size, n_vars) + 0.5

# theta: inverse dispersion parameter, positive support (minibatch x vars)
theta = torch.rand(batch_size, n_vars) + 0.5

# pi: logit of dropout parameter, real support (minibatch x vars)
pi = torch.randn(batch_size, n_vars)

# weight: optional weighting, can be per-sample or per-feature
weight = torch.rand(batch_size)

# eps: numerical stability constant
eps = 1e-8

ARGS = {
    "x": x,
    "mu": mu,
    "theta": theta,
    "pi": pi,
    "weight": weight,
    "eps": eps,
}
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
lr_lambda_exp Ran
ran; our contract draft was wrong, not the code
yulun-rayn/variational-causal-inference/vci/model/model.py
code served (permissive licence) · get_code("9abff7722bb4361f")
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 function. 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)

# The function lr_lambda_exp takes decay_epochs and decay_rate as parameters
# It returns a function f that takes an epoch number and returns a decay multiplier
# The function only uses basic arithmetic operations, so we just need numeric values

ARGS = {
    "decay_epochs": 10,
    "decay_rate": 0.1
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
total_grad_norm_ Ran
ran, honoured the contract we drafted
yulun-rayn/variational-causal-inference/vci/model/model.py
code served (permissive licence) · get_code("2cf0050d33254c6d")
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 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)

# Create a simple model with parameters that have gradients
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        return self.linear2(self.linear1(x))

# Instantiate model and create dummy data
model = SimpleModel()
x = torch.randn(2, 4)
y = torch.randn(2, 2)

# Forward pass and backward to create gradients
output = model(x)
loss = torch.nn.functional.mse_loss(output, y)
loss.backward()

# Prepare parameters with gradients
parameters_list = list(model.parameters())

# Create ARGS dict with all parameters
ARGS = {
    "parameters": parameters_list,
    "norm_type": 2.0,
    "error_if_nonfinite": False
}
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 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
VCI Not yet run
unverified (harvested, no recorded run)
yulun-rayn/variational-causal-inference/vci/model/model.py
code served (permissive licence) · get_code("c11d2cfe40bff9c5")
How it ran

no invocation recorded.

ZeroInflatedNegativeBinomial Not yet run
unverified (harvested, no recorded run)
yulun-rayn/variational-causal-inference/vci/model/model.py
code served (permissive licence) · get_code("2dad2f97235b041d")
How it ran

no invocation recorded.

Also present in other papers' code

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

Estimating an individual's counterfactual outcomes under interventions is a challenging task for traditional causal inference and supervised learning approaches when the outcome is high-dimensional (e.g. gene expressions, facial images) and covariates are relatively limited. In this case, to predict one's outcomes under counterfactual treatments, it is crucial to leverage individual information contained in the observed outcome in addition to the covariates. Prior works using variational inference in counterfactual generative modeling have been focusing on neural adaptations and model variants within the conditional variational autoencoder formulation, which we argue is fundamentally ill-suited to the notion of counterfactual in causal inference. In this work, we present a novel variational Bayesian causal inference framework and its theoretical backings to properly handle counterfactual generative modeling tasks, through which we are able to conduct counterfactual supervision end-to-end during training without any counterfactual samples, and encourage disentangled exogenous noise abduction that aids the correct identification of causal effect in counterfactual generations. In experiments, we demonstrate the advantage of our framework compared to state-of-the-art models in counterfactual generative modeling on multiple benchmarks.

For agents

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

get_harvested_code_for_paper("2410.12730")
get_code_for_paper("2410.12730")
have("2410.12730")

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

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

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

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

Connect an agent — have() is free.