Abstract
The researchers introduce WALDO (Wasserstein Autoencoder for Learning the Distribution of Outliers), a novel framework that simultaneously detects and generates outliers. By using a double-decoder architecture and the Wasserstein distance, the model learns to separate inlier and outlier distributions from unlabeled data without requiring explicit outlier samples during training.
Introduction
Outlier detection is a fundamental challenge in machine learning, traditionally focused on identifying data points that deviate significantly from a learned norm. However, existing methodologies often struggle with two primary limitations: the inability to generate realistic synthetic outliers for simulation and the reliance on manually tuned thresholds to distinguish anomalies.
WALDO addresses these gaps by framing outlier detection as a probabilistic mixture problem. Assuming data is composed of two unknown distributions—inliers and outliers—the model learns to characterize both using only unlabeled data and a small subset of confirmed "normal" samples.
Methodology: The WALDO Architecture
The core of the WALDO framework is a specialized Wasserstein Autoencoder (WAE) architecture designed for distribution separation.
The architecture consists of four primary components:
- Shared Encoder ($Q_\phi$): Maps input data into a lower-dimensional latent space.
- Dual Decoders: A dedicated inlier decoder ($G^i_\theta$) and an outlier decoder ($G^o_\omega$).
- Latent Discriminator ($D_\gamma$): Employs adversarial training to ensure the encoded distributions align with a prior (e.g., a Gaussian distribution).
The Competition Mechanism and Advantage Term
During training, the two decoders compete to reconstruct input data. For each sample, the reconstruction error is calculated for both decoders; the one with the lower error "wins" the point for that iteration. To prevent the inlier decoder from dominating due to the higher frequency of normal samples, the authors introduce an Advantage term. This penalty balances the competition, forcing the outlier decoder to specialize in patterns that the inlier decoder cannot effectively represent.
Experimental Evaluation
WALDO was evaluated across diverse benchmarks:
- Image Classification: MNIST, Fashion MNIST, and CIFAR10, where specific classes were designated as outliers.
- Cybersecurity: The KDD99 dataset, simulating network intrusion detection.
- Retail Analytics: A proprietary dataset of weekly sales patterns from a major US retailer, featuring rare purchasing behaviors (0.61% of total data).
Key Insights and Applications
WALDO's dual-decoder approach provides several unique advantages:
- Threshold-Free Detection: Classification is inherent to the model's structure; points are assigned based on which decoder provides a better "explanation" (lower reconstruction error).
- Synthetic Outlier Generation: Because the outlier decoder is a generative model, researchers can sample from the latent space to create realistic synthetic anomalies for stress-testing and "what-if" scenarios.
Results
WALDO demonstrated superior performance and robustness compared to state-of-the-art models like DeepSVDD and ALAD:
- High Precision: WALDO achieved the highest Area Under the Precision-Recall Curve (AUPRC) in 13 out of 16 experimental cases.
- Robustness to Contamination: The model maintained high performance even when training data was contaminated with up to 10% outliers.
- Real-World Efficacy: In the retail dataset, WALDO successfully identified all 62 actual outliers.
Conclusion and Future Work
While WALDO represents a significant advancement in probabilistic outlier detection, challenges remain. The gap between AUPRC and AUC scores suggests that minimizing false positives in rare class identification is still an open problem. Future research may explore expanding the theoretical framework beyond Euclidean distance metrics and applying the model to high-stakes domains such as healthcare and climate monitoring.
Summary updated