[Paper Review] Anomaly Detection with Domain Adaptation
This paper proposes Invariant Representation Anomaly Detection (IRAD), a domain adaptation method for semi-supervised anomaly detection that learns domain-invariant features via adversarial training with shared and domain-specific encoders and generators. IRAD outperforms baselines by up to 10% on Office-Home and achieves strong generalization through theoretical bounds on error and generalization.
We study the problem of semi-supervised anomaly detection with domain adaptation. Given a set of normal data from a source domain and a limited amount of normal examples from a target domain, the goal is to have a well-performing anomaly detector in the target domain. We propose the Invariant Representation Anomaly Detection (IRAD) to solve this problem where we first learn to extract a domain-invariant representation. The extraction is achieved by an across-domain encoder trained together with source-specific encoders and generators by adversarial learning. An anomaly detector is then trained using the learnt representations. We evaluate IRAD extensively on digits images datasets (MNIST, USPS and SVHN) and object recognition datasets (Office-Home). Experimental results show that IRAD outperforms baseline models by a wide margin across different datasets. We derive a theoretical lower bound for the joint error that explains the performance decay from overtraining and also an upper bound for the generalization error.
Motivation & Objective
- Address the challenge of semi-supervised anomaly detection when only limited normal data are available in the target domain.
- Enable effective transfer of anomaly detection knowledge from a source domain with abundant normal data to a target domain with scarce normal examples.
- Develop a method that generalizes well to unseen anomalies in the target domain while avoiding overfitting due to limited target data.
- Theoretical analysis of joint error and generalization bounds to explain performance decay from overtraining and guide model design.
Proposed method
- Train a shared encoder to extract domain-invariant representations from both source and target domain data.
- Use adversarial training with a source-specific encoder, a generator, and a discriminator to disentangle shared and domain-specific features.
- Enforce feature similarity between source and target domain representations via a similarity objective (Eq. 4) in the latent space.
- Apply cycle-consistency losses (Eq. 2) to preserve structural consistency during feature reconstruction.
- Introduce random noise input ($\bm{x}_{rnd}$) in the adversarial objective to regularize the discriminator and improve decision boundary learning.
- Train a pre-existing anomaly detector (Isolation Forest) on the shared representations for final anomaly scoring in the target domain.
Experimental results
Research questions
- RQ1Can domain-invariant representations be effectively learned from limited target-domain data and abundant source-domain data to improve anomaly detection?
- RQ2How does adversarial disentanglement of shared and domain-specific features affect generalization in anomaly detection under domain shift?
- RQ3What is the impact of cycle-consistency and similarity regularization on the separation of normal and anomalous features in the target domain?
- RQ4How does overtraining affect the joint error and generalization performance in domain-adapted anomaly detection?
- RQ5What theoretical bounds explain the trade-off between representation invariance and model generalization in this setting?
Key findings
- IRAD outperforms state-of-the-art baselines by up to 10% on the Office-Home Product → Clip Art benchmark, demonstrating significant performance gains.
- On digit datasets (MNIST → USPS, SVHN), IRAD achieves consistent improvements over baselines, especially with limited target-domain training data.
- Ablation studies confirm that removing cycle-consistency losses reduces performance by over 10%, highlighting their critical role in feature disentanglement.
- The absence of the random noise term ($\bm{x}_{rnd}$) in adversarial training causes normal and anomalous features to mix, degrading detection performance.
- The similarity objective (Eq. 4) effectively aligns source and target domain representations in the latent space, as shown by PCA projections and inner product magnitudes.
- Theoretical analysis reveals a lower bound on joint error and an upper bound on generalization error, explaining performance degradation from overtraining and guiding model optimization.
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.