MapPFN: Learning Causal Perturbation Maps in Context

1TU Berlin   2BIFOLD   3Aignostics   4Charité
TU Berlin BIFOLD Aignostics Charité

Abstract

Planning effective interventions in biological systems requires treatment-effect models that adapt to unseen biological contexts by identifying their specific underlying mechanisms. Yet single-cell perturbation datasets span only a handful of biological contexts, and existing methods cannot leverage new interventional evidence at inference time to adapt beyond their training data. To meta-learn a perturbation effect estimator, we present MapPFN, a prior-data fitted network (PFN) pre-trained on a synthetic biological prior with causal interventions, decoupling pre-training from limited wet-lab data. Unlike existing methods, MapPFN uses in-context learning to map a sequence of experiments to a post-perturbation distribution, enabling a single pre-trained model to adapt to new datasets and gene sets. Our results show that combining synthetic pre-training with fine-tuning on real single-cell data improves perturbation predictions across biological contexts.

The Problem

  • Perturbation effects are context-dependent
  • Combinatorial space infeasible to cover experimentally
  • Existing methods retrain per dataset and gene set
  • No method conditions on interventional experiments

Contributions

  • Framing perturbation prediction as an in-context learning problem given a set of interventional experiments
  • MapPFN, the first prior-data fitted network for perturbation prediction, decoupling pre-training from limited wet-lab data
  • Evaluation on synthetic and single-cell data, adapting a single pre-trained model to new datasets and gene sets

Method

MapPFN overview

MapPFN overview. During pre-training, synthetic causal models are drawn to generate observational and interventional distributions. MapPFN meta-learns to map between pre- and post-perturbation distributions across many causal structures. At inference, it predicts cell-level post-perturbation distributions in one step through amortized inference.

Draw causal model $\psi$ from prior $p(\psi)$, generate $\mathbf{Y}^{\text{obs}}$ and build context $\mathcal{C} = \{(t_k, \mathbf{Y}^{\text{int}}_k)\}_{k=1}^K$ by intervening with treatments $t_k$. MapPFN meta-learns to predict the outcome of an unseen intervention $t_q$ by minimizing $\mathcal{L}(\hat{\mathbf{Y}}_q^{\text{int}}, \mathbf{Y}_q^{\text{int}})$ across many $\psi$. MapPFN approximates the posterior predictive distribution

$$p(\mathbf{y}_q^{\text{int}} \mid \text{do}({\color{#D55E00} t_q}), {\color{#0072B2} \mathbf{Y}^{\text{obs}}}, {\color{#009E73} \mathcal{C}}) = \int p(\mathbf{y}_q^{\text{int}} \mid \text{do}({\color{#D55E00} t_q}), {\color{#0072B2} \mathbf{Y}^{\text{obs}}}, {\color{#E69F00} \psi}) \; p({\color{#E69F00} \psi} \mid {\color{#0072B2} \mathbf{Y}^{\text{obs}}}, {\color{#009E73} \mathcal{C}}) \; d{\color{#E69F00} \psi}$$

Get Started

Hugging Face

Fine-tune MapPFN

Download the pre-trained model and fine-tune on your own perturbation data.

Hugging Face Models
Hugging Face

Download Datasets

Access the synthetic and real-world perturbation datasets used for pre-training and evaluation.

Hugging Face Datasets

View Source Code

Reproduce experiments, explore the codebase, and build on MapPFN.

Code

BibTeX

@inproceedings{sextro2026mappfn,
  title     = {Map{PFN}: Learning Causal Perturbation Maps in Context},
  author    = {Marvin Sextro and Weronika K{\l}os and Gabriel Dernbach},
  booktitle = {Advances in Neural Information Processing Systems},
  volume    = {39},
  year      = {2026}
}