Skip to main content
QUICK REVIEW

[Paper Review] Out-of-distribution Detection via Frequency-regularized Generative Models

Mu Cai, Yixuan Li|arXiv (Cornell University)|Aug 18, 2022
Generative Adversarial Networks and Image SynthesisComputer Science6 citations
TL;DR

This paper proposes Frequency-Regularized Learning (FRL), a plug-and-play framework that enhances out-of-distribution (OOD) detection in deep generative models by incorporating high-frequency image components during training. By regularizing models to focus on semantic details rather than background textures, FRL improves OOD detection performance across VAE, GLOW, and PixelCNN++ architectures, achieving state-of-the-art AUROC on CelebA (10.7% improvement over Likelihood Regret) with 147× faster inference.

ABSTRACT

Modern deep generative models can assign high likelihood to inputs drawn from outside the training distribution, posing threats to models in open-world deployments. While much research attention has been placed on defining new test-time measures of OOD uncertainty, these methods do not fundamentally change how deep generative models are regularized and optimized in training. In particular, generative models are shown to overly rely on the background information to estimate the likelihood. To address the issue, we propose a novel frequency-regularized learning FRL framework for OOD detection, which incorporates high-frequency information into training and guides the model to focus on semantically relevant features. FRL effectively improves performance on a wide range of generative architectures, including variational auto-encoder, GLOW, and PixelCNN++. On a new large-scale evaluation task, FRL achieves the state-of-the-art performance, outperforming a strong baseline Likelihood Regret by 10.7% (AUROC) while achieving 147$ imes$ faster inference speed. Extensive ablations show that FRL improves the OOD detection performance while preserving the image generation quality. Code is available at https://github.com/mu-cai/FRL.

Motivation & Objective

  • To address the limitation of deep generative models assigning high likelihood to out-of-distribution (OOD) samples, especially due to overreliance on background features.
  • To improve OOD detection without altering test-time inference procedures, by fundamentally changing model training via frequency-domain regularization.
  • To preserve high-quality image generation while enhancing OOD detection performance through a minimal, generalizable training modification.
  • To demonstrate the effectiveness of frequency-based regularization on large-scale, high-resolution datasets beyond standard benchmarks like CIFAR-10.

Proposed method

  • The FRL framework introduces an additional high-frequency channel to the input image during training, derived via a Fourier transform and high-pass filtering of the original image.
  • This high-frequency component acts as a regularizer, encouraging the generative model to focus on object contours and semantic details rather than low-frequency background patterns.
  • The method is architecture-agnostic and can be applied to VAEs, flow-based models (e.g., GLOW), and autoregressive models (e.g., PixelCNN++) with minimal modification—only changing the input channel count.
  • During inference, the original image is concatenated with its high-frequency representation, and the model computes likelihood on the combined input to produce an OOD score.
  • The approach leverages classical signal processing principles, where high-frequency components are known to encode structural and semantic content, not just noise or background.
  • The training objective remains unchanged for the base generative model; FRL adds a frequency-based regularizer without modifying the likelihood objective or requiring online optimization at test time.

Experimental results

Research questions

  • RQ1Can regularizing deep generative models with high-frequency image components improve their ability to distinguish in-distribution from out-of-distribution samples?
  • RQ2Does emphasizing high-frequency features reduce the model’s overreliance on background textures, which currently lead to high likelihoods for OOD data?
  • RQ3Can a simple, plug-and-play frequency regularization technique achieve state-of-the-art OOD detection performance across diverse generative architectures?
  • RQ4Does the FRL framework maintain high image generation quality while improving OOD detection?
  • RQ5Can FRL scale effectively to high-resolution, large-scale datasets such as CelebA, where prior methods face computational bottlenecks?

Key findings

  • On the CelebA dataset, FRL achieves a 10.7% higher AUROC than the strong baseline Likelihood Regret, demonstrating state-of-the-art performance in OOD detection.
  • FRL achieves 147× faster inference speed than Likelihood Regret, which requires online optimization at test time, making FRL suitable for real-time applications.
  • On the GLOW model, FRL improves AUROC by 7.5% on CIFAR-10 compared to the best baseline, Input Complexity, across multiple OOD benchmarks.
  • Ablation studies confirm that high-frequency regularization is essential for performance gains, with ablation of this component leading to significant drops in OOD detection accuracy.
  • The method preserves high-fidelity image generation quality, as measured by standard metrics, indicating no degradation in generative capability.
  • FRL is the first method to demonstrate strong OOD detection performance on high-resolution datasets like CelebA, extending beyond the typical CIFAR-10 and Fashion-MNIST benchmarks.

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.