Skip to main content
QUICK REVIEW

[Paper Review] AdaFlow: Domain-Adaptive Density Estimator with Application to Anomaly Detection and Unpaired Cross-Domain Translation

Masataka Yamaguchi, Yuma Koizumi|arXiv (Cornell University)|Dec 14, 2018
Anomaly Detection Techniques and ApplicationsComputer Science25 references3 citations
TL;DR

AdaFlow is a domain-adaptive density estimator that unifies Normalizing Flows with Adaptive Batch Normalization (AdaBN), enabling fast, single-forward-pass adaptation to new data distributions without fine-tuning. It achieves state-of-the-art anomaly detection performance with 36× faster adaptation than fine-tuning, while maintaining high accuracy even with minimal adaptation data.

ABSTRACT

We tackle unsupervised anomaly detection (UAD), a problem of detecting data that significantly differ from normal data. UAD is typically solved by using density estimation. Recently, deep neural network (DNN)-based density estimators, such as Normalizing Flows, have been attracting attention. However, one of their drawbacks is the difficulty in adapting them to the change in the normal data's distribution. To address this difficulty, we propose AdaFlow, a new DNN-based density estimator that can be easily adapted to the change of the distribution. AdaFlow is a unified model of a Normalizing Flow and Adaptive Batch-Normalizations, a module that enables DNNs to adapt to new distributions. AdaFlow can be adapted to a new distribution by just conducting forward propagation once per sample; hence, it can be used on devices that have limited computational resources. We have confirmed the effectiveness of the proposed model through an anomaly detection in a sound task. We also propose a method of applying AdaFlow to the unpaired cross-domain translation problem, in which one has to train a cross-domain translation model with only unpaired samples. We have confirmed that our model can be used for the cross-domain translation problem through experiments on image datasets.

Motivation & Objective

  • Address the challenge of domain shift in unsupervised anomaly detection, where test data distribution differs from training data.
  • Overcome the high computational cost and memory requirements of fine-tuning deep density estimators in resource-constrained environments.
  • Enable efficient adaptation of density models to new data distributions using only forward propagation, without iterative parameter updates.
  • Extend the applicability of the proposed model to unpaired cross-domain translation tasks using only unpaired training data.

Proposed method

  • Integrate Normalizing Flows (NFs) with Adaptive Batch Normalization (AdaBN) to create a unified density estimator, AdaFlow, that supports domain adaptation.
  • Use AdaBN to adapt the model to new domains by updating batch statistics during inference, not through backpropagation or fine-tuning.
  • Enable domain adaptation via a single forward pass per sample, significantly reducing computational cost compared to fine-tuning.
  • Apply AdaFlow to unpaired cross-domain translation by projecting data from one domain to latent space using source-domain AdaBN, then reprojecting to target domain using target-domain AdaBN.
  • Train AdaFlow using a variant of Glow with AdaBN replacing activation normalization layers to support domain-specific statistics.
  • Leverage the invertibility of Normalizing Flows to perform density estimation and latent space manipulation for both anomaly detection and translation tasks.

Experimental results

Research questions

  • RQ1Can a deep density estimator be adapted to new data distributions with minimal computational cost and without fine-tuning?
  • RQ2How does AdaFlow’s adaptation mechanism compare to fine-tuning in terms of speed, accuracy, and resource efficiency for anomaly detection?
  • RQ3Can AdaFlow be effectively applied to unpaired cross-domain translation without paired training data?
  • RQ4Does AdaFlow maintain high performance when adapted with only a small number of samples from a new domain?

Key findings

  • AdaFlow outperformed standard Autoencoders and Normalizing Flows in anomaly detection, achieving an AUROC of 0.882 with 1,000 adaptation samples.
  • Even with only 10 adaptation samples, AdaFlow achieved an AUROC of 0.816, outperforming a non-fine-tuned Normalizing Flow (AUROC 0.835) when pre-trained on nine datasets.
  • AdaFlow adaptation was 36× faster than fine-tuning-based adaptation, requiring only 0.09 seconds for 1,000 samples compared to 3.23 seconds for fine-tuning.
  • The performance of AdaFlow improved with more adaptation data, showing that larger adaptation sets yield better anomaly detection metrics.
  • AdaFlow successfully enabled unpaired cross-domain translation between photos and Van Gogh-style paintings without paired data, demonstrating its utility beyond anomaly detection.
  • The model achieved visually plausible translations in both directions (photo → painting and painting → photo), indicating effective domain transfer via latent space manipulation.

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.