Skip to main content
QUICK REVIEW

[Paper Review] Morse Neural Networks for Uncertainty Quantification

Benoît Dherin, Huiyi Hu|arXiv (Cornell University)|Jul 2, 2023
Anomaly Detection Techniques and ApplicationsComputer Science3 citations
TL;DR

This paper introduces Morse neural networks, a deep generative model that generalizes unnormalized Gaussian densities by modeling modes as high-dimensional submanifolds, enabling unified uncertainty quantification. By minimizing a KL-divergence loss on feature embeddings, it simultaneously provides OOD detection, calibrated uncertainty, generative sampling, and distance-aware classification—achieving 0.969 AUROC on CIFAR-100 OOD detection with supervised fine-tuning.

ABSTRACT

We introduce a new deep generative model useful for uncertainty quantification: the Morse neural network, which generalizes the unnormalized Gaussian densities to have modes of high-dimensional submanifolds instead of just discrete points. Fitting the Morse neural network via a KL-divergence loss yields 1) a (unnormalized) generative density, 2) an OOD detector, 3) a calibration temperature, 4) a generative sampler, along with in the supervised case 5) a distance aware-classifier. The Morse network can be used on top of a pre-trained network to bring distance-aware calibration w.r.t the training data. Because of its versatility, the Morse neural networks unifies many techniques: e.g., the Entropic Out-of-Distribution Detector of (Macêdo et al., 2021) in OOD detection, the one class Deep Support Vector Description method of (Ruff et al., 2018) in anomaly detection, or the Contrastive One Class classifier in continuous learning (Sun et al., 2021). The Morse neural network has connections to support vector machines, kernel methods, and Morse theory in topology.

Motivation & Objective

  • To address the critical challenge of uncertainty quantification in deep learning, especially for out-of-distribution (OOD) inputs.
  • To unify disparate techniques in OOD detection, anomaly detection, and calibrated classification under a single deep generative framework.
  • To enable distance-aware classification by modeling data modes as submanifolds rather than discrete points.
  • To provide a flexible, end-to-end method that can be applied on top of pre-trained networks for improved uncertainty estimation.

Proposed method

  • The Morse neural network models an unnormalized density μ(x) = K(φθ(x), a) using kernel similarity between deep features φθ(x) and a fixed reference point a in the feature space.
  • In the unsupervised case, the model is trained via KL divergence minimization between the empirical data distribution and the kernel-based density, with a regularization term from uniformly sampled points.
  • For supervised learning, the joint density μ(x,y) = K(φθ(x), y) is modeled using one-hot-encoded labels, enabling joint density estimation and distance-aware classification.
  • The model uses kernel functions such as Gaussian, Cauchy, and Laplace to control the shape of the density and its relation to uncertainty and OOD detection.
  • The classifier is derived as μ(y|x) = K(φθ(x), y) / ∑y′ K(φθ(x), y′), which matches the entropy-based OOD detector when using a Laplace kernel.
  • Generative sampling is enabled via gradient flows from random initial points, inspired by Poisson generative models.
Figure 1: Top row (distance-aware calibration): Left: Probability output of a ResNet trained to separate the noisy two-moons dataset. Middle and Right: Probability plots of the same ResNet but with its logits calibrated using the unsupervised Gaussian Morse temperature at decreasing kernel bandwidth
Figure 1: Top row (distance-aware calibration): Left: Probability output of a ResNet trained to separate the noisy two-moons dataset. Middle and Right: Probability plots of the same ResNet but with its logits calibrated using the unsupervised Gaussian Morse temperature at decreasing kernel bandwidth

Experimental results

Research questions

  • RQ1Can a single deep generative model unify OOD detection, uncertainty calibration, and generative sampling?
  • RQ2How does modeling modes as submanifolds improve uncertainty quantification compared to point-mode densities?
  • RQ3Can the Morse network be used to enhance uncertainty estimation in pre-trained models without retraining the backbone?
  • RQ4Does the supervised Morse network achieve better OOD detection than unsupervised variants?
  • RQ5What is the relationship between the Morse network and existing methods like SVDD, SNGP, and entropic OOD detectors?

Key findings

  • The supervised Morse network improved AUROC on CIFAR-100 OOD detection from 0.955 (unsupervised) to 0.969, demonstrating enhanced generalization.
  • The Morse network with a Laplace kernel reproduces the entropy-based OOD classifier from Macêdo et al. (2021), validating its design choice.
  • With a Cauchy kernel, the model recovers a temperature parameter analogous to SNGP, but with learned variance instead of matrix inversion.
  • The unsupervised Morse network with a Gaussian kernel reduces to the one-class Deep SVDD objective, confirming its theoretical grounding.
  • The model enables distance-aware classification by construction, where uncertainty increases with distance from training data modes.
  • Visualizations show the supervised Morse network better captures disconnected mode submanifolds than the unsupervised version.
Figure 2: Supervised Morse model: The supervised Morse model is able to learn disconnected mode submanifolds for each of the labels. The model architecture and training setup is the same as the unsupervised case described above, except for the output layer that has a dimension of 2 (one dimension pe
Figure 2: Supervised Morse model: The supervised Morse model is able to learn disconnected mode submanifolds for each of the labels. The model architecture and training setup is the same as the unsupervised case described above, except for the output layer that has a dimension of 2 (one dimension pe

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.