NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Effortless, Simulation-Efficient Bayesian Inference using Tabular Foundation Models

Julius Vetter, Manuel Gloeckler, Daniel Gedon, Jakob H. Macke

Abstract

Simulation-Based Inference (SBI) is a critical tool for scientific discovery, yet standard neural methods often require large simulation budgets and extensive hyperparameter tuning. We present NPE-PFN, which repurposes the TabPFN foundation model for training-free, in-context posterior estimation. By decomposing the posterior into autoregressive conditional distributions, NPE-PFN achieves superior simulation efficiency, outperforming traditional methods at low simulation budgets and scaling to complex biological models with orders of magnitude fewer simulations than previous state-of-the-art techniques.

Introduction

In scientific research, complex simulators are often used to model phenomena ranging from neuronal firing to disease spread. A fundamental task is Bayesian inference: determining the distribution of model parameters ($\theta$) that likely produced a specific observation ($x_o$). However, when the simulator's likelihood function is unknown or computationally prohibitive, researchers turn to Simulation-Based Inference (SBI). Traditional SBI methods, such as Neural Posterior Estimation (NPE), typically require training custom neural networks on vast amounts of simulated data—a process that is computationally expensive, requires expert hyperparameter tuning, and often struggles with limited simulation budgets.

Methodology: NPE-PFN

NPE-PFN is a novel approach that repurposes the Tabular Prior-data Fitted Network (TabPFN) as a training-free, in-context posterior estimator. TabPFN is a transformer-based foundation model pre-trained on millions of synthetic structural causal models. By leveraging this pre-training, NPE-PFN eliminates the need for custom network training and hyperparameter optimization.

Schematic comparison between standard NPE and the proposed NPE-PFN. NPE requires a dedicated training phase, whereas NPE-PFN performs inference in-context by treating simulations as a context set for an autoregressive density estimator.

The core innovation lies in decomposing the high-dimensional posterior $p(\theta | x_o)$ into a chain of one-dimensional conditional distributions, which TabPFN estimates sequentially. To handle simulation budgets exceeding the model's context window, the authors employ a theoretically sound relevance-based filtering scheme. This "local" SBI approach allows the model to scale effectively without introducing bias into the posterior. For iterative refinement, the authors also introduce TSNPE-PFN, a sequential version that adaptively focuses on the relevant parameter space over multiple rounds.

Results: Efficiency and Benchmarks

NPE-PFN demonstrates state-of-the-art simulation efficiency across a wide range of benchmarks. In scenarios with very low simulation budgets (e.g., 100 simulations), it significantly outperforms standard NPE and Neural Likelihood Estimation (NLE).

Performance comparison across SBI benchmark tasks. (a) NPE-PFN (yellow) achieves lower C2ST scores (indicating better posterior quality) at low simulation counts compared to NPE and NLE. (b) While NPE-PFN avoids training time, its sampling time is higher than amortized methods.

The method's power is particularly evident in complex scientific inverse problems. On the 31-dimensional Pyloric Network model—a biological circuit where 99% of prior samples result in invalid simulations—NPE-PFN achieved high-quality results using only $5 \times 10^4$ simulations. This represents a massive improvement over previous amortized methods that required up to 18 million simulations, and even recent sequential methods that required $1.5 \times 10^5$. Similarly, for the Hodgkin-Huxley model, NPE-PFN successfully inferred eight neuronal parameters from real voltage traces, demonstrating its applicability to real-world experimental data.

Discussion: Robustness and Usability

Beyond efficiency, NPE-PFN is notably robust to model misspecification. Because TabPFN is pre-trained on a diverse array of causal structures, it possesses a strong inductive bias that helps it generalize even when the simulator does not perfectly match real-world data. From a practical standpoint, NPE-PFN offers an "effortless" workflow. By removing the "train-validate-tune" loop, it lowers the barrier for scientists who are not machine learning experts. While the inference step itself is slower than pre-trained amortized models (taking seconds to minutes rather than milliseconds), the total time saved by eliminating the training phase can be substantial, often reducing the overall workflow from hours to minutes.

Summary updated

BibTeX
@inproceedings{vetter2025effortless,
  author = {Julius Vetter and Manuel Gloeckler and Daniel Gedon and Jakob H. Macke},
  title = {{Effortless, Simulation-Efficient Bayesian Inference using Tabular Foundation Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=kN0YHWGDPH},
}
Figure