Papers › Counterfactual Generative Modeling with Variational Causal Inference

Counterfactual Generative Modeling with Variational Causal Inference

16 Oct 2024arXiv:2410.12730archive 2025-07-28

Yulun Wu, Louie McConnell, Claudia Iriondo

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2410.12730")

Code

Syntology Ran 11 of 13 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 5 ran · honoured contract; 3 ran · our draft was wrong; 3 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

yulun-rayn/variational-causal-inference officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 11 ran; 5 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

5ran · honoured contract
3ran · our draft was wrong
3ran
2unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from yulun-rayn/variational-causal-inference. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Bernoulli yulun-rayn/variational-causal-inference/vci/model/model.py official repository ran · metamorphic tier: deterministic MIT (permissive) · dea1f055e5384287 · report
MLP yulun-rayn/variational-causal-inference/vci/model/model.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 7fa7a62d632952f9 · report
NegativeBinomial yulun-rayn/variational-causal-inference/vci/model/model.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 6bc335fb08d066b1 · report
convert_counts_logits_to_mean_disp yulun-rayn/variational-causal-inference/vci/model/model.py official repository ran · honoured contract fingerprinted MIT (permissive) · 50ae298ea49aeb9b · report
kldiv_normal yulun-rayn/variational-causal-inference/vci/model/model.py official repository ran · honoured contract fingerprinted MIT (permissive) · c234099c90995b3b · report
logprob_bernoulli_logits yulun-rayn/variational-causal-inference/vci/model/model.py official repository ran · honoured contract fingerprinted MIT (permissive) · a7f751433500aa08 · report
logprob_nb_positive yulun-rayn/variational-causal-inference/vci/model/model.py official repository ran · our draft was wrong MIT (permissive) · eeacddf00a076b9a · report
logprob_normal yulun-rayn/variational-causal-inference/vci/model/model.py official repository ran · honoured contract fingerprinted MIT (permissive) · 69c7f5318d875117 · report
logprob_zinb_positive yulun-rayn/variational-causal-inference/vci/model/model.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 4d8120cda0df491d · report
lr_lambda_exp yulun-rayn/variational-causal-inference/vci/model/model.py official repository ran · our draft was wrong MIT (permissive) · 9abff7722bb4361f · report
total_grad_norm_ yulun-rayn/variational-causal-inference/vci/model/model.py official repository ran · honoured contract MIT (permissive) · 2cf0050d33254c6d · report
VCI yulun-rayn/variational-causal-inference/vci/model/model.py official repository unverified MIT (permissive) · c11d2cfe40bff9c5 · report
ZeroInflatedNegativeBinomial yulun-rayn/variational-causal-inference/vci/model/model.py official repository unverified MIT (permissive) · 2dad2f97235b041d · report

Tasks

Causal InferenceDisentanglementVariational Inference

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Causal inferenceVariational Inference

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections