Skip to main content
QUICK REVIEW

[Paper Review] Addressing Variance Shrinkage in Variational Autoencoders using Quantile Regression

Haleh Akrami, Anand A. Joshi|arXiv (Cornell University)|Oct 18, 2020
Generative Adversarial Networks and Image SynthesisComputer Science31 references5 citations
TL;DR

This paper proposes QR-VAE, a variational autoencoder that uses quantile regression to address variance shrinkage—common in VAEs when jointly optimizing mean and variance—by estimating two quantiles (e.g., 0.025 and 0.975) to derive mean and standard deviation under a Gaussian assumption. The method enables principled, uncertainty-aware anomaly detection with improved performance over standard VAEs and Comb-VAE, achieving an AUC of 0.94 on brain lesion detection with FDR-corrected thresholds.

ABSTRACT

Estimation of uncertainty in deep learning models is of vital importance, especially in medical imaging, where reliance on inference without taking into account uncertainty could lead to misdiagnosis. Recently, the probabilistic Variational AutoEncoder (VAE) has become a popular model for anomaly detection in applications such as lesion detection in medical images. The VAE is a generative graphical model that is used to learn the data distribution from samples and then generate new samples from this distribution. By training on normal samples, the VAE can be used to detect inputs that deviate from this learned distribution. The VAE models the output as a conditionally independent Gaussian characterized by means and variances for each output dimension. VAEs can therefore use reconstruction probability instead of reconstruction error for anomaly detection. Unfortunately, joint optimization of both mean and variance in the VAE leads to the well-known problem of shrinkage or underestimation of variance. We describe an alternative approach that avoids this variance shrinkage problem by using quantile regression. Using estimated quantiles to compute mean and variance under the Gaussian assumption, we compute reconstruction probability as a principled approach to outlier or anomaly detection. Results on simulated and Fashion MNIST data demonstrate the effectiveness of our approach. We also show how our approach can be used for principled heterogeneous thresholding for lesion detection in brain images.

Motivation & Objective

  • To address the well-known variance shrinkage problem in VAEs, where joint optimization of mean and variance leads to underestimation of variance.
  • To develop a principled, uncertainty-aware approach to anomaly detection using reconstruction probability instead of reconstruction error.
  • To enable unsupervised, heterogeneous thresholding for lesion detection in medical imaging without requiring labeled validation data.
  • To improve variance estimation in VAEs using quantile regression, avoiding the instability and overfitting caused by likelihood maximization.
  • To demonstrate that QR-VAE outperforms standard VAEs and Comb-VAE in anomaly detection on synthetic, Fashion-MNIST, and ISLES brain imaging datasets.

Proposed method

  • Estimate two quantiles (e.g., Q₀.₀₂₅ and Q₀.₉₇₅) using quantile regression to represent the lower and upper bounds of the predictive distribution.
  • Use the Gaussian assumption to map the estimated quantiles to the mean and standard deviation of the output distribution.
  • Compute reconstruction probability using the derived mean and variance, enabling statistically principled anomaly detection.
  • Apply False Discovery Rate (FDR) correction to p-values derived from z-scores to control for multiple comparisons in pixel-wise thresholding.
  • Use the resulting FDR-corrected p-values to set a threshold for detecting anomalies, avoiding reliance on validation data.
  • Train the QR-VAE end-to-end to predict quantiles directly, replacing the standard variance head in VAEs.

Experimental results

Research questions

  • RQ1Can quantile regression be used to improve variance estimation in VAEs and mitigate the variance shrinkage problem?
  • RQ2Does the QR-VAE approach yield more accurate and reliable reconstruction probabilities for anomaly detection compared to standard VAEs?
  • RQ3Can QR-VAE enable unsupervised, principled thresholding for lesion detection in brain MRI without requiring labeled validation data?
  • RQ4How does QR-VAE compare to alternative methods like Comb-VAE in terms of anomaly detection performance and implementation complexity?
  • RQ5To what extent does FDR correction improve the reliability of pixel-wise anomaly detection in high-dimensional medical images?

Key findings

  • The QR-VAE achieved an AUC of 0.94 on the ISLES brain lesion detection dataset, significantly outperforming the standard VAE, which achieved an AUC of 0.56.
  • The VAE underestimated variance across most of the brain, resulting in widespread significant p-values even after FDR correction, leading to high false positive rates.
  • The QR-VAE produced lesion detection results that closely matched ground truth from expert manual segmentation, demonstrating improved spatial accuracy.
  • Using FDR-corrected p-values from QR-VAE enabled a 5% false positive rate without requiring labeled validation data for threshold selection.
  • The QR-VAE method is simpler to implement than Comb-VAE while achieving superior performance on all tested datasets.
  • The approach enables principled, uncertainty-aware anomaly detection by directly modeling predictive quantiles and deriving probabilistic reconstruction scores.

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.