Why put uncertainty in the weights
The topic Black-box variational inference and the VAE gave us an ELBO gradient for any differentiable model: write the sample as and backpropagate through it. The VAE spent that trick on the latent code of each object. This last topic points the same tools at the weights of a neural network, where the course's question is hardest: millions of uncertain parameters and no closed form for anything.
An ordinary trained network is a point estimate. Training with weight decay is MAP with a Gaussian prior (the topic The Bayesian approach), so the network is and nothing more. Give a regression network two outputs, a mean and a noise variance , and fit it to noisy observations of on two intervals with a gap between them. In the gap and beyond the data it still answers with one curve and roughly the noise level it learned on the data. It has no way to say "I have not seen this".
The Bayesian answer is the posterior predictive, the same object that gave for the coin:
Its variance splits by the law of total variance, with both moments taken over :
The first term is aleatoric uncertainty, noise in the data itself. The second is epistemic uncertainty, disagreement between networks that all explain the data. For Bayesian linear regression the same split was (the topic Bayesian linear regression). For a network neither term has a closed form, because has none.
The rest of the topic is four ways to approximate , plus a fifth that does not try to. Each reuses a tool from this course.