MediPFN: Amortized In-Context Nuisance Learning and Inference for Causal Mediation Analysis
Shi Bo, Jiaming Hu
Abstract
Causal mediation analysis decomposes a treatment effect into indirect pathways through mediators and direct pathways through other processes. Tabular foundation models perform classification and regression through in-context learning, providing estimates of conditional means and propensity scores used in causal mediation analysis. Constructing confidence intervals from these estimates requires accounting for uncertainty introduced by fitting and combining several nuisance functions. We introduce MediPFN, an amortized inference framework that adapts a pretrained tabular foundation model to nuisance prediction and combines its predictions through a cross-fitted influence-function estimator. A separate head learns quantiles of the estimator's standardized error from simulated tables with known indirect effects. Supervised fine-tuning, symmetrization, and independent calibration then produce a confidence interval. We establish coverage bounds for the resulting intervals under standard assumptions. Across experiments, MediPFN attains coverage closer to the nominal level than several comparators. It also reduces the computational cost of uncertainty quantification, running 59.1 times faster than bootstrap in matched comparisons.
Create a lesson
Related papers
Amortized Bayesian Experimental Design with In-Context Knowledge Conditioning
Shared title terminology · Zhanghu Zhao, Daolang Huang, Xinyi Wen et al.
Beyond Discrete Ancestry Groups: Distribution-Aware In-Context Learning for Cancer Outcome Prediction Across the Genetic Ancestry Continuum
Shared title terminology · Weizhi Li, Yan Cui
Can pretrained Transformers deliver semiparametrically efficient inference?
Shared title terminology · Han Yan, Jin Zhu, Chengchun Shi et al.
Bayesian optimization on amortized search space
Shared title terminology · Tristan Fauvel, Federico Pavone, Titouan Guillou et al.
Causal Discovery with False Positive Error Control
Shared title terminology · Erik Jahn, Venkat Chandrasekaran, Frederick Eberhardt et al.
Amortizing Tempered Sampling with Corrected Self-Training
Shared title terminology · Hoang-Viet Nguyen, Hai-Dang Dau, Alexandre H. Thiéry