[Paper Review] Deep Semi-Supervised Anomaly Detection
This paper proposes Deep SAD, an end-to-end deep semi-supervised anomaly detection method that leverages both labeled normal and anomalous samples to improve detection performance. By introducing an information-theoretic framework based on minimizing latent entropy for normal data and maximizing it for anomalies, Deep SAD achieves state-of-the-art results on MNIST, Fashion-MNIST, CIFAR-10, and benchmark datasets—even with minimal labeled data.
Deep approaches to anomaly detection have recently shown promising results over shallow methods on large and complex datasets. Typically anomaly detection is treated as an unsupervised learning problem. In practice however, one may have---in addition to a large set of unlabeled samples---access to a small pool of labeled samples, e.g. a subset verified by some domain expert as being normal or anomalous. Semi-supervised approaches to anomaly detection aim to utilize such labeled samples, but most proposed methods are limited to merely including labeled normal samples. Only a few methods take advantage of labeled anomalies, with existing deep approaches being domain-specific. In this work we present Deep SAD, an end-to-end deep methodology for general semi-supervised anomaly detection. We further introduce an information-theoretic framework for deep anomaly detection based on the idea that the entropy of the latent distribution for normal data should be lower than the entropy of the anomalous distribution, which can serve as a theoretical interpretation for our method. In extensive experiments on MNIST, Fashion-MNIST, and CIFAR-10, along with other anomaly detection benchmark datasets, we demonstrate that our method is on par or outperforms shallow, hybrid, and deep competitors, yielding appreciable performance improvements even when provided with only little labeled data.
Motivation & Objective
- Address the limitation of existing semi-supervised anomaly detection methods that only use labeled normal samples, by incorporating labeled anomalies to improve model generalization.
- Develop a general-purpose deep anomaly detection framework that is not restricted to specific data types or domains.
- Formulate an information-theoretic interpretation of deep anomaly detection based on the Infomax principle, linking model behavior to entropy minimization in the latent space.
- Demonstrate that semi-supervised learning with both normal and anomalous labels significantly improves detection performance over unsupervised or one-class methods, especially on complex, high-dimensional data.
Proposed method
- Extend the unsupervised Deep SVDD method to a semi-supervised setting by jointly optimizing reconstruction and classification losses using both unlabeled and labeled data.
- Introduce a novel loss function that minimizes the entropy of the latent representation for normal samples while maximizing it for anomalous samples, enforcing compactness for normal data and sparsity for anomalies.
- Use a deep neural network to map input data into a latent space where the normal class is characterized by a hypersphere centered at the origin, with the center learned end-to-end.
- Apply a margin-based contrastive loss to separate labeled anomalies from the normal hypersphere, improving discrimination without requiring full classification.
- Optimize the model using a combination of reconstruction loss, center loss, and entropy-based regularization, with hyperparameters tuned for robustness.
- Integrate a representation learning objective that maximizes mutual information between input and latent representations, ensuring sufficient information retention before compact characterization.
Experimental results
Research questions
- RQ1Can a deep semi-supervised anomaly detection method that uses both labeled normal and anomalous samples outperform existing unsupervised and one-class methods?
- RQ2How does incorporating labeled anomalies affect detection performance, especially in complex, high-dimensional datasets like CIFAR-10?
- RQ3Is the proposed information-theoretic framework—based on minimizing entropy for normal and maximizing it for anomalous data—valid and effective as a theoretical interpretation of deep anomaly detection?
- RQ4How robust is the method to hyperparameter choices such as the entropy weighting coefficient η and the latent space dimension d?
- RQ5Does Deep SAD generalize across diverse data types, including non-image benchmarks, and how does it compare to shallow kernel-based methods on low-dimensional datasets?
Key findings
- Deep SAD achieves state-of-the-art performance on MNIST, Fashion-MNIST, and CIFAR-10, outperforming both shallow and deep competitors, including unsupervised and one-class methods.
- The method yields significant performance improvements even with as few as 10 labeled anomalies, demonstrating strong data efficiency in semi-supervised settings.
- Experiments show that Deep SAD is robust to hyperparameter η, with stable AUC performance across a wide range of values from 10⁻² to 10².
- Detection performance increases with higher latent space dimension d, converging to an upper bound, suggesting that sufficient representational capacity is critical for optimal performance.
- On classic non-image benchmark datasets, Deep SAD remains competitive with shallow kernel methods, despite their hyperparameter advantage, indicating strong generalization across data types.
- The information-theoretic framework based on entropy minimization and maximization provides a valid and interpretable basis for deep anomaly detection, supporting the model’s design and behavior.
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.