Papers › Bayes-Newton Methods for Approximate Bayesian Inference with PSD Guarantees

Bayes-Newton Methods for Approximate Bayesian Inference with PSD Guarantees

2 Nov 2021arXiv:2111.01721archive 2025-07-28

William J. Wilkinson, Simo Särkkä, Arno Solin

We formulate natural gradient variational inference (VI), expectation propagation (EP), and posterior linearisation (PL) as extensions of Newton's method for optimising the parameters of a Bayesian posterior distribution. This viewpoint explicitly casts inference algorithms under the framework of numerical optimisation. We show that common approximations to Newton's method from the optimisation literature, namely Gauss-Newton and quasi-Newton methods (e.g., the BFGS algorithm), are still valid under this 'Bayes-Newton' framework. This leads to a suite of novel algorithms which are guaranteed to result in positive semi-definite (PSD) covariance matrices, unlike standard VI and EP. Our unifying viewpoint provides new insights into the connections between various inference schemes. All the presented methods apply to any model with a Gaussian prior and non-conjugate likelihood, which we demonstrate with (sparse) Gaussian processes and state space models.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2111.01721")

Code

Syntology Ran 0 of 15 code samples harvested from 1 repository linked to this paper; 15 have no recorded run.

By repository: official repository: 15 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

AaltoML/BayesNewton officialmentioned in papermentioned on GitHubjaxApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 0 ran; 0 honoured the contract we drafted; 15 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

15unverified

Licence: 0 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from AaltoML/BayesNewton. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

bfgs AaltoML/BayesNewton/bayesnewton/inference.py official repository unverified Apache-2.0 (permissive) · 6100466c1367a03d · report
blocktensor_to_blockdiagmatrix AaltoML/BayesNewton/bayesnewton/ops.py official repository unverified Apache-2.0 (permissive) · 9aae62a9f99047b2 · report
coeff AaltoML/BayesNewton/bayesnewton/kernels.py official repository unverified Apache-2.0 (permissive) · 94d3b7a9318afcff · report
damped_bfgs AaltoML/BayesNewton/bayesnewton/inference.py official repository unverified Apache-2.0 (permissive) · bc57cb302c717818 · report
factorial AaltoML/BayesNewton/bayesnewton/kernels.py official repository unverified Apache-2.0 (permissive) · 286d7367835461f3 · report
gauss_hermite AaltoML/BayesNewton/bayesnewton/cubature.py official repository unverified Apache-2.0 (permissive) · 2bf235dc5954887b · report
get_blocks AaltoML/BayesNewton/bayesnewton/ops.py official repository unverified Apache-2.0 (permissive) · 6f157040825f5857 · report
get_diag_and_offdiag_components AaltoML/BayesNewton/bayesnewton/ops.py official repository unverified Apache-2.0 (permissive) · 1886c3dfe4b4324c · report
inv AaltoML/BayesNewton/bayesnewton/utils.py official repository unverified Apache-2.0 (permissive) · d8bdc4bb0675df6f · report
inv_vmap AaltoML/BayesNewton/bayesnewton/utils.py official repository unverified Apache-2.0 (permissive) · 4277fb46e3b5740c · report
mvhermgauss AaltoML/BayesNewton/bayesnewton/cubature.py official repository unverified Apache-2.0 (permissive) · 0eeed36a96e1f3a7 · report
negative_binomial AaltoML/BayesNewton/bayesnewton/likelihoods.py official repository unverified Apache-2.0 (permissive) · cfeeab30c5e0cae1 · report
newton_update AaltoML/BayesNewton/bayesnewton/inference.py official repository unverified Apache-2.0 (permissive) · 2bb9aee359b6c49e · report
solve AaltoML/BayesNewton/bayesnewton/utils.py official repository unverified Apache-2.0 (permissive) · d6b5c53748778f80 · report
symmetric_cubature_third_order AaltoML/BayesNewton/bayesnewton/cubature.py official repository unverified Apache-2.0 (permissive) · 833cb74669877c21 · report

Tasks

Bayesian InferenceGaussian ProcessesState Space ModelsVariational Inference

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Variational Inference

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections