SpatFormer: simulation-based inference with transformers for spatial statistics

Published: 19 Mar 2025, Last Modified: 25 Apr 2025AABI 2025 Workshop TrackEveryoneRevisionsBibTeXCC BY 4.0
Keywords: simulation-based inference, transformers, diffusion models, spatial statistics
Abstract: Gaussian Process (GP) priors are widely used in spatial statistical models but suffer from cubic computational complexity in Markov Chain Monte Carlo (MCMC), limiting scalability. We propose a simulation-based inference (SBI) method using a transformer-enhanced diffusion model tailored for spatial models with latent GP priors. By leveraging transformers for sequence modeling and probabilistic diffusion for inference, our approach enables efficient, amortized Bayesian inference. Unlike traditional MCMC, it avoids repeated costly computations, allowing rapid exploration of spatial conditional distributions. Simulation experiments on one- and two-dimensional models demonstrate superior scalability compared to GP-based MCMC, making our method well-suited for large-scale applications in spatial epidemiology and other domains. The accompanying code is available at https://github.com/hermanFTT/SpatFormer.
Submission Number: 35
Loading

OpenReview is a long-term project to advance science through improved peer review with legal nonprofit status. We gratefully acknowledge the support of the OpenReview Sponsors. © 2025 OpenReview