Abstract
Deep neural networks are notoriously overconfident, posing significant risks in safety-critical applications such as medicine and autonomous driving. This paper introduces Parameter Ensembling by Perturbation (PEP), a computationally efficient method that creates an ensemble by adding optimized Gaussian noise to the weights of a single pre-trained model. PEP improves both probability calibration and classification accuracy without requiring expensive retraining or architectural changes, making it highly accessible for large-scale, out-of-the-box models.
Introduction
Modern deep neural networks often suffer from poor calibration, meaning their predicted confidence levels do not align with their actual accuracy. Current solutions generally fall into three categories: post-processing (e.g., Temperature Scaling), Bayesian approximations (e.g., Monte Carlo Dropout), or heavy-duty ensembling (e.g., Deep Ensembles). While Deep Ensembles provide state-of-the-art results, they are computationally prohibitive. PEP addresses this gap by offering the robust uncertainty estimation and accuracy boosts of ensembling while requiring only a single pre-trained network.
Methodology
PEP acts as a minimalist Laplace approximation through a simple four-step process:
- Pre-trained Baseline: Start with a model already trained to its optimal weights ($\theta^*$).
- Gaussian Perturbation: Generate an ensemble of $m$ models by sampling weights from an isotropic Gaussian distribution centered at $ heta^*$, governed by a variance parameter $\sigma^2$.
- Variance Optimization: Use a small validation set to find the optimal $\sigma$ that maximizes the log-likelihood of the ensemble's average predictions.
- Inference: At test time, average the predictions of the $m$ perturbed models.
Unlike Monte Carlo Dropout, PEP requires no specific layers (like dropout). Unlike Deep Ensembles, it avoids the massive cost of training multiple models from scratch.
The "Increase to Peak" Phenomenon
A core discovery of this work is that adding noise to optimized weights does not immediately degrade performance. Instead, as the variance $\sigma$ increases from zero, the validation log-likelihood typically rises to a well-defined peak before eventually declining. This suggests that the weights optimized for a training set are not strictly optimal for generalization, and PEP serves as a probe for overfitting.
Experimental Results
The authors evaluated PEP across various architectures (DenseNet, ResNet, Inception, VGG) and datasets (ImageNet, CIFAR, MNIST).
Key Findings:
- Improved Calibration: On ImageNet, PEP achieved significant improvements in Negative Log-Likelihood (NLL) and Brier scores compared to both the baseline and Temperature Scaling.
- Accuracy Gains: Unlike post-processing methods, PEP improves classification accuracy. For instance, applying PEP to a pre-trained DenseNet169 reduced its Top-1 error from 25.31% to 23.74%.
- Out-of-Distribution (OOD) Detection: In CIFAR-10 experiments, PEP enhanced the network's ability to distinguish between in-distribution and OOD samples, increasing the Kullback–Leibler divergence from 0.47 to 0.72.
Discussion and Limitations
While PEP offers a massive computational discount during training compared to Deep Ensembles, it does introduce additional costs during inference, as the model must be run $m$ times (typically 5-10) to generate a single prediction. Furthermore, while PEP significantly outperforms standard baselines, it does not quite reach the absolute performance ceiling of full Deep Ensembles. Future work may explore non-Gaussian perturbation distributions and the interaction of PEP with more diverse modern architectures.
Summary updated