Introduction
Anomaly detection (AD) is a critical task in machine learning, focused on identifying data points that deviate significantly from the norm. Traditionally, this involved detecting Out-of-Distribution (OOD) samples—data that simply does not belong to the target class. However, modern deep learning systems face an additional threat: Adversarial Attacks. These are samples meticulously engineered to appear normal to humans while triggering incorrect classifications in neural networks.
While Generative Adversarial Networks (GANs) have shown promise in AD, they are notoriously difficult to train, often suffering from mode collapse or non-convergence. This research introduces a "Latent Regularized Generative Dual Adversarial Network" designed to stabilize training and provide a robust defense against both OOD and adversarial threats.
Proposed Architecture
The core of the proposed method is a multi-component architecture designed to balance generative power with discriminative stability.
Key innovations include:
- Dual Auxiliary Autoencoder: By incorporating a second, auxiliary autoencoder, the model balances the competition between the generator and the discriminator. This dual structure matches the distribution of losses rather than raw samples, preventing the discriminator from overpowering the generator and ensuring smoother convergence.
- Mutual Information (MI) Estimator: Acting as a latent regularizer, the MI estimator ensures that the compressed latent space captures only the most essential, unique features of the "normal" class.
- Compact Latent Space: The model forces all inputs into a highly specialized latent manifold. When an anomaly (OOD or adversarial) is processed, the model attempts to reconstruct it as a member of the normal class. This results in a high reconstruction error, which serves as the primary detection signal.
Mechanism of Detection
The model treats adversarial perturbations as a form of noise that does not align with the learned latent manifold. By mapping inputs to this compact space, the model effectively "purifies" anomalous images during the reconstruction process.
As illustrated above, while standard autoencoders might struggle with complex anomalies, the proposed method forces both OOD samples (like a '1' in a dataset of '8s') and adversarial attacks back toward the target distribution manifold. The resulting failure to accurately reconstruct the original anomalous input makes the detection highly reliable.
Experimental Evaluation
The researchers evaluated the model across diverse benchmarks, including image, audio, and security datasets:
- Image Recognition: Achieved a perfect 1.0 AUC on the COIL100 dataset, outperforming existing state-of-the-art models like OCGAN.
- Adversarial Robustness: Tested against the "Boundary Attack" on the GTSRB traffic sign dataset, the model reached 90.5% AUC, significantly higher than the 67.5% achieved by traditional One-Class SVMs.
- Acoustic Anomaly: Outperformed WaveNet-based detectors on the DCASE dataset, identifying sounds like gunshots or breaking glass within environmental noise.
- Biometrics: Demonstrated high efficacy in face anti-spoofing tasks, detecting print and video replay attacks.
Discussion and Future Work
The "Dual" structure is the primary driver of the model's stability, preventing the training failures common in standard GAN setups. Furthermore, the emphasis on optimizing the latent space rather than just pixel-level reconstruction allows for better separation between normal and abnormal features.
Despite its success, the model faces challenges regarding computational complexity due to its multiple sub-networks. Additionally, the final loss function involves five weighted terms that require careful tuning for different datasets. Future research will focus on streamlining the architecture for real-time edge deployment and automating hyperparameter optimization.
Summary updated