Skip to main content
QUICK REVIEW

[Paper Review] Stationary Activations for Uncertainty Calibration in Deep Learning

Lassi Meronen, Christabella Irwanto|arXiv (Cornell University)|Oct 19, 2020
Anomaly Detection Techniques and ApplicationsComputer Science50 references7 citations
TL;DR

This paper introduces Matérn activation functions—non-linear neural network activations derived from the Matérn kernel family in Gaussian processes. By linking these activations to GP priors in infinite-width networks, the method achieves improved uncertainty calibration, particularly for out-of-distribution (OOD) inputs, with Matérn-5/2 showing superior OOD uncertainty separation compared to standard ReLU and RBF activations.

ABSTRACT

We introduce a new family of non-linear neural network activation functions that mimic the properties induced by the widely-used Matérn family of kernels in Gaussian process (GP) models. This class spans a range of locally stationary models of various degrees of mean-square differentiability. We show an explicit link to the corresponding GP models in the case that the network consists of one infinitely wide hidden layer. In the limit of infinite smoothness the Matérn family results in the RBF kernel, and in this case we recover RBF activations. Matérn activation functions result in similar appealing properties to their counterparts in GP models, and we demonstrate that the local stationarity property together with limited mean-square differentiability shows both good performance and uncertainty calibration in Bayesian deep learning tasks. In particular, local stationarity helps calibrate out-of-distribution (OOD) uncertainty. We demonstrate these properties on classification and regression benchmarks and a radar emitter classification task.

Motivation & Objective

  • Address the lack of uncertainty calibration in deep neural networks, particularly for out-of-distribution (OOD) inputs.
  • Improve interpretability and reliability of Bayesian deep learning models by embedding prior knowledge through structured activation functions.
  • Bridge the gap between Gaussian process priors and neural network activations by deriving new activation functions from the Matérn kernel family.
  • Demonstrate that local stationarity and limited mean-square differentiability in activations lead to better OOD uncertainty estimation.
  • Provide a principled alternative to standard ReLU and RBF activations by grounding them in well-understood GP kernel properties.

Proposed method

  • Derive a new family of non-linear activation functions by reversing the kernel-activation mapping used in infinite-width neural networks.
  • Map Matérn kernel parameters (smoothness ν and lengthscale ℓ) directly to activation function parameters, ensuring correspondence with GP priors.
  • Establish an explicit equivalence between a single-layer, infinitely wide neural network with Matérn activations and a Matérn-processed GP.
  • Use Monte Carlo dropout for approximate Bayesian inference, enabling uncertainty quantification without complex variational inference.
  • Train standard feedforward networks with Matérn-ν/2 activations (ν = 1.5, 2.5, 4.5) and compare performance and uncertainty calibration against ReLU, RBF, ERF, and step activations.
  • Evaluate uncertainty via predictive variance histograms and visual inspection of high/low variance test samples across known and unknown classes.

Experimental results

Research questions

  • RQ1Can Matérn activation functions, derived from well-known GP kernels, improve uncertainty calibration in deep neural networks?
  • RQ2How does local stationarity in Matérn activations affect out-of-distribution (OOD) uncertainty estimation compared to standard ReLU or RBF activations?
  • RQ3Does limited mean-square differentiability in the activation function lead to better generalization and uncertainty quantification?
  • RQ4How does the choice of smoothness parameter ν in the Matérn family affect uncertainty calibration and model performance on OOD detection tasks?
  • RQ5Can the proposed activation functions achieve better separation between known and unknown class uncertainties than existing activation functions?

Key findings

  • Matérn-5/2 activations show significantly better separation between high uncertainty in known classes and low uncertainty in unknown classes on CIFAR-10 OOD benchmarks.
  • The Matérn-3/2 activation produces more intuitive uncertainty patterns, with high uncertainty on known-class inputs and low uncertainty on unknown-class inputs.
  • The exponential (Matérn-1/2) activation leads to poor OOD uncertainty separation, with consistently high variance across both known and unknown classes.
  • ReLU and step activations produce arbitrary uncertainty patterns, with high variance even on correctly classified unknown samples, indicating poor calibration.
  • ERF and RBF activations show moderate OOD uncertainty separation, but are outperformed by Matérn-5/2 and Matérn-3/2 in terms of intuitive and consistent uncertainty calibration.
  • The Matérn-5/2 activation achieves the best balance between performance and uncertainty calibration, with high confidence on known classes and high uncertainty on unknown classes.

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.