[Paper Review] SDE-Net: Equipping Deep Neural Networks with Uncertainty Estimates
SDE-Net models neural network transformations as neural stochastic differential equations with a drift (predictive) and diffusion (uncertainty) component, enabling explicit separation of aleatoric and epistemic uncertainty and robust uncertainty-based tasks.
Uncertainty quantification is a fundamental yet unsolved problem for deep learning. The Bayesian framework provides a principled way of uncertainty estimation but is often not scalable to modern deep neural nets (DNNs) that have a large number of parameters. Non-Bayesian methods are simple to implement but often conflate different sources of uncertainties and require huge computing resources. We propose a new method for quantifying uncertainties of DNNs from a dynamical system perspective. The core of our method is to view DNN transformations as state evolution of a stochastic dynamical system and introduce a Brownian motion term for capturing epistemic uncertainty. Based on this perspective, we propose a neural stochastic differential equation model (SDE-Net) which consists of (1) a drift net that controls the system to fit the predictive function; and (2) a diffusion net that captures epistemic uncertainty. We theoretically analyze the existence and uniqueness of the solution to SDE-Net. Our experiments demonstrate that the SDE-Net model can outperform existing uncertainty estimation methods across a series of tasks where uncertainty plays a fundamental role.
Motivation & Objective
- Motivate uncertainty quantification for deep neural networks and address the limitations of Bayesian and non-Bayesian approaches.
- Propose a neural stochastic differential equation (SDE) model to quantify epistemic uncertainty via a diffusion term.
- Develop a drift net to fit predictive functions and a diffusion net to capture region-dependent uncertainty.
- Provide theoretical guarantees on existence/uniqueness and practical training schemes for SDE-Net.
- Demonstrate improved performance on tasks where uncertainty is fundamental: OOD detection, misclassification detection, adversarial detection, and active learning.
Proposed method
- Model neural network transformations as a stochastic dynamical system: dx_t = f(x_t,t;θ_f) dt + g(x_0;θ_g) dW_t.
- Use a drift net f to control predictive function and an auxiliary diffusion net g to model epistemic uncertainty.
- Train with an objective that combines task loss on in-distribution data and diffusion-based regularization using out-of-distribution (OOD) inputs.
- Share parameters across layers to reduce memory footprint and employ Euler–Maruyama discretization for training.
- Quantify uncertainty by sampling multiple realizations of the SDE to compute aleatoric and epistemic components.
- Provide a theoretical result ensuring existence/uniqueness of the SDE solution under Lipschitz conditions.
Experimental results
Research questions
- RQ1Can an SDE-based decomposition (drift for prediction and diffusion for uncertainty) yield reliable epistemic uncertainty estimates in DNNs?
- RQ2How does SDE-Net perform on OOD detection, misclassification detection, adversarial sample detection, and active learning compared to existing uncertainty methods?
- RQ3What are the theoretical guarantees for the proposed SDE formulation in terms of existence and uniqueness of solutions?
Key findings
- SDE-Net achieves strong OOD detection performance across classification tasks (MNIST, SVHN) and regression tasks, often outperforming baselines with fewer parameters.
- On classification OOD tasks, SDE-Net attains high AUROC and detection accuracy, outperforming Threshold, MC-dropout, DeepEnsemble, PN, BBP, and p-SGLD in several settings.
- For regression OOD, SDE-Net shows robust performance where other methods struggle, leveraging its diffusion component to signal uncertainty for unseen inputs.
- Misclassification detection: SDE-Net achieves competitive AUROC and AUPR for identifying misclassified samples, comparable to DeepEnsemble and surpassing several baselines.
- Adversarial sample detection: under FGSM and PGD attacks, SDE-Net maintains higher AUROC than most baselines, particularly on SVHN where high-dimensional data challenge other methods.
- Active learning: SDE-Net improves label efficiency, reducing regret in RMSE as more informative samples are acquired, outperforming BBP and p-SGLD and resisting overfitting tendencies observed with some baselines.
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.