Learning Active Subspaces for Effective and Scalable Uncertainty Quantification in Deep Neural Networks

Sanket R. Jantre, Nathan M. Urban, Xiaoning Qian, Byung-Jun Yoon

TL;DR

This paper tackles the computational bottleneck of Bayesian deep learning by introducing "active subspaces" to drastically reduce the dimensionality of neural network parameters. This allows for more efficient and scalable uncertainty quantification, leading to more reliable predictions, especially in critical applications.

What Problem Does This Paper Address?

Deep neural networks (NNs) are powerful function approximators, but their sheer number of parameters (overparameterization) makes them computationally expensive and prone to overfitting. Bayesian deep learning offers a principled way to quantify uncertainty in predictions, crucial for high-stakes decision-making. However, applying Bayesian inference to NNs is computationally intractable due to the extremely high dimensionality of their parameter space. Existing approximation methods, like variational inference, can limit the expressiveness of the inferred posterior, degrading uncertainty estimates. This paper aims to bridge this gap by making Bayesian inference in NNs more efficient and scalable without sacrificing prediction quality.

Methods

The core innovation is the use of active subspace methods, originally developed for computer model uncertainty quantification, to reduce the dimensionality of the NN parameter space. The authors propose two variants:

  • Output-Informed Active Subspace (AS): This method identifies parameter directions that most influence the NN's output (e.g., the predicted mean). It leverages the gradient of the output with respect to the parameters.
  • Likelihood-Informed Active Subspace (LIS): This method focuses on parameter directions that most influence the likelihood function (specifically, the mean squared error loss, which is equivalent to the negative log-likelihood of a Gaussian distribution).

Both methods work by computing the covariance matrix of the gradients of a chosen function (output or likelihood) with respect to the NN parameters. An eigendecomposition of this matrix reveals the directions of greatest influence. The authors then perform Bayesian inference (either Monte Carlo sampling or variational inference) only on these low-dimensional "active" subspace parameters, projecting them back to the full parameter space for predictions. This significantly reduces the computational burden.

Datasets

The paper evaluates its methods on:

  • Synthetic regression tasks: Used for qualitative assessment of uncertainty estimates, with varying noise levels and data sample sizes.
  • UCI regression datasets: Standard benchmarks for evaluating regression models. The authors use a consistent setup (single hidden layer NN with 50 neurons and ReLU activation) across all models for fair comparison.

Key Insights and Ideas

  • Dimensionality Reduction is Key: The paper strongly suggests that the high dimensionality of NN parameter space is the primary culprit for the intractability of Bayesian inference. By identifying and focusing on the "active" dimensions, significant computational gains are achievable.
  • Active Subspaces Capture Variability: The AS and LIS methods effectively capture the variability in the NN output, leading to uncertainty estimates that are comparable to full Bayesian NNs.
  • SGD-PCA Limitations: The paper highlights that a competing subspace method, SGD-PCA, tends to be overconfident and produces narrower uncertainty bands, indicating it doesn't capture the full uncertainty as effectively.
  • Scalability for Complex Models: The proposed methods offer a path to applying Bayesian inference to larger, more complex neural networks where full Bayesian treatment is currently infeasible.

Key Results

  • Improved Uncertainty Quantification: In synthetic experiments, the AS and LIS models produced uncertainty estimates that closely matched those of a full Bayesian NN, outperforming the SGD-PCA baseline.
  • Competitive Performance on UCI Datasets: On UCI regression tasks, the AS and LIS models, when trained with variational inference, achieved performance comparable to deterministic NNs and full Bayesian NNs in terms of log-likelihood, RMSE, and calibration. They generally outperformed the SGD-PCA method in log-likelihood and RMSE.
  • Calibration: The AS and LIS methods demonstrated good calibration, meaning their predicted credible intervals accurately reflected the true uncertainty.

Limitations and Future Work

  • Subspace Dimension Selection: The paper mentions selecting the active subspace dimension (K) and using a fixed number of gradient samples (M) for subspace construction. The optimal choice of these hyperparameters might require further investigation.
  • Computational Cost of Subspace Construction: While inference is faster, the initial construction of the active subspace still involves computing gradients, which can be computationally intensive for very large networks.
  • Future Work: The authors suggest their approach could be beneficial for hybrid simulations that combine physics-based models with machine learning, especially when these simulations are computationally expensive and require sampling over small ensemble sizes. This implies potential applications in scientific computing and engineering.

Summary updated

BibTeX
@inproceedings{jantre2024learning,
  author = {Sanket R. Jantre and Nathan M. Urban and Xiaoning Qian and Byung-Jun Yoon},
  title = {{Learning Active Subspaces for Effective and Scalable Uncertainty Quantification in Deep Neural Networks}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  doi = {10.1109/icassp48485.2024.10448265},
}

Loading related content...

Figure