Latent Space Divergence: Outliers in the Encoded Realm

This metric assesses how much the encoded latent representation of an input deviates from the VRAE's prior distribution, typically a standard Gaussian. Anomalous data tends to map to regions of the latent space far from this prior, resulting in a high Kullback-Leibler (KL) divergence or Mahalanobis distance, signaling an anomaly.

The top 3

  1. Top 3 Metrics for Quantifying Latent Space Outliers: The Kullback-Leibler (KL) Divergence is fundamental in VAEs, measuring how much an input's encoded posterior distribution deviates from the prior, with higher values often indicating anomalies. Mahalanobis Distance in the latent space helps identify outliers by measuring how far a data point's latent representation is from the centroid of normal data, accounting for correlations. Often, these are combined with Reconstruction Error or Reconstruction Probability to form a more robust anomaly score.
  2. Top 3 Factors for Effective Latent Space Divergence: Latent space dimensionality significantly impacts performance; too few dimensions oversimplify, while too many can cause posterior collapse or overfitting, making a 'sweet spot' crucial for anomaly detection. The choice of prior distribution (typically a standard normal) and its regularization strength (e.g., via the beta parameter in β-VAEs) directly shapes how anomalies manifest as divergences from this expected distribution. Lastly, the quality and comprehensive coverage of the training data are paramount, as VAEs learn 'normal' from these samples; anomalies within the training set or incomplete representation of normal behavior degrade detection reliability.
  3. Top 3 Challenges in Latent Space Divergence Interpretation: Setting an effective detection threshold for anomaly scores derived from latent space divergence is a critical challenge, often addressed using empirical percentiles (e.g., 95th or 99th) or statistical modeling on validation data. Distinguishing between true novel anomalies and mere input noise is another hurdle, where techniques like denoising autoencoders or robust preprocessing can help ensure that high divergence signals actual outliers, not just noisy normal data. Finally, concept drift, where the definition of 'normal' data evolves over time, can render static divergence thresholds ineffective, necessitating continuous monitoring and adaptive model retraining to maintain performance.

Sources

Open the full topic