Introduction
Regression Prior Networks (RPNs) extend the "Prior Network" framework from classification to regression by using the Normal-Wishart distribution to model uncertainty. This approach allows a single neural network to emulate the predictive performance and robust uncertainty estimates of a large ensemble, significantly reducing computational costs while providing interpretable measures of what the model knows—and what it doesn't.
The Challenge of Uncertainty in Regression
In high-stakes applications like self-driving cars or medical diagnosis, a model's "uncertainty" is just as important as its prediction. Standard neural networks are often overconfident, even when faced with data they’ve never seen before (Out-of-Distribution or OOD data).
Currently, the "gold standard" for uncertainty is Ensembling—training multiple models and looking at the variance in their predictions. However, ensembles are expensive to train and slow to run during inference. Prior Networks were previously proposed to solve this for classification by having a single model predict a distribution over distributions (using the Dirichlet distribution). But until now, there was no equivalent for regression tasks, where the output is a continuous value rather than a category.
Methodology: Regression Prior Networks (RPNs)
The key innovation of RPNs is the use of the Normal-Wishart distribution. In a standard regression model, the network might output a mean ($\mu$) and a precision ($\Lambda$) for a Normal distribution. An RPN goes one level higher: it predicts the parameters of a Normal-Wishart distribution, which acts as a "prior" over all possible Normal distributions.
This hierarchical modeling allows the model to distinguish between two types of uncertainty:
- Data Uncertainty: Inherent noise in the data (e.g., a blurry camera).
- Knowledge Uncertainty: The model’s lack of familiarity with the input (e.g., a car model trained on sunny California seeing snow for the first time).
Training Strategies
The paper proposes two ways to train these models:
- Reverse KL-Divergence (RKL): Training the model on both "in-domain" data and synthetic "out-of-distribution" data to explicitly teach it where to be uncertain.
- Ensemble Distribution Distillation ($EnD^2$): Taking a pre-trained ensemble (the "teacher") and distilling its collective wisdom into a single RPN (the "student"). They use a "temperature annealing" trick to help the student model learn the complex behavior of the ensemble gradually.
Experimental Evaluation
The authors evaluated RPNs across a diverse set of benchmarks, including synthetic 1D sine waves, UCI regression datasets, and large-scale computer vision tasks like monocular depth estimation (NYU Depth v2 and KITTI).
Key Insights
- Conjugate Priors: By choosing the Normal-Wishart distribution, the authors derived closed-form mathematical expressions for uncertainty, making the model's internal logic more transparent.
- Distillation vs. OOD Training: While RKL works, generating high-quality synthetic OOD data for complex tasks is difficult. The $EnD^2$ method allows the model to learn uncertainty boundaries directly from an ensemble without manually defined OOD data.
- Scale Invariance: Information-theoretic measures like Mutual Information are scale-invariant, making them more robust for tasks like depth estimation compared to variance-based measures.
Key Results
- Efficiency: RPNs trained via $EnD^2$ matched the accuracy (RMSE) and calibration (NLL) of a 10-model ensemble while being 10x faster at inference.
- OOD Detection: In depth estimation, RPNs significantly outperformed standard models and even some ensembles at identifying "alien" data (e.g., near-perfect AUC-ROC on KITTI).
- Calibration: RPNs showed more consistent Negative Log-Likelihood (NLL) scores than standard Gaussian models, indicating more trustworthy probability estimates.
Limitations and Future Directions
While promising, RPNs have limitations. The RKL method is sensitive to the quality of synthetic OOD data. Additionally, the Normal-Wishart distribution can be numerically unstable to implement; a "Normal-Inverse-Wishart" formulation might be more robust. Finally, the $EnD^2$ process requires a two-stage training approach, adding complexity compared to training a single standard model.
Summary updated