[Paper Review] Repulsive Deep Ensembles are Bayesian
This paper proposes repulsive deep ensembles that use kernelized repulsion in weight or function space to enforce diversity among ensemble members, transforming maximum a posteriori (MAP) inference into proper Bayesian inference via Wasserstein gradient flow of the KL divergence. The method achieves improved uncertainty estimation and OOD detection, approaching the true Bayesian posterior more closely than standard ensembles or SVGD.
Deep ensembles have recently gained popularity in the deep learning community for their conceptual simplicity and efficiency. However, maintaining functional diversity between ensemble members that are independently trained with gradient descent is challenging. This can lead to pathologies when adding more ensemble members, such as a saturation of the ensemble performance, which converges to the performance of a single model. Moreover, this does not only affect the quality of its predictions, but even more so the uncertainty estimates of the ensemble, and thus its performance on out-of-distribution data. We hypothesize that this limitation can be overcome by discouraging different ensemble members from collapsing to the same function. To this end, we introduce a kernelized repulsive term in the update rule of the deep ensembles. We show that this simple modification not only enforces and maintains diversity among the members but, even more importantly, transforms the maximum a posteriori inference into proper Bayesian inference. Namely, we show that the training dynamics of our proposed repulsive ensembles follow a Wasserstein gradient flow of the KL divergence with the true posterior. We study repulsive terms in weight and function space and empirically compare their performance to standard ensembles and Bayesian baselines on synthetic and real-world prediction tasks.
Motivation & Objective
- To address the lack of diversity and convergence guarantees in standard deep ensembles, which often collapse to similar functions and fail to approximate the true Bayesian posterior.
- To overcome the non-identifiability problem in Bayesian neural networks, where different weights map to equivalent functions, wasting computational resources.
- To endow deep ensembles with Bayesian convergence properties by introducing repulsive forces inspired by Stein Variational Gradient Descent (SVGD).
- To compare the performance of repulsive ensembles in both weight space and function space, particularly in terms of predictive uncertainty and out-of-distribution detection.
- To theoretically justify the method as a Wasserstein gradient flow of the KL divergence, providing a principled Bayesian interpretation for deep ensembles.
Proposed method
- Introduce a kernelized repulsive term in the gradient update rule of deep ensembles to discourage model collapse and enforce functional diversity.
- Formulate the training dynamics as a Wasserstein gradient flow of the KL divergence to the true posterior, enabling convergence to the Bayesian posterior.
- Implement repulsion in both weight space (WGD) and function space (fWGD) using the SGE (Semi-Parametric Gaussian Process) approximation for functional outputs.
- Use a kernel function to compute repulsive forces between ensemble members, with the force magnitude depending on the distance in parameter or function space.
- Apply the method to both synthetic and real-world tasks, including 1D regression and CIFAR-10 classification with SVHN as OOD data.
- Compare the proposed method to standard deep ensembles, SVGD, and Bayesian baselines using metrics like accuracy, entropy, and uncertainty calibration.
Experimental results
Research questions
- RQ1Can introducing repulsive forces between ensemble members improve functional diversity and prevent collapse in deep ensembles?
- RQ2Does the repulsive training dynamics of deep ensembles correspond to a Wasserstein gradient flow of the KL divergence to the true posterior?
- RQ3How does function-space repulsion compare to weight-space repulsion in terms of uncertainty estimation and OOD detection?
- RQ4Can repulsive ensembles achieve better uncertainty calibration and generalization than standard deep ensembles and SVGD?
- RQ5To what extent does the method mitigate the non-identifiability problem in Bayesian neural networks?
Key findings
- The proposed repulsive ensembles achieve significantly improved uncertainty estimation on 1D regression tasks, with function-space methods (fWGD) closely approximating the HMC posterior.
- On CIFAR-10, the weight-space repulsive ensembles (sge-WGD, ssge-WGD) outperform standard deep ensembles and SVGD in OOD detection using entropy, achieving 85.792% accuracy and 0.051 uncertainty score.
- Function-space repulsive ensembles (kde-fWGD, sge-fWGD) achieve better uncertainty calibration than weight-space counterparts, with 0.282 and 0.288 uncertainty scores respectively.
- The sge-WGD variant achieves the best OOD detection performance among all methods on CIFAR-10, with a 0.051 uncertainty score and 85.792% accuracy.
- Repulsive ensembles in function space show superior performance in capturing in-between uncertainty, especially in regions with limited data, outperforming standard ensembles and weight-space methods.
- Theoretical analysis confirms that the method follows a Wasserstein gradient flow of the KL divergence, providing a principled Bayesian interpretation for deep ensembles.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.