Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 1.64 KB

File metadata and controls

26 lines (16 loc) · 1.64 KB

Disentangled Conditional Variational Autoencoder (dCVAE) for Unsupervised Anomaly Detection

Recently, generative models have shown promising performance in anomaly detection tasks. Specifically, autoencoders learn representations of high-dimensional data, and their reconstruction ability can be used to assess whether a new instance is likely to be anomalous. However, the primary challenge of unsupervised anomaly detection (UAD) is in learning appropriate disentangled features and avoiding information loss, while incorporating known sources of variation to improve the reconstruction. In this paper, we propose a novel architecture of generative autoencoder by combining the frameworks of $\beta$-VAE, conditional variational autoencoder (CVAE), and the principle of total correlation (TC). We show that our architecture improves the disentanglement of latent features, optimizes TC loss more efficiently, and improves the ability to detect anomalies in an unsupervised manner with respect to high-dimensional instances, such as in imaging datasets. Through both qualitative and quantitative experiments on several benchmark datasets, we demonstrate that our proposed method excels in terms of both anomaly detection and capturing disentangled features. Our analysis underlines the importance of learning disentangled features for UAD tasks.

Installation

   pip install -r requirements.txt

Usage

   cd src

Run:

   python run.py vae --dataset fmnist --batch_size 64 --downstream_task umap --epochs 50

License

License: MIT