Skip to main content
QUICK REVIEW

[Paper Review] Likelihood Ratios for Out-of-Distribution Detection

Jie Ren, Peter J. Liu|arXiv (Cornell University)|Jun 7, 2019
Generative Adversarial Networks and Image SynthesisComputer Science49 references8 citations
TL;DR

This paper proposes a likelihood ratio method to improve out-of-distribution (OOD) detection in deep generative models by correcting for confounding background statistics that distort raw likelihood scores. The method significantly outperforms baseline likelihood-based approaches on both genomic and image datasets, achieving state-of-the-art OOD detection performance by leveraging a background model to isolate in-distribution-specific features.

ABSTRACT

Discriminative neural networks offer little or no performance guarantees when deployed on data not generated by the same process as the training distribution. On such out-of-distribution (OOD) inputs, the prediction may not only be erroneous, but confidently so, limiting the safe deployment of classifiers in real-world applications. One such challenging application is bacteria identification based on genomic sequences, which holds the promise of early detection of diseases, but requires a model that can output low confidence predictions on OOD genomic sequences from new bacteria that were not present in the training data. We introduce a genomics dataset for OOD detection that allows other researchers to benchmark progress on this important problem. We investigate deep generative model based approaches for OOD detection and observe that the likelihood score is heavily affected by population level background statistics. We propose a likelihood ratio method for deep generative models which effectively corrects for these confounding background statistics. We benchmark the OOD detection performance of the proposed method against existing approaches on the genomics dataset and show that our method achieves state-of-the-art performance. We demonstrate the generality of the proposed method by showing that it significantly improves OOD detection when applied to deep generative models of images.

Motivation & Objective

  • To address the critical challenge of reliable OOD detection in real-world machine learning deployments, especially in medical genomics where models face unseen bacterial sequences.
  • To investigate why raw likelihood scores from deep generative models fail for OOD detection, particularly due to confounding by population-level background statistics.
  • To develop a generalizable method that improves OOD detection by correcting for these background statistics without requiring retraining.
  • To create and release a realistic genomic OOD benchmark dataset to enable reproducible evaluation of OOD detection methods in a biologically relevant context.
  • To demonstrate the method's effectiveness across modalities by applying it successfully to both genomic sequences and image data.

Proposed method

  • Propose a likelihood ratio method that compares the likelihood of a sample under the in-distribution model to its likelihood under a background model capturing general population statistics.
  • Train a background model on all in-distribution and OOD classes combined to represent generic statistical patterns (e.g., nucleotide or pixel frequency distributions).
  • Compute the likelihood ratio as log p(x|in-distribution model) - log p(x|background model), which suppresses the influence of shared background features.
  • Use the likelihood ratio score as the OOD detection metric, where lower values indicate higher likelihood of being OOD.
  • Apply the method to both autoregressive and variational autoencoder-based generative models for both genomic and image data.
  • Tune hyperparameters such as model architecture, background model composition, and likelihood ratio thresholds using in-distribution validation data.

Experimental results

Research questions

  • RQ1Why do deep generative models assign higher likelihoods to OOD inputs than to in-distribution inputs, despite being trained only on in-distribution data?
  • RQ2To what extent do population-level background statistics—such as base composition in DNA or pixel intensity distributions in images—confound likelihood-based OOD detection?
  • RQ3Can a likelihood ratio approach that subtracts background statistics improve OOD detection performance compared to raw likelihood scores?
  • RQ4How does the proposed method generalize across different data modalities, such as genomic sequences and images?
  • RQ5What is the relationship between genetic distance (or data similarity) and OOD detection performance on the proposed benchmark?

Key findings

  • The likelihood ratio method significantly outperforms raw likelihood scores on OOD detection, achieving an AUROC of 0.904 on the Moorea OOD class in the genomics benchmark, compared to lower scores from baseline methods.
  • The method achieves state-of-the-art performance on the proposed genomic OOD detection benchmark, demonstrating superior robustness to unseen bacterial classes.
  • A strong positive correlation (Pearson r = 0.570) exists between genetic distance and AUROC for the likelihood ratio method, indicating that more dissimilar OOD classes are easier to detect.
  • The likelihood ratio method improves OOD detection performance on image datasets as well, showing its generalizability beyond genomics.
  • The method reduces the confounding effect of background statistics, which otherwise cause deep generative models to assign higher likelihoods to OOD inputs than to in-distribution inputs.
  • The ensemble-based classifier baseline achieved higher AUROC (0.910) on the Mucilaginibacter OOD class, but the likelihood ratio method outperformed it on several hard-to-detect classes, demonstrating its robustness.

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.