Abstract
It is critical yet challenging for deep learning models to properly characterize uncertainty that is pervasive in real-world environments. Although a lot of efforts have been made, such as heteroscedastic neural networks (HNNs), little work has demonstrated satisfactory practicability due to the different levels of compromise on learning efficiency, quality of uncertainty estimates, and predictive performance. Moreover, existing HNNs typically fail to construct an explicit interaction between the prediction and its associated uncertainty. This paper aims to remedy these issues by developing SDE-HNN, a new heteroscedastic neural network equipped with stochastic differential equations (SDE) to characterize the interaction between the predictive mean and variance of HNNs for accurate and reliable regression.
Introduction
In high-stakes fields like autonomous driving or medical diagnosis, knowing the limits of a model's knowledge is as important as the prediction itself. Standard Deep Neural Networks (DNNs) are notoriously overconfident, often failing to provide reliable uncertainty estimates. Existing solutions like Heteroscedastic Neural Networks (HNNs) attempt to predict both a mean (the forecast) and a variance (the uncertainty) simultaneously. However, these models usually treat the mean and variance as independent outputs that only interact at the loss function. This lack of internal interaction contradicts real-world dynamics where noise often influences future states.
To address this, researchers from Tsinghua University and RealAI have developed SDE-HNN, a framework that embeds Stochastic Differential Equations (SDEs) directly into neural networks. By treating the interaction between a prediction and its uncertainty as a dynamic system, SDE-HNN achieves state-of-the-art accuracy and more reliable confidence intervals while maintaining computational efficiency.
Methodology
The core of SDE-HNN is modeling the hidden representations of data as a continuous-time dynamic system governed by an SDE: $$dz_t = f(z_t, \Theta_f) dt + g(z_t, \Theta_g) dB_t$$
In this formulation, the Drift ($f$) represents the deterministic evolution of the predictive mean, while the Diffusion ($g$) represents the stochastic evolution of the predictive variance. Because these components are part of the same differential equation, the uncertainty (diffusion) directly affects how the hidden state evolves over "time" (layers), creating a principled link between the forecast and the noise.
Key Innovations
- Theoretical Guarantees: The authors prove the existence and uniqueness of the solution for their neural SDE.
- Enhanced Numerical Solver: To address training instabilities caused by a "bias-variance tradeoff," the researchers developed a variant of the Euler-Maruyama solver. This variant uses a dropout-like mechanism to stabilize the diffusion network $g(\cdot)$.
- New Diagnostic Metrics: Two new metrics, CWCE (Confidence-Weighted Calibration Error) and R-CWCE, were introduced to better evaluate uncertainty calibration, particularly in regions with sparse data.
Experiments and Results
The model was evaluated on a 1D synthetic dataset and six large-scale real-world multivariate time-series datasets, including Metro-traffic, NYC Uber pickups, Stock prices, Electricity consumption, Solar power, and Traffic flow.
Predictive Performance and Calibration
SDE-HNN consistently outperformed strong baselines like Deep Ensembles, MC-Dropout, and Bayesian Neural Networks (BNNs). For instance, on the "Pickups" dataset, SDE-HNN achieved an RMSE of 340.33, significantly lower than the standard HNN (421.75). Furthermore, the model showed much lower CWCE scores, indicating that its predicted confidence intervals are far more representative of actual error.
Efficiency
Unlike Deep Ensembles, which require training multiple models, or BNNs, which involve complex posterior approximations, SDE-HNN provides superior results with a single model. It requires fewer parameters and less training time while maintaining high-quality uncertainty quantification.
Conclusion
SDE-HNN represents a significant step forward in integrating stochastic dynamics with deep learning. By treating uncertainty as a feature that shapes internal representations rather than just an output, the model achieves better calibration and accuracy. Future work includes extending this "plug-and-play" SDE-block to classification and object detection tasks, and exploring automated tuning for SDE hyperparameters like terminal time $T$ and step size $\Delta t$.
Summary updated