[Paper Review] Efficient variational Bayesian neural network ensembles for outlier detection
This paper proposes an efficient variational Bayesian neural network ensemble method for outlier detection by using stochastic gradient Langevin dynamics (SGLD) to sample weights during training, enabling online estimation of a variational posterior with minimal memory. The method achieves comparable outlier detection performance to Dropout-MC and outperforms it in standard classification, though it does not improve with larger ensemble sizes due to low-weight variance in the variational approximation.
In this work we perform outlier detection using ensembles of neural networks obtained by variational approximation of the posterior in a Bayesian neural network setting. The variational parameters are obtained by sampling from the true posterior by gradient descent. We show our outlier detection results are comparable to those obtained using other efficient ensembling methods.
Motivation & Objective
- To develop a memory-efficient method for creating Bayesian neural network ensembles suitable for outlier detection.
- To enable online estimation of the posterior distribution over network weights during training without storing all samples.
- To achieve competitive uncertainty estimation and outlier detection performance using only a single network training run.
- To compare the method’s performance against established ensembling techniques like Dropout-MC and standard ensembles.
- To demonstrate that the approach maintains low computational and memory costs while supporting uncertainty quantification.
Proposed method
- The method uses stochastic gradient Langevin dynamics (SGLD) to generate weight samples along the training trajectory, treating them as draws from the unnormalized posterior.
- It applies Welford’s incremental algorithm to compute the mean and variance of the weight samples in real time, enabling online estimation of the variational posterior parameters.
- The variational approximation is a diagonal Gaussian distribution over network weights, with parameters updated incrementally using unbiased Monte Carlo estimates.
- At test time, multiple networks are sampled from the learned variational posterior to form an ensemble for prediction and uncertainty estimation.
- Outlier detection is performed using disagreement—defined as the sum of KL divergences between each ensemble member’s prediction and the ensemble average—thresholded using training-set statistics.
- The method is compatible with adaptive optimizers like Adam by injecting noise scaled to the adaptive learning rate, enabling practical training with standard optimizers.
Experimental results
Research questions
- RQ1Can we build a Bayesian neural network ensemble with low memory and computational overhead by using online weight sampling during training?
- RQ2How does the performance of the proposed method compare to Dropout-MC and standard ensembles in terms of classification accuracy and outlier detection?
- RQ3Does the variational approximation derived from SGLD samples yield sufficient uncertainty estimates for effective outlier detection?
- RQ4Why does the method’s performance not improve with increasing ensemble size, despite being able to sample more networks?
- RQ5Can the method be effectively combined with adaptive optimizers like Adam while preserving sampling validity?
Key findings
- The proposed method achieves a classification accuracy of 76.1% on MNIST with 10 ensemble components, outperforming Dropout-MC (72.9%) but falling short of standard ensembles (87.0%).
- Outlier detection recall is high across all methods, but precision is low for both the proposed method and Dropout-MC, indicating high false positive rates.
- The disagreement scores for the proposed method are on the order of 10^-3 to 10^-2, significantly lower than Dropout-MC (10^-1 to 10^0), indicating a tight variational approximation with low weight variance.
- The method does not improve with larger ensemble sizes, as the variational posterior remains tightly concentrated, limiting diversity in predictions.
- The method performs slightly worse than Dropout-MC in outlier detection precision but better in standard classification accuracy, suggesting a trade-off between uncertainty calibration and predictive performance.
- Additional experiments with Adam-based SGLD approximation show consistent results, validating the method’s adaptability to standard training pipelines.
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.