Understanding Pathologies of Deep Heteroskedastic Regression

Eliot Wong-Toi, Alex Boyd, Vincent Fortuin, Stephan Mandt · DOI

Abstract

Deep learning models for heteroskedastic regression—predicting both mean and variance—often exhibit unstable behavior, characterized by either ignoring data or over-claiming certainty. This work introduces a statistical field theory framework to analyze these "pathologies" as distinct physical phases. By mapping the regularization hyperparameter space, we identify a stable region (the "S" phase) and propose a computationally efficient 1D search strategy that significantly improves model calibration and performance across diverse datasets, from UCI benchmarks to large-scale climate modeling.

Introduction

In standard regression, models typically predict a single point estimate (the mean). Heteroskedastic regression extends this by also predicting the input-dependent noise or uncertainty (the variance). This capability is vital for safety-critical applications like autonomous driving or climate forecasting, where quantifying uncertainty is as important as the prediction itself.

However, overparameterized deep neural networks (DNNs) in this setting are notoriously prone to "pathologies." They often collapse into two extremes:

  1. Mean Overfitting: The model fits training data perfectly, implying zero noise (infinite precision) and failing to generalize.
  2. Variance Overfitting: The model attributes all data variation to random noise, resulting in a flat, uninformative mean prediction.

This paper provides a theoretical foundation using statistical field theory to explain why these failures occur and how to systematically avoid them.

A Statistical Field Theory Approach

To analyze these behaviors, the authors bridge deep learning and physics by treating the mean ($\mu$) and precision ($\Lambda$) as continuous "fields" rather than discrete network weights.

Dirichlet Energy Regularization

Instead of standard $L_2$ weight decay, the framework employs a penalty on the complexity of the predicted functions, specifically the gradients of the fields. This approach, known as Dirichlet energy regularization, makes the analysis independent of specific neural network architectures.

The Phase Diagram

The researchers reparameterized the regularization space into two variables:

  • $\rho$: Controls the overall balance between data fitting and regularization.
  • $\gamma$: Controls the relative balance between mean and variance regularization.

By varying these parameters, they mapped the model's behavior into a 2D phase diagram, revealing that transitions between "good" and "pathological" states are abrupt, akin to phase transitions in physics.

The phase diagram in $(\rho, \gamma)$ space illustrates five distinct regions: $U_I$ and $U_{II}$ (underfit), $O_I$ and $O_{II}$ (overfit), and $S$ (the stable, well-calibrated region).

Mapping the Pathologies

As shown in the phase diagram, the model's behavior is highly sensitive to the choice of $(\rho, \gamma)$.

  • Regions $U_I, U_{II}$: The model is dominated by regularization, leading to "flat" solutions that ignore data features.
  • Regions $O_I, O_{II}$: The model overfits, either by chasing every data point ($O_I$) or by collapsing the variance to zero ($O_{II}$).
  • Region $S$: This is the "sweet spot" where the model captures the underlying data distribution and noise accurately.

A key insight is that the model's local complexity is naturally weighted by data density; it allows for more detail where data is abundant and enforces smoothness where data is sparse.

Experimental Results

The theory was validated across simulated data, UCI benchmarks (Concrete, Housing, Yacht, Power), and the large-scale ClimSim dataset (Solar Flux).

The 1D Search Shortcut

The most practical contribution is the discovery that the optimal "S" region consistently lies along a diagonal path defined by $\rho = 1 - \gamma$. This reduces the hyperparameter tuning complexity from a 2D grid search ($O(N^2)$) to a 1D line search ($O(N)$), drastically improving efficiency without sacrificing performance.

Performance Comparison

The proposed method significantly outperformed the standard $\beta$-NLL baseline, particularly in variance calibration. On the Concrete dataset, the mean MSE was reduced from 14.99 to 0.11. On the massive ClimSim dataset (100M points), it achieved superior results in both mean and variance prediction.

Quantitative comparison of the proposed method against the $\beta$-NLL baseline across multiple datasets.

Conclusion and Future Work

By treating deep regression through the lens of field theory, this work transforms hyperparameter tuning from a "black art" into a structured physical mapping. While currently limited to regression and aleatoric uncertainty, the framework provides a robust path forward for stabilizing deep uncertainty quantification. Future research aims to extend this to classification tasks and incorporate epistemic (model) uncertainty through stochastic partial differential equations.

Summary updated

BibTeX
@inproceedings{wongtoi2024understanding,
  author = {Eliot Wong-Toi and Alex Boyd and Vincent Fortuin and Stephan Mandt},
  title = {{Understanding Pathologies of Deep Heteroskedastic Regression}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=n5faLvrsA0},
}
Figure