A PAC-Bayes bound says that, with probability at least over examples, every posterior satisfies . Take and with . Compute the KL, and the bound for , and . Why does the bound beat a naive one for a large network?
Learning theory, PAC-Bayes
Level L3 Intermediate. Length Medium. Nature Th+Mat Both.
What's being asked
Whether you can evaluate a PAC-Bayes bound, including the KL between Gaussians, and explain what it measures.
Key idea
The prior is fixed before seeing data and is any data-dependent posterior over hypotheses. The bound depends on how far moves from , measured by , not on the size of the hypothesis class.
Steps
- For Gaussians with equal covariance , the KL is . Here and , so .
- Compute the log term: .
- Add: . Divide by to get .
- Take the square root: .
- Bound: . About 40% of the bound is the complexity term.
- Here is the expected risk of a random classifier drawn from . It is not the risk of one fixed weight vector.
- Why it is useful: a large network has a huge VC dimension, but if stays close to the prior (small KL), the bound is still small. Good priors and flat posteriors give non-vacuous bounds, which is why PAC-Bayes is used for deep nets.
Common mistakes
- Choosing the prior after looking at the data. The proof needs to be fixed in advance.
- Mixing up the direction and .
- Forgetting that the bound is for the randomised (Gibbs) predictor.
- Dropping the factor in the KL of two unit-variance Gaussians.
How long your answer should be
Half a page; 5 minutes.
Last checked on 4 December 2026.
Read this
Previous in Learning theory: Three nested hypothesis classes have VC dimensions and the best training errors on examples are . Using the penalised bound with , which class does structural risk minimisation pick? Why is picking the lowest training error wrong?
Next in Learning theory: What is the empirical Rademacher complexity of a function class, and why does it measure capacity? What is it for (a) a class containing one function and (b) the class of all labellings of distinct points, and what generalisation bound does it give?