Skip to main content
QUICK REVIEW

[Paper Review] Out-of-Distribution Detection Using Neural Rendering Generative Models

Yujia Huang, Sihui Dai|arXiv (Cornell University)|Jul 10, 2019
Generative Adversarial Networks and Image SynthesisComputer Science18 references7 citations
TL;DR

This paper proposes using the joint likelihood of latent variables in Neural Rendering Models (NRM) for out-of-distribution (OoD) detection, unifying likelihood and reconstruction-based approaches. It demonstrates that NRM assigns consistently lower likelihood to OoD data with lower variance (e.g., SVHN when trained on CIFAR-10), outperforming traditional likelihood and reconstruction metrics, and is the first method to reliably detect such OoD samples with deep generative models.

ABSTRACT

Out-of-distribution (OoD) detection is a natural downstream task for deep generative models, due to their ability to learn the input probability distribution. There are mainly two classes of approaches for OoD detection using deep generative models, viz., based on likelihood measure and the reconstruction loss. However, both approaches are unable to carry out OoD detection effectively, especially when the OoD samples have smaller variance than the training samples. For instance, both flow based and VAE models assign higher likelihood to images from SVHN when trained on CIFAR-10 images. We use a recently proposed generative model known as neural rendering model (NRM) and derive metrics for OoD. We show that NRM unifies both approaches since it provides a likelihood estimate and also carries out reconstruction in each layer of the neural network. Among various measures, we found the joint likelihood of latent variables to be the most effective one for OoD detection. Our results show that when trained on CIFAR-10, lower likelihood (of latent variables) is assigned to SVHN images. Additionally, we show that this metric is consistent across other OoD datasets. To the best of our knowledge, this is the first work to show consistently lower likelihood for OoD data with smaller variance with deep generative models.

Motivation & Objective

  • To address the failure of traditional likelihood and reconstruction-based OoD detection when OoD samples have lower variance than in-distribution data.
  • To unify likelihood and reconstruction-based OoD detection into a single framework using Neural Rendering Models (NRM).
  • To identify a robust metric for OoD detection that is insensitive to pixel-level variance and captures image structure.
  • To demonstrate that the joint likelihood of optimized latent variables in NRM provides consistent separation between in-distribution and OoD data.

Proposed method

  • Utilizes Neural Rendering Models (NRM), which reverse the feed-forward process of a CNN and model image generation through structured latent variables with a prior distribution p(z|y).
  • Decomposes the observed likelihood p(x) into reconstruction loss and joint likelihood of latent variables, enabling multiple OoD detection metrics.
  • Focuses on the joint likelihood of optimized latent variables p({z*(ℓ)}ℓ=1:L | y*) as the primary OoD metric, which captures image structure better than pixel-level metrics.
  • Employs state-of-the-art CNN architectures (e.g., ResNet, DenseNet) within the NRM framework to improve representation learning and detection performance.
  • Evaluates multiple metrics—data likelihood p(x), reconstruction loss, and latent likelihood p(z)—and compares their OoD detection performance.
  • Uses histogram analysis of log-likelihood scores to visualize separation between in-distribution (CIFAR-10) and OoD (SVHN, CelebA) data.

Experimental results

Research questions

  • RQ1Can the joint likelihood of latent variables in NRM provide a more robust OoD detection metric than traditional likelihood or reconstruction loss?
  • RQ2Does the proposed metric effectively detect OoD samples with lower variance than the training distribution?
  • RQ3How does the joint likelihood of latent variables compare to other metrics in terms of separation between in-distribution and OoD data distributions?
  • RQ4Can the NRM framework unify likelihood-based and reconstruction-based OoD detection approaches?

Key findings

  • The joint likelihood of latent variables p({z*(ℓ)}ℓ=1:L | y*) consistently assigns lower likelihood to SVHN images when trained on CIFAR-10, even though SVHN has lower variance.
  • This metric shows meaningful separation between in-distribution and OoD data, with minimal overlap in the histogram peaks, unlike other metrics such as Glow’s likelihood.
  • The method is robust to unknown OoD distributions and does not require prior knowledge of OoD characteristics.
  • The joint likelihood metric captures image structure better than pixel-level likelihood or reconstruction loss, reducing sensitivity to variance differences.
  • The proposed metric is the first to reliably assign lower likelihood to OoD data with lower variance using deep generative models.

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.