Skip to main content
QUICK REVIEW

[Paper Review] A Simple Approach to Improve Single-Model Deep Uncertainty via Distance-Awareness

Jeremiah Zhe Liu, Shreyas Padhy|arXiv (Cornell University)|May 1, 2022
Fault Detection and Control SystemsEngineering36 citations
TL;DR

The paper presents SNGP, a single-model approach that improves uncertainty estimates by adding distance-awareness to the output layer via a Gaussian process and by enforcing distance-preserving representations with spectral normalization.

ABSTRACT

Accurate uncertainty quantification is a major challenge in deep learning, as neural networks can make overconfident errors and assign high confidence predictions to out-of-distribution (OOD) inputs. The most popular approaches to estimate predictive uncertainty in deep learning are methods that combine predictions from multiple neural networks, such as Bayesian neural networks (BNNs) and deep ensembles. However their practicality in real-time, industrial-scale applications are limited due to the high memory and computational cost. Furthermore, ensembles and BNNs do not necessarily fix all the issues with the underlying member networks. In this work, we study principled approaches to improve uncertainty property of a single network, based on a single, deterministic representation. By formalizing the uncertainty quantification as a minimax learning problem, we first identify distance awareness, i.e., the model's ability to quantify the distance of a testing example from the training data, as a necessary condition for a DNN to achieve high-quality (i.e., minimax optimal) uncertainty estimation. We then propose Spectral-normalized Neural Gaussian Process (SNGP), a simple method that improves the distance-awareness ability of modern DNNs with two simple changes: (1) applying spectral normalization to hidden weights to enforce bi-Lipschitz smoothness in representations and (2) replacing the last output layer with a Gaussian process layer. On a suite of vision and language understanding benchmarks, SNGP outperforms other single-model approaches in prediction, calibration and out-of-domain detection. Furthermore, SNGP provides complementary benefits to popular techniques such as deep ensembles and data augmentation, making it a simple and scalable building block for probabilistic deep learning. Code is open-sourced at https://github.com/google/uncertainty-baselines

Motivation & Objective

  • Motivate the need for reliable uncertainty in deep learning for safety-sensitive applications.
  • Formalize uncertainty estimation as a minimax problem and identify distance awareness as a key necessary condition.
  • Introduce a simple, scalable method (SNGP) to instill distance-awareness in a deterministic DNN.
  • Demonstrate improved calibration and OOD detection across vision, language, and genomics tasks using SNGP.

Proposed method

  • Define distance awareness and show its necessity for minimax-optimal uncertainty estimation.
  • Replace the dense output layer with a Laplace-approximated Gaussian process layer using random Fourier features.
  • Apply spectral normalization to hidden layers to enforce bi-Lipschitz, distance-preserving representations.
  • Use Laplace approximation to obtain a closed-form, scalable GP posterior in the random-feature space.
  • Demonstrate compatibility and complementary benefits with existing uncertainty approaches and data augmentation.

Experimental results

Research questions

  • RQ1How can distance awareness be formalized and shown as necessary for high-quality uncertainty estimation?
  • RQ2Can a single deterministic model achieve competitive uncertainty by enforcing distance-aware representations and a GP output layer?
  • RQ3Does SNGP improve calibration and out-of-distribution detection across vision and language tasks?
  • RQ4How does SNGP interact with or complement ensemble methods and data augmentation?
  • RQ5Is the approach scalable to large-scale architectures and datasets?

Key findings

  • SNGP consistently improves calibration and out-of-domain detection over other single-model approaches on multiple benchmarks.
  • Spectral normalization improves distance preservation in hidden representations, aiding distance-awareness.
  • Replacing the output layer with a distance-aware Gaussian process yields uncertainty that increases with distance from training data.
  • A Laplace-approximated GP with random Fourier features enables scalable, end-to-end training with a deterministic DNN.
  • SNGP provides complementary benefits to ensembles and augmentation, enabling scalable probabilistic deep learning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.