ACTIVA: Amortized Causal Effect Estimation without Graphs via Transformer-based Variational Autoencoder

Andreas Sauter, Saber Salehkaleybar, Aske Plaat, Erman Acar · DOI

Abstract

Estimating causal effects from observational data typically requires a known causal graph or strong, often unverifiable assumptions. Furthermore, most existing causal inference methods are not amortized, requiring a full re-estimation process for every new dataset. We present ACTIVA (Amortized Causal Effect Estimation via Transformer-based Variational Autoencoder), a framework that treats causal inference as a generative task. By training on a diverse library of simulated causal models, ACTIVA learns to map observational data and intervention queries to predicted outcome distributions. Our model utilizes a transformer-based architecture to handle permutation-invariant sets of data and produces mixture distributions to represent uncertainty within Markov Equivalence Classes. We demonstrate that ACTIVA achieves superior performance on synthetic and semi-synthetic datasets, enabling zero-shot causal inference on unseen data.

Introduction

In domains such as healthcare and economics, determining the effect of an intervention (e.g., a new treatment or policy) is a primary goal. Traditional causal inference faces two significant hurdles. First, the Graph Requirement: most methods necessitate a Directed Acyclic Graph (DAG), which is rarely fully known in practice. Second, the Lack of Amortization: existing tools are typically "one-offs," meaning knowledge gained from one dataset cannot be easily transferred to another with different variables or distributions.

ACTIVA addresses these challenges by framing causal inference as a meta-learning problem. Instead of learning a single causal relationship, the model is trained to recognize general causal "motifs" across thousands of simulated scenarios, allowing it to generalize to entirely new datasets without a pre-defined graph.

Methodology

ACTIVA's architecture is a Conditional Variational Autoencoder (CVAE) built with transformer blocks. Transformers are chosen for their permutation equivariance, allowing the model to process sets of data points and variables regardless of their ordering.

Amortized Learning and Latent Space

The model is trained on a vast array of simulated causal mechanisms. During training, the encoder receives both observational and interventional data to learn a compressed latent representation of the underlying causal mechanism. At inference time, the model uses only observational data to identify the most likely causal mechanism from its learned latent space.

Conceptual overview of ACTIVA's latent space and output distributions.

Handling Ambiguity with Mixture Distributions

A fundamental challenge in causal inference is that observational data can often be explained by multiple different causal graphs (the Markov Equivalence Class). ACTIVA is designed to output a mixture distribution, representing all plausible outcomes consistent with the observations. This explicitly models the inherent uncertainty when the causal direction is not identifiable from observations alone.

Experimental Results

We evaluated ACTIVA against a strong conditional baseline across synthetic datasets (Gaussian and Beta noise) and semi-synthetic biological data (SERGIO simulator for gene expression).

Quantitative Performance

ACTIVA consistently outperformed the baseline in capturing interventional shifts. For instance, on the 2-variable Beta dataset—where non-Gaussian noise makes the causal direction identifiable—ACTIVA achieved a Maximum Mean Discrepancy (MMD) of 0.21, a significant improvement over the baseline's 0.90.

Qualitative Analysis: Anti-Causal Success

A key test of causal reasoning is the ability to distinguish between "parent" and "child" variables. In qualitative tests, the conditional baseline often mistakenly predicted that intervening on a child variable would affect its parent. In contrast, ACTIVA correctly identified the one-way nature of the causal relationship, predicting no change in the parent variable when the child was manipulated.

Qualitative comparison showing ACTIVA's ability to correctly model interventional distributions compared to a conditional baseline.

Discussion and Conclusion

ACTIVA demonstrates the potential for zero-shot transfer in causal inference. By prioritizing reconstruction accuracy (using $\beta < 1$ in the VAE objective) and embracing uncertainty through mixture distributions, the model provides a robust framework for "what-if" analysis without requiring manual graph construction.

While ACTIVA is bound by the fundamental limits of identifiability—where two models producing identical observational data cannot be distinguished—it effectively recovers the set of all valid interventional distributions. Future work will focus on expanding the variety of supported interventions and bridging the gap to high-dimensional, noisy real-world clinical data.

Summary updated

BibTeX
@misc{sauter2025activa,
  author = {Andreas Sauter and Saber Salehkaleybar and Aske Plaat and Erman Acar},
  title = {{ACTIVA: Amortized Causal Effect Estimation without Graphs via Transformer-based Variational Autoencoder}},
  year = {2025},
  eprint = {2503.01290},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.01290},
}
Figure