Abstract
Standard neural network regression typically assumes a Gaussian likelihood, which can lead to catastrophic failures and overconfident uncertainty estimates when data is multi-modal. This paper investigates the impact of model misspecification on aleatoric and epistemic uncertainty. We demonstrate that while standard Gaussian models fail to capture complex data distributions, Flow-based models (Normalizing Flows) provide a flexible alternative that accurately represents multi-modality and improves probabilistic fit in both synthetic and real-world tasks, such as autonomous driving steering prediction.
Introduction
In deep learning, classification is relatively robust because the standard softmax output can represent any categorical distribution. Regression, however, is more restrictive. Most practitioners default to Mean Squared Error (MSE) loss, which implicitly assumes the underlying data follows a Gaussian distribution with fixed variance.
This assumption fails in scenarios where data is multi-modal. Consider a self-driving car approaching a fork in the road: the "correct" steering angle could be +30 degrees or -30 degrees. A standard MSE model will predict the average—0 degrees—effectively driving the car into the barrier. This paper explores how such model misspecification corrupts estimates of aleatoric uncertainty (inherent data noise) and epistemic uncertainty (model ignorance).
Methods
The researchers compared three primary modeling choices for regression, as illustrated in the architecture diagram below:
- GLc (Gaussian Likelihood, constant): The standard approach (equivalent to MSE) where the network predicts a mean, and variance is a fixed constant.
- GL (Gaussian Likelihood, input-dependent): The network predicts both a mean and a variance that changes based on the input.
- FL (Flow-based): Using Normalizing Flows (Neural Spline Flows) to transform a simple distribution into a complex one through invertible mappings. This allows the network to represent multi-modal or skewed distributions without assuming a specific shape.
To study epistemic uncertainty, the authors also applied a Bayesian treatment (Bayesian Neural Networks via Bayes-by-Backprop) to these models to determine if probabilistic weights could compensate for a fundamentally incorrect likelihood model.
Key Insights: The Pitfalls of Misspecification
The "Average" Trap and Aleatoric Blindness
When faced with bimodal data, a standard (GLc) model predicts the mean of the two modes. This results in a prediction in a region where the probability of a real data point is zero. Even when allowing variance to vary (GL), the model simply sees a "wide" Gaussian rather than two distinct sharp peaks, failing to capture the true aleatoric uncertainty.
The Epistemic Illusion
Crucially, a Bayesian treatment does not save a misspecified model. In-distribution, the epistemic uncertainty can actually vanish. The model becomes "certain" about its "wrong" parameters because it has found the best possible (but still incorrect) fit within its restricted hypothesis class. This creates a dangerous illusion of confidence in incorrect predictions.
Key Results
- Better Likelihoods: In a 2D bimodal task, the Flow-based model (FL) achieved a significantly lower Negative Log-Likelihood (NLL) of 7.97 compared to 8.46 for the standard Gaussian model.
- Steering Accuracy: On the Udacity Self-Driving Car dataset, the FL model outperformed others in NLL (-2.91 vs -2.00 for GLc), providing a superior probabilistic fit for real-world driving data where lane splits create multi-modality.
- Qualitative Success: Visualizations show that while Gaussian models produce "blobs" covering empty space between modes, the FL model accurately traces the distinct branches of the data distribution.
Conclusion and Limitations
Normalizing Flows act as the "Softmax of Regression," providing the flexibility needed to capture complex correlations and multi-modality. However, they come with trade-offs: they are computationally more expensive and require more data to accurately map complex shapes. Furthermore, while Flows excel in-distribution, their behavior on Out-of-Distribution (OOD) data remains arbitrary, requiring further research to ensure robust OOD detection in regression tasks.
Summary updated