[Paper Review] Unsupervised anomaly localization using VAE and beta-VAE
This paper investigates unsupervised anomaly localization in medical imaging using VAE and beta-VAE, comparing reconstruction error, ELBO gradients, KL gradient, and energy-based projection. It finds that gradient-based predictors like Rec-grad outperform reconstruction error and energy projection in brain MRI, and that performance is highly sensitive to VAE hyperparameters, especially beta in beta-VAE.
Variational Auto-Encoders (VAEs) have shown great potential in the unsupervised learning of data distributions. An VAE trained on normal images is expected to only be able to reconstruct normal images, allowing the localization of anomalous pixels in an image via manipulating information within the VAE ELBO loss. The ELBO consists of KL divergence loss (image-wise) and reconstruction loss (pixel-wise). It is natural and straightforward to use the later as the predictor. However, usually local anomaly added to a normal image can deteriorate the whole reconstructed image, causing segmentation using only naive pixel errors not accurate. Energy based projection was proposed to increase the reconstruction accuracy of normal regions/pixels, which achieved the state-of-the-art localization accuracy on simple natural images. Another possible predictors are ELBO and its components gradients with respect to each pixels. Previous work claimed that KL gradient is a robust predictor. In this paper, we argue that the energy based projection in medical imaging is not as useful as on natural images. Moreover, we observe that the robustness of KL gradient predictor totally depends on the setting of the VAE and dataset. We also explored the effect of the weight of KL loss within beta-VAE and predictor ensemble in anomaly localization.
Motivation & Objective
- To evaluate the effectiveness of various anomaly localization predictors—reconstruction error, ELBO gradients, KL gradient, and energy-based projection—within VAE and beta-VAE frameworks for medical imaging.
- To investigate whether energy-based projection, effective in natural images, generalizes well to challenging medical imaging tasks such as brain tumor localization.
- To analyze the impact of beta-VAE hyperparameters, particularly the KL weight (beta), on anomaly localization performance.
- To assess the complementarity of multiple predictors through ensemble learning, aiming to improve localization accuracy beyond individual methods.
Proposed method
- Trained VAE and beta-VAE on normal T2 MRI brain images (BraTS2018) to learn the data distribution of healthy tissue.
- Computed multiple anomaly scores: reconstruction error (pixel-wise), gradients of ELBO and KL divergence w.r.t. input, and energy-based projected reconstruction error.
- Applied iterative energy minimization to refine reconstructions toward the normal manifold, improving normal region fidelity.
- Used logistic regression to ensemble multiple predictors (Rec-Error, KL-grad, Rec-grad) for improved localization performance.
- Evaluated all methods using AUROC on test data with varying latent space dimensions and beta values.
- Compared performance across different VAE configurations to assess sensitivity to model hyperparameters.
Experimental results
Research questions
- RQ1Does energy-based projection significantly improve anomaly localization in medical imaging compared to standard reconstruction error?
- RQ2How does the robustness of the KL gradient predictor vary with different VAE architectures and hyperparameters, particularly beta in beta-VAE?
- RQ3Which anomaly detection predictor—reconstruction error, ELBO gradient, KL gradient, or Rec-grad—yields the highest AUROC in brain MRI anomaly localization?
- RQ4To what extent do multiple predictors complement each other when combined via ensemble learning?
- RQ5How do latent space dimension and beta value in beta-VAE affect the performance of different anomaly localization methods?
Key findings
- Energy-based projection improved reconstruction accuracy on normal regions but did not surpass gradient-based methods, achieving AUROC 0.861 compared to 0.900 for Rec-grad.
- The KL gradient predictor was not consistently robust; its performance heavily depended on VAE hyperparameters, particularly beta and latent space size.
- For beta-VAE, increasing beta improved performance for most predictors, with beta=10 yielding the best results, though Combi performance degraded with higher beta.
- The Rec-grad predictor achieved the highest AUROC of 0.905, outperforming both reconstruction error (0.856) and energy-based projection (0.861).
- Ensemble learning using Rec-Error, KL-grad, and Rec-grad yielded AUROC 0.903, slightly below Rec-grad alone, indicating limited complementarity among predictors.
- The reconstruction quality of normal regions was poor in standard VAEs, especially for high-beta settings, suggesting that the model’s normal manifold is not well learned, limiting the benefit of projection methods.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.