cs.LGApr 9, 2026

Mitigating the reconstruction-detection trade-off in VAE-based unsupervised anomaly detection

Authors: Agathe Senellart, Maëlys Solal, Stéphanie Allassonnière, Ninon Burgos

Organizations: UPCité, INSERM, HeKA | U1346 · Université Paris Cité, Inria, Inserm, HeKA, F-75015 Paris, France · ARAMIS, ICM · Sorbonne Université, Institut du Cerveau - Paris Brain Institute - ICM, CNRS, Inria, Inserm, AP-HP, Hôpital de la Pitié Salpêtrière, F-75013, Paris, France

Abstract

Variational autoencoders are widely used for unsupervised anomaly detection. Model selection however remains an open-question: to remain fully unsupervised, hyperparameters are often chosen to minimize the reconstruction error on normal samples. In this paper, we reveal a trade-off between reconstruction quality and anomaly detection among ββ-VAE models. Models with constrained latent space reach higher detection metrics but lower reconstruction quality. We also assess the performance variability across random seeds and show it is linked to the distance between normal and abnormal latent distributions. From this analysis, we justify and investigate two methods to mitigate the reconstructiondetection tradeoff: beta-scheduling and the Sparse VAE. The latter especially shows an improvement in detection while maintaining high reconstruction quality.

Figures & tables

Explore similar work

CardsList
  1. Unsupervised Anomaly Detection in NSL-KDD Using ββ-VAE: A Latent Space and Reconstruction Error Approach

    Feb 23, 2026Dylan Baptiste, Ramla Saddem, Alexandre Philippot +1Unsupervised Anomaly DetectionNetwork Intrusion Detection

  2. Disjoint or Overlapping? Inference Windowing for Reconstruction-Based Time Series Anomaly Detection

    Jun 2, 2026Guillaume Coulaud, Reza Akbarinia, Florent MassegliaReconstruction-Based Anomaly DetectionTime-Series Anomaly Detection