Skip to main content
QUICK REVIEW

[Paper Review] A Case for the Score: Identifying Image Anomalies using Variational Autoencoder Gradients

David Zimmerer, Jens Petersen|arXiv (Cornell University)|Nov 28, 2019
Anomaly Detection Techniques and ApplicationsComputer Science21 references20 citations
TL;DR

This paper proposes using gradients of the Variational Autoencoder's (VAE) evidence lower bound (ELBO) as a score approximation for pixel-wise image anomaly detection, outperforming reconstruction error-based methods. On the BraTS-2017 dataset, the method achieves a 0.94 ROC-AUC in unsupervised tumor detection, demonstrating that VAE-based score estimation provides a more faithful and theoretically grounded anomaly rating than reconstruction error alone.

ABSTRACT

Through training on unlabeled data, anomaly detection has the potential to impact computer-aided diagnosis by outlining suspicious regions. Previous work on deep-learning-based anomaly detection has primarily focused on the reconstruction error. We argue instead, that pixel-wise anomaly ratings derived from a Variational Autoencoder based score approximation yield a theoretically better grounded and more faithful estimate. In our experiments, Variational Autoencoder gradient-based rating outperforms other approaches on unsupervised pixel-wise tumor detection on the BraTS-2017 dataset with a ROC-AUC of 0.94.

Motivation & Objective

  • To address the limitation of reconstruction error in unsupervised medical image anomaly detection by proposing a theoretically more grounded alternative.
  • To investigate whether the score, defined as the gradient of the log-density with respect to input, can serve as a superior anomaly rating for images.
  • To evaluate the performance of VAE-based score approximation on pixel-wise tumor detection in MRI scans.
  • To analyze the contribution of the KL divergence and reconstruction loss components in the ELBO gradient for anomaly detection.

Proposed method

  • The method approximates the score using the gradient of the VAE's evidence lower bound (ELBO) with respect to the input image.
  • The ELBO is decomposed into a KL divergence term between the inference and prior latent distributions and an expected reconstruction log-likelihood term.
  • The gradient of the ELBO is computed via backpropagation using the reparameterization trick and Monte Carlo sampling for differentiable Gaussian distributions.
  • SmoothGrad is applied to stabilize gradient estimation and reduce noise from transposed convolutions.
  • Gaussian smoothing is applied to gradients to mitigate checkerboard artifacts from transposed convolutions.
  • The method is evaluated using pixel-wise anomaly ratings and compared against reconstruction error, smoothed reconstruction error, and sampling variance.

Experimental results

Research questions

  • RQ1Can the gradient of the VAE's ELBO serve as a more accurate and theoretically grounded anomaly rating than reconstruction error?
  • RQ2How do the individual components of the ELBO—reconstruction loss and KL divergence—contribute to anomaly detection performance?
  • RQ3Does incorporating the KL-loss gradient improve anomaly detection beyond reconstruction error or reconstruction gradient alone?
  • RQ4How does the use of SmoothGrad and Gaussian smoothing affect the quality of the anomaly score?

Key findings

  • The VAE-based score approximation, computed as the gradient of the ELBO, achieved a pixel-wise ROC-AUC of 0.94 on the BraTS-2017 dataset, outperforming previous state-of-the-art methods.
  • The KL-loss gradient alone performed better than the reconstruction-loss gradient and contributed significantly to the overall score performance.
  • The combination of KL-loss and reconstruction-loss gradients provided only marginal improvement over the KL-loss gradient alone, suggesting the KL term dominates the anomaly signal.
  • The reconstruction error and smoothed reconstruction error performed similarly, with slight improvement from smoothing, but both underperformed the ELBO gradient.
  • Sampling variance based on Monte Carlo samples performed comparably to smoothed reconstruction error but worse than the ELBO gradient.
  • The results indicate that the KL term in the VAE objective plays a crucial role in capturing distributional deviations, making it a strong signal for anomaly detection.

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.