Abstract
Simulation plays a central role in scientific discovery. In many applications, the bottleneck is no longer running a simulator; it is choosing among large families of plausible simulators, each corresponding to different forward models/hypotheses consistent with observations. Over large model families, classical Bayesian workflows for model selection are impractical. Furthermore, amortized model selection methods typically hard-code a fixed model prior or complexity penalty at training time, requiring users to commit to a particular parsimony assumption before seeing the data. We introduce PRISM, a simulation-based encoder-decoder that infers a joint posterior over both discrete model structures and associated continuous parameters, while enabling test-time control of model complexity via a tunable model prior that the network is conditioned on. We show that PRISM scales to families with combinatorially many (up to billions) of model instantiations on a synthetic symbolic regression task. As a scientific application, we evaluate PRISM on biophysical modeling for diffusion MRI data, showing the ability to perform model selection across several multi-compartment models, on both synthetic and in vivo neuroimaging data.
Introduction
In scientific fields such as neuroscience and epidemiology, researchers often face the challenge of selecting the most appropriate "forward model" or simulator from a vast family of plausible hypotheses. Traditional Bayesian workflows for model selection become impractical as the number of potential models grows combinatorially. Furthermore, existing amortized simulation-based inference (SBI) methods typically fix a model prior or complexity penalty during training. This rigidity forces users to commit to a specific parsimony assumption before observing the data, requiring costly retraining if those assumptions need adjustment.
We introduce PRISM (PRIor-flexible Simulation-based Model inference), a framework designed to simultaneously identify optimal model structures and their continuous parameters. PRISM addresses the scalability bottleneck by handling combinatorially large model spaces and introduces a tunable "complexity knob" ($\lambda$) that allows for test-time control of the trade-off between model simplicity and goodness-of-fit.
Methodology
PRISM utilizes a transformer-based encoder-decoder architecture to learn the joint posterior $p(\text{Model}, \theta | \text{Data}, \lambda)$.
Architecture and Innovations
The core of PRISM is a dual-stream decoding process that treats model components as tokens in a sequence. This approach allows the model to leverage the structural generalization capabilities of Transformers across variable-length parameter vectors.
- Dual-Stream Decoding: The architecture features two parallel paths. One path uses an autoregressive Bernoulli distribution to predict the discrete "mask" (identifying active model components), while the other employs a diffusion-based decoder to infer the continuous parameters for those components.
- Test-Time Complexity Control: By conditioning the network on a hyperparameter $\lambda$ during training, PRISM enables users to adjust the parsimony requirement at inference time. This allows for post-hoc exploration of the model space without retraining.
- Diffusion-Based Parameter Inference: Using a diffusion-based decoder for continuous parameters allows PRISM to capture complex, multi-modal distributions—such as when a signal could be explained by two different fiber directions—more effectively than traditional mixture density approaches.
Experiments and Results
The framework was evaluated across three distinct domains: synthetic symbolic regression, biophysical diffusion MRI (dMRI) simulations, and real-world neuroimaging data from the UK Biobank and Human Connectome Project.
Scalability and Generalization
In symbolic regression tasks involving model spaces with up to $10^{30}$ configurations, PRISM maintained high accuracy (Top-5 accuracy often >90%). Notably, the model demonstrated an ability to generalize to model structures not encountered during training by learning the underlying "language" of model components.
Biophysical Modeling and Speed
In dMRI applications, PRISM matched the accuracy of gold-standard Markov Chain Monte Carlo (MCMC) methods while being orders of magnitude faster. It successfully processed entire brain datasets from the UK Biobank (approximately 30,000 voxels) in roughly 4 minutes on a single GPU.
Calibration and Scientific Utility
PRISM is well-calibrated, ensuring that its reported uncertainty aligns with actual error frequencies. The ability to tune $\lambda$ at test time proved highly valuable for scientific discovery, allowing researchers to observe how inferred tissue properties change as the complexity penalty is adjusted in real-time.
Conclusion
PRISM represents a significant step forward in scalable, flexible simulation-based inference. By enabling test-time complexity control and scaling to combinatorial model spaces, it provides a powerful tool for automated scientific discovery. While training requires a significant simulation budget, the resulting amortized model offers unprecedented speed and flexibility for complex model selection tasks.
Summary updated