# MediPFN: Amortized In-Context Nuisance Learning and Inference for Causal Mediation Analysis

arXiv: https://arxiv.org/abs/2611.13219 · HTML: https://mlsanity.com/paper/2611.13219/

## Key facts

- Cited by 1 papers in the map (data through 24 Nov 2026).
- Builds on 24 of its 41 references that are in the map.
- Submitted 9 Nov 2026.

## Builds on (most cited first, 24 of 24)

- [TabPFN: A Transformer That Solves Small Tabular Classification Problems in a Second](https://mlsanity.com/paper/2207.01848/) (2022)
- [Conformalized Quantile Regression](https://mlsanity.com/paper/1905.03222/) (2019)
- [Conformal Prediction Under Covariate Shift](https://mlsanity.com/paper/1904.06019/) (2019)
- [OpenML: networked science in machine learning](https://mlsanity.com/paper/1407.7722/) (2014)
- [TabICL: A Tabular Foundation Model for In-Context Learning on Large Data](https://mlsanity.com/paper/2502.05564/) (2025)
- [Direct and Indirect Effects](https://mlsanity.com/paper/1301.2300/) (2013)
- [TabDPT: Scaling Tabular Foundation Models on Real Data](https://mlsanity.com/paper/2410.18164/) (2024)
- [Do-PFN: In-Context Learning for Causal Effect Estimation](https://mlsanity.com/paper/2506.06039/) (2025)
- [CausalPFN: Amortized Causal Effect Estimation via In-Context Learning](https://mlsanity.com/paper/2506.07918/) (2025)
- [Foundation Models for Causal Inference via Prior-Data Fitted Networks](https://mlsanity.com/paper/2506.10914/) (2025)
- [Non-parametric efficient causal mediation with intermediate confounders](https://mlsanity.com/paper/1912.09936/) (2019)
- [Frequentist Consistency of Prior-Data Fitted Networks for Causal Inference](https://mlsanity.com/paper/2603.12037/) (2026)
- [On semiparametric estimation of a path-specific effect in the presence of mediator-outcome confounding](https://mlsanity.com/paper/1710.02011/) (2017)
- [Causal mediation analysis for stochastic interventions](https://mlsanity.com/paper/1901.02776/) (2019)
- [Learning to Fluctuate: Statistical Foundations for Causal Tabular Pretraining](https://mlsanity.com/paper/2609.26290/) (2026)
- [Can Tabular Foundation Models Amortize Statistical Inference?](https://mlsanity.com/paper/2609.33114/) (2026)
- [Causal Mediation Analysis: Selection with Asymptotically Valid Inference](https://mlsanity.com/paper/2110.06127/) (2021)
- [Mediation analysis with the mediator and outcome missing not at random](https://mlsanity.com/paper/2212.05577/) (2022)
- [TabCUQ: Context-Uncertainty Quantification for Tabular Foundation Models](https://mlsanity.com/paper/2610.39558/) (2026)
- [Identification and multiply robust estimation in causal mediation analysis across principal strata](https://mlsanity.com/paper/2304.10025/) (2023)
- [Adaptive Bootstrap Tests for Composite Null Hypotheses in the Mediation Pathway Analysis](https://mlsanity.com/paper/2310.11630/) (2023)
- [Efficient Nonparametric Inference for Mediation Analysis with Nonignorable Missing Confounders](https://mlsanity.com/paper/2402.05384/) (2024)
- [TFM-Retouche: A Lightweight Input-Space Adapter for Tabular Foundation Models](https://mlsanity.com/paper/2605.06047/) (2026)
- [ProximalFM: Amortized Proximal Causal Inference under Hidden Confounding](https://mlsanity.com/paper/2610.08078/) (2026)

## Built on by (most cited first, 1 of 1)

- [Can pretrained Transformers deliver semiparametrically efficient inference?](https://mlsanity.com/paper/2611.27666/) (2026)

## Abstract (arXiv)

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.
