Demystifying amortized causal discovery with transformers
Abstract
Supervised learning for causal discovery from observational data often achieves competitive performance despite seemingly avoiding the explicit assumptions that traditional methods require for identifiability. In this work, we analyze CSIvA (Ke et al., 2023b) on bivariate causal models, a transformer architecture for amortized inference promising to train on synthetic data and transfer to real ones. First, we bridge the gap with identifiability theory, showing that the training distribution implicitly defines a prior on the causal model of the test observations: consistent with classical approaches, good performance is achieved when we have a good prior on the test data, and the underlying model is identifiable. Second, we find that CSIvA can not generalize to classes of causal models unseen during training: to overcome this limitation, we show that learning on datasets generated from different types of causal models, unambiguously identifiable in isolation, improves the test generalization. We analyze this empirical evidence with theory, illustrating that the ambiguous cases resulting from the mixture of identifiable causal models are unlikely to occur. Overall, we find that amortized causal discovery still adheres to identifiability theory, violating the previous hypothesis from Lopez-Paz et al. (2015) that supervised learning methods could overcome its restrictions.
BibTeX
@article{montagna2025demystifying,
author = {Francesco Montagna and Max Cairney-Leeming and Dhanya Sridhar and Francesco Locatello},
title = {{Demystifying amortized causal discovery with transformers}},
journal = {Accepted by TMLR},
year = {2025},
url = {https://openreview.net/forum?id=9Lgy7IGSfp},
}Ask Althea to put this paper to the test.