A primer on Variational Laplace (VL)
Open accessPublished version of a preprint
The DOI matches its Crossref record; 20 of the 20 references it cites were found in a registry or an index.
Abstract
This article details a scheme for approximate Bayesian inference, which has underpinned thousands of neuroimaging studies since its introduction 15 years ago. Variational Laplace (VL) provides a generic approach to fitting linear or non-linear models, which may be static or dynamic, returning a posterior probability density over the model parameters and an approximation of log model evidence, which enables Bayesian model comparison. VL applies variational Bayesian inference in conjunction with quadratic or Laplace approximations of the evidence lower bound (free energy). Importantly, update equations do not need to be derived for each model under consideration, providing a general method for fitting a broad class of models. This primer is intended for experimenters and modellers who may wish to fit models to data using variational Bayesian methods, without assuming previous experience of variational Bayes or machine learning. Accompanying code demonstrates how to fit different kinds of model using the reference implementation of the VL scheme in the open-source Statistical Parametric Mapping (SPM) software package. In addition, we provide a standalone software function that does not require SPM, in order to ease translation to other fields, together with detailed pseudocode. Finally, the supplementary materials provide worked derivations of the key equations.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
An Introduction to Variational Methods for Graphical Models
Jordan, M. I., Ghahramani, Z., Jaakkola, T. S., & Saul, L. K. (1999) · Machine Learning · doi:10.1023/a:1007665907178 · Cited by 3,791
A View of the Em Algorithm that Justifies Incremental, Sparse, and other Variants
Neal, R. M., & Hinton, G. E. (1998) · Learning in Graphical Models · doi:10.1007/978-94-011-5014-9_12 · Cited by 2,187 · cited 1×
“Later, schemes like expectation maximisation (EM) were considered in the light of VB (Bishop, 1998; Neal and Hinton, 1998; Beal, 2003), which proved particularly useful for fitting graphical models (Jordan et al., 1999).”
MethodKeeping the neural networks simple by minimizing the description length of the weights
Hinton, G. E., & van Camp, D. (1993) · Proceedings of the sixth annual conference on Computational learning theory - COLT '93 · doi:10.1145/168304.168306 · Cited by 994
Mackay, D. J. C. (1995) · Network Computation in Neural Systems · doi:10.1088/0954-898x/6/3/011 · Cited by 915
Variational free energy and the Laplace approximation
Friston, K., Mattout, J., Trujillo-Barreto, N., Ashburner, J., & Penny, W. (2007) · NeuroImage · doi:10.1016/j.neuroimage.2006.08.035 · Cited by 880 · cited 4×
“The original implementation of VL was in the SPM software package (Friston et al., 2007), and variants of the scheme are now provided in other packages for analysing neural and psychological data, such as the VBA Toolbox (Daunizeau et al., 2014) and TAPAS (Fr ¨ assle et al., 2021).”
BackgroundMethodInfluentialSelf-citation(2005) · Edinburgh Research Explorer (University of Edinburgh) · doi:10.5555/1046920.1088695 · Cited by 650
Multiple sparse priors for the M/EEG inverse problem.
Friston, K., Harrison, L., Daunizeau, J., Kiebel, S., Phillips, C., Trujillo-Barreto, N., Henson, R., Flandin, G., & Mattout, J. (2008) · NeuroImage · doi:10.1016/j.neuroimage.2007.09.048 · Cited by 589
Self-citationFriston, K. J., Kahan, J., Biswal, B., & Razi, A. (2014) · NeuroImage · doi:10.1016/j.neuroimage.2013.12.009 · Cited by 553 · cited 1×
“For example, VL has been applied to modelling data in the frequency domain (complex cross-spectra), which is routinely used in the analysis of electrophysiological data (Moran et al., 2009) and resting state fMRI data (Friston et al., 2014).”
MethodSelf-citationAutomatic differentiation variational inference
Kucukelbir, A., Tran, D., Ranganath, R., Gelman, A., & Blei, D. M. (2016) · arXiv · doi:10.48550/arxiv.1603.00788 · Cited by 515 · cited 8×
“We would predict that VL and VMP would be significantly faster because they eschew sampling, however ADVI would offer the most accurate posteriors in situations where the Laplace approximation is violated.”
MethodInfluentialComparing hemodynamic models with DCM
Stephan, K. E., Weiskopf, N., Drysdale, P. M., Robinson, P. A., & Friston, K. J. (2007) · NeuroImage · doi:10.1016/j.neuroimage.2007.07.040 · Cited by 441 · cited 2×
“It has been applied to discovering functional modes in neuroimaging data using hidden Markov models (Vidaurre et al., 2017) and quantifying variability in resting state networks across a large sample of the population in the UK Biobank (Farahibozorg et al.”
MethodSelf-citationVBA: A Probabilistic Treatment of Nonlinear Models for Neurobiological and Behavioural Data
Daunizeau, J., Adam, V., & Rigoux, L. (2014) · PLoS Computational Biology · doi:10.1371/journal.pcbi.1003441 · Cited by 385
The functional anatomy of attention to visual motion. A functional MRI study
Buchel, C. (1998) · Brain · doi:10.1093/brain/121.7.1281 · Cited by 303 · cited 2×
“Here, for illustrative purposes, we will use the fMRI data from a single participant from Büchel et al. (1998) to address the following question: which neural connections explain why V5 was sensitive to visual motion?”
BackgroundMethodComparing dynamic causal models using AIC, BIC and free energy
Penny, W. D. (2012) · NeuroImage · doi:10.1016/j.neuroimage.2011.07.039 · Cited by 298
DEM: A variational treatment of dynamic systems
Friston, K. J., Trujillo-Barreto, N., & Daunizeau, J. (2008) · NeuroImage · doi:10.1016/j.neuroimage.2008.02.054 · Cited by 278
A step-by-step tutorial on active inference and its application to empirical data
Smith, R., Friston, K. J., & Whyte, C. J. (2022) · Journal of Mathematical Psychology · doi:10.1016/j.jmp.2021.102632 · Cited by 246
Self-citationDynamic causal models of steady-state responses
Moran, R. J., Stephan, K. E., Seidenbecher, T., Pape, H.-C., Dolan, R. J., & Friston, K. J. (2009) · NeuroImage · doi:10.1016/j.neuroimage.2008.09.048 · Cited by 195
Self-citationFriston, K., Stephan, K., Li, B., & Daunizeau, J. (2010) · Mathematical Problems in Engineering · doi:10.1155/2010/621670 · Cited by 171 · cited 1×
“…been introduced to invert stochastic differential equation models, namely Dynamic Expectation Maximization (DEM) and Generalised Filtering (GF), which estimate a model ’ s hidden states and parameters, treating both as time-dependant random variables (Friston et al., 2010; Friston et al., 2008b).”
MethodSelf-citationTAPAS: An Open-Source Software Package for Translational Neuromodeling and Computational Psychiatry
Frässle, S., Aponte, E. A., Bollmann, S., Brodersen, K. H., Do, C. T., Harrison, O. K., Harrison, S. J., Heinzle, J., Iglesias, S., Kasper, L., et al. (2021) · Frontiers in Psychiatry · doi:10.3389/fpsyt.2021.680811 · Cited by 169
Neuronal message passing using mean-field, bethe, and marginal approximations
Parr, T., Markovic, D., Kiebel, S. J., & Friston, K. J. (2019) · Scientific Reports · doi:10.1038/s41598-018-38246-3 · Cited by 128
Self-citationFree energy minimisation algorithmfor decoding and cryptanalysis
MacKay, D. J. C. (1995) · Electronics Letters · doi:10.1049/el:19950331 · Cited by 79
Research works printed but not linked: 27
- Cox, 2019, A factor graph approach to automated design of Bayesian signal processing algorithms, International Journal of Approximate Reasoning, 104, 185, 10.1016/j.ijar.2018.11.002 · DOI
- Daunizeau, 2012, Stochastic dynamic causal modelling of fMRI data: should we care about neural noise?, Neuroimage, 62, 464, 10.1016/j.neuroimage.2012.04.061 · DOI · Paper page
- Daunizeau, J. 2017. The variational Laplace approach to approximate Bayesian inference. arXiv preprint.
- Farahibozorg, 2021, Hierarchical modelling of functional brain networks in population and individuals from big fMRI data, NeuroImage, 243, 10.1016/j.neuroimage.2021.118513 · DOI
- Friston, 2003, Dynamic causal modelling, Neuroimage, 19, 1273, 10.1016/S1053-8119(03)00202-7 · DOI · Paper page
- Friston, 2015, Empirical Bayes for DCM: A Group Inversion Scheme, Front Syst Neurosci, 9, 164, 10.3389/fnsys.2015.00164 · DOI · Paper page
- Friston, 2016, Bayesian model reduction and empirical Bayes for group (DCM) studies, Neuroimage, 128, 413, 10.1016/j.neuroimage.2015.11.015 · DOI · Paper page
- Friston, K., Parr, T. & Zeidman, P. 2018. Bayesian model reduction. arXiv preprint.
- Friston, 2020, Dynamic causal modelling of COVID-19, Wellcome Open Research, 5, 10.12688/wellcomeopenres.15881.2 · doi:10.12688/wellcomeopenres.15881.2
- Griewank, 1989, On automatic differentiation, Mathematical Programming: recent developments and applications, 6, 83
- Hoffman, 2013, Stochastic variational inference, Journal of Machine Learning Research
- Iri, 1984, Simultaneous computation of functions, partial derivatives and estimates of rounding errors—Complexity and practicality—, Japan Journal of Applied Mathematics, 1, 223, 10.1007/BF03167059 · doi:10.1007/bf03167059
- Jaynes, 1957, Information theory and statistical mechanics, Physical review, 106, 620, 10.1103/PhysRev.106.620 · DOI · Paper page
- Kass, 1995, Bayes factors, Journal of the american statistical association, 90, 773, 10.1080/01621459.1995.10476572 · DOI · Paper page
- Kucukelbir, 2015, Automatic variational inference in Stan, Advances in neural information processing systems, 28
- Lanillos, P. & Van Gerven, M. 2021. Neuroscience-inspired perception-action in robotics: applying active inference for state estimation, control and self-perception. arXiv preprint.
- Lanillos, P., Meo, C., Pezzato, C., Meera, A.A., Baioumy, M., Ohata, W., Tschantz, A., Millidge, B., Wisse, M. & Buckley, C.L. 2021. Active Inference in Robotics and Artificial Agents: Survey and Challenges. arXiv preprint.
- Ostwald, 2014, A tutorial on variational Bayes for latent linear stochastic time-series models, Journal of Mathematical Psychology, 60, 1, 10.1016/j.jmp.2014.04.003 · DOI
- Ozaki, T. 1985. Non-linear time series models and dynamical systems. Handbook of Statistics. · DOI
- Penny, 2012, Comparing dynamic causal models using AIC, BIC and free energy, Neuroimage, 59, 319, 10.1016/j.neuroimage.2011.07.039 · DOI · Paper page
- Puckett, 2020, Bayesian population receptive field modeling in human somatosensory cortex, Neuroimage, 208, 10.1016/j.neuroimage.2019.116465 · DOI
- Starke, 2017, Variational Bayesian parameter estimation techniques for the general linear model, Frontiers in neuroscience, 11, 10.3389/fnins.2017.00504 · DOI
- Vidaurre, 2017, Brain network dynamics are hierarchically organized in time, Proceedings of the National Academy of Sciences, 114, 12827, 10.1073/pnas.1705120114 · DOI · Paper page
- Zeidman, 2018, Bayesian population receptive field modelling, NeuroImage, 180, 173, 10.1016/j.neuroimage.2017.09.008 · DOI
- Zeidman, 2019, A guide to group effective connectivity analysis, part 1: First level analysis with DCM for fMRI, NeuroImage, 200, 174, 10.1016/j.neuroimage.2019.06.031 · DOI · Paper page
- Zeidman, 2019, A guide to group effective connectivity analysis, part 2: Second level analysis with PEB, NeuroImage, 200, 12, 10.1016/j.neuroimage.2019.06.032 · DOI · Paper page
- Zeidman, 2019, Optimizing data for modeling neuronal responses, Frontiers in neuroscience, 12, 986, 10.3389/fnins.2018.00986 · DOI
Cited by
Accelerating scientific progress through Bayesian adversarial collaboration
Corcoran, A. W., Hohwy, J., & Friston, K. J. (2023) · Neuron · doi:10.1016/j.neuron.2023.08.027 · Cited by 26
Self-citationLattice physics approaches for neural networks
Bardella, G., Franchini, S., Pani, P., & Ferraina, S. (2024) · iScience · doi:10.1016/j.isci.2024.111390 · Cited by 17
“In this respect, our derivation significantly alleviate the computational burden in the case of experimentally recorded neural activity, given that it reduces the number of parameters needed to compute the action from T 2 N 2 to NT + N 2 + T 2 , as better detailed in SI.”
BackgroundOn the minimal theory of consciousness implicit in active inference
Whyte, C. J., Corcoran, A. W., Robinson, J., Smith, R., Moran, R. J., Parr, T., Friston, K. J., Seth, A. K., & Hohwy, J. (2026) · Physics of Life Reviews · doi:10.1016/j.plrev.2025.11.002 · Cited by 15
“This is a feature, not a bug, and is complemented by the fact that active inference as a modelling framework has been developed alongside a suite of variational (Bayesian) methods for model fitting and model comparison (Daunizeau, 2011; K. Friston et al., 2007; Zeidman et al., 2022).”
Self-citationAlzheimer's disease and its progression reduce pyramidal cell gain and connectivity
Lanskey, J. H., Jafarian, A., Karadag, M., Kocagoncu, E., Williams, R. S., Yadav, P., Quinn, A. J., Pitt, J., Thayanandan, T., Lowe, S., et al. (2025) · Alzheimer's & Dementia · doi:10.1002/alz.70805 · Cited by 6
Corcoran, A. W., Haun, A. M., Dorman, R., Tononi, G., Friston, K. J., & Pennartz, C. M. A. (2026) · Neuroscience & Biobehavioral Reviews · doi:10.1016/j.neubiorev.2026.106742 · Cited by 2
Self-citation
Metadata
- Authors
- Zeidman, P., Friston, K., & Parr, T.
- Venue
- NeuroImage
- Publisher
- Elsevier BV
- Published
- 2023-10
- Volume
- 279
- Pages
- 120310
- ISSN
- 1053-8119 (ISSN-L)
- OpenAlex
- W4385566371
- Cited by
- 48
- References
- 20
- FWCI
- 9.08
- Type
- journal article
- Language
- en
- Open access
- gold
- Licence
- www.elsevier.com/tdm/userlicense/1.0/ (tdm)
- www.elsevier.com/legal/tdmrep-license (tdm)
- creativecommons.org/licenses/by/4.0/ (vor)
- Funders
- Wellcome Trust
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.