Stability-based Generalization Bounds for Variational Inference
Yadi Wei, Roni Khardon
TL;DR
This paper develops Bayes-stability-based generalization bounds for iterative approximate Bayesian algorithms, including variational inference (VI), when optimized with stochastic gradient descent. It introduces two bound families: TV-based for bounded losses and Wasserstein-based for Lipschitz losses, both reducible to expected parameter differences and expressible as sums of gradient-difference terms along the optimization trajectory. The authors provide a detailed comparison to PAC-Bayes bounds, showing cases where stability-based bounds can be tighter and more data-dependent, and they offer empirical demonstrations on CIFAR-10 with ELBO and DLM that yield non-vacuous bounds and explain performance differences due to data augmentation and algorithm choice. The work highlights a practical pathway to assess and compare generalization in Bayesian neural setups and suggests extensions to broader iterative Bayesian algorithms beyond VI, with limitations mainly tied to SGD-centric analysis. Overall, the approach complements PAC-Bayes analyses and enhances understanding of when approximate Bayesian methods generalize well in deep learning contexts.
Abstract
Variational inference (VI) is widely used for approximate inference in Bayesian machine learning. In addition to this practical success, generalization bounds for variational inference and related algorithms have been developed, mostly through the connection to PAC-Bayes analysis. A second line of work has provided algorithm-specific generalization bounds through stability arguments or using mutual information bounds, and has shown that the bounds are tight in practice, but unfortunately these bounds do not directly apply to approximate Bayesian algorithms. This paper fills this gap by developing algorithm-specific stability based generalization bounds for a class of approximate Bayesian algorithms that includes VI, specifically when using stochastic gradient descent to optimize their objective. As in the non-Bayesian case, the generalization error is bounded by by expected parameter differences on a perturbed dataset. The new approach complements PAC-Bayes analysis and can provide tighter bounds in some cases. An experimental illustration shows that the new approach yields non-vacuous bounds on modern neural network architectures and datasets and that it can shed light on performance differences between variant approximate Bayesian algorithms.
