Anomaly detection through latent space restoration using vector-quantized variational autoencoders

arXiv:2012.06765 First posted 2020-12-12 v1 4 Pages, 4 Figures. Submitted to ISBI 2021
Cite this paper ×
BibTeX
@misc{marimont2020anomaly,
  title = {Anomaly detection through latent space restoration using vector-quantized variational autoencoders},
  author = {Sergio Naval Marimont and Giacomo Tarroni},
  year = {2020},
  eprint = {2012.06765},
  archivePrefix = {arXiv},
  primaryClass = {cs.CV},
  url = {https://arxiv.org/abs/2012.06765}
}
APA 7
Marimont, S. N., & Tarroni, G. (2020). Anomaly detection through latent space restoration using vector-quantized variational autoencoders [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2012.06765
GB/T 7714
MARIMONT SN, TARRONI G. Anomaly detection through latent space restoration using vector-quantized variational autoencoders[EB/OL]. (2020-12-12)[2026-11-30]. https://arxiv.org/abs/2012.06765.

Abstract

We propose an out-of-distribution detection method that combines density and restoration-based approaches using Vector-Quantized Variational Auto-Encoders (VQ-VAEs). The VQ-VAE model learns to encode images in a categorical latent space. The prior distribution of latent codes is then modelled using an Auto-Regressive (AR) model. We found that the prior probability estimated by the AR model can be useful for unsupervised anomaly detection and enables the estimation of both sample and pixel-wise anomaly scores. The sample-wise score is defined as the negative log-likelihood of the latent variables above a threshold selecting highly unlikely codes. Additionally, out-of-distribution images are restored into in-distribution images by replacing unlikely latent codes with samples from the prior model and decoding to pixel space. The average L1 distance between generated restorations and original image is used as pixel-wise anomaly score. We tested our approach on the MOOD challenge datasets, and report higher accuracies compared to a standard reconstruction-based approach with VAEs.

Post #1 · the paper

Discussion

No comments yet. Start the discussion!