Estimating Interventional Distributions with Uncertain Causal Graphs through Meta-Learning

Anish Dhir, Cristiana Diaconu, Valentinian Mihai Lungu, James Requeima, Richard E. Turner, Mark van der Wilk

The Challenge of Causal Discovery

Causal inference is often considered the "holy grail" of data science—moving beyond simple correlation to understand true cause and effect. Traditionally, this requires a two-step process: first, "discovering" the causal graph (who causes whom), and second, using that graph to estimate the result of an intervention.

However, this approach faces two massive hurdles. First, structural uncertainty: observational data is often compatible with many different causal graphs, and picking just one can lead to overconfidence and dangerous errors. Second, computational explosion: a principled Bayesian approach would average results across all possible graphs, but the number of possible graphs grows super-exponentially with the number of variables. For even a modest number of variables, exact Bayesian inference is mathematically intractable.

Classical approaches vs. the proposed MACE-TNP framework. Classical methods struggle with the super-exponential growth of causal graphs, while MACE-TNP targets the interventional distribution directly.

Methods: The MACE-TNP Framework

The authors introduce the Model-Averaged Causal Estimation Transformer Neural Process (MACE-TNP) to bypass this "discovery-then-estimation" bottleneck. Instead of solving a complex optimization problem for every new dataset, the model is trained on millions of synthetic causal "tasks." It learns the underlying logic of Bayesian causal inference, allowing it to produce answers for new, unseen datasets via a single forward pass of a neural network.

Architecture and Design

The MACE-TNP architecture is designed to handle the complexities of causal data through several key innovations:

  • Variable-Specific Embeddings: Data is first processed through MLPs tailored to each variable, preserving node identity while allowing for flexible feature representation.
  • Dual-Attention Transformer Encoder: The core of the model is a Transformer that alternates between attention among samples (to understand the distribution) and attention among nodes (to understand the relationships between variables).
  • Symmetry-Aware Design: The model respects fundamental symmetries, such as being invariant to the order of data points and equivariant to the labels of the variables.
  • Mixture of Gaussians (MoG) Output: Rather than predicting a single value, the model outputs a mixture of distributions. This allows it to represent "multi-modal" uncertainty—situations where the data suggests two or more equally plausible but different causal outcomes.
The MACE-TNP pipeline: (1) Variable-specific MLP embedding, (2) Transformer encoder with dual attention, and (3) Decoder outputting a Mixture of Gaussians.

Key Insights and Results

  • Bypassing the Graph: MACE-TNP doesn't need to explicitly output a causal graph to work. By targeting the interventional distribution directly, it avoids compounding errors that usually occur during the "graph discovery" phase.
  • Convergence to Optimality: The authors prove that as the model sees more tasks during training, it converges to the mathematically optimal Bayesian solution.
  • State-of-the-Art Performance: MACE-TNP consistently outperformed strong Bayesian baselines (like DiBS) and state-of-the-art end-to-end models (like DECI) across synthetic benchmarks. In 40-node experiments, it maintained its lead while many baseline methods struggled to scale.
  • Real-World Transfer: Without being retrained on biological data, the model performed competitively on the Sachs proteomics dataset, demonstrating that the "causal logic" learned from synthetic data generalizes to real-world systems.

Limitations and Future Work

Like all meta-learning methods, MACE-TNP is sensitive to its training prior; if the synthetic data generator is too different from the real-world test data, performance may degrade. Additionally, the Transformer's attention mechanism scales quadratically with the number of variables and samples, presenting a hurdle for extremely high-dimensional data. The authors suggest this framework paves the way for "Causal Foundation Models"—large-scale models pre-trained on vast libraries of causal structures that can be fine-tuned for specific scientific domains.

Summary updated

BibTeX
@inproceedings{dhir2025estimating,
  author = {Anish Dhir and Cristiana Diaconu and Valentinian Mihai Lungu and James Requeima and Richard E. Turner and Mark van der Wilk},
  title = {{Estimating Interventional Distributions with Uncertain Causal Graphs through Meta-Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=IQlcfc40Ja},
}
Figure