Invariant Anomaly Detection under Distribution Shifts: A Causal Perspective
Not on the map. Why?
Abstract (arXiv)
Anomaly detection (AD) is the machine learning task of identifying highly discrepant abnormal samples by solely relying on the consistency of the normal training samples. Under the constraints of a distribution shift, the assumption that training samples and test samples are drawn from the same distribution breaks down. In this work, by leveraging tools from causal inference we attempt to increase the resilience of anomaly detection models to different kinds of distribution shifts. We begin by elucidating a simple yet necessary statistical property that ensures invariant representations, which is critical for robust AD under both domain and covariate shifts. From this property, we derive a regularization term which, when minimized, leads to partial distribution invariance across environments. Through extensive experimental evaluation on both synthetic and real-world tasks, covering a range of six different AD methods, we demonstrated significant improvements in out-of-distribution performance. Under both covariate and domain shift, models regularized with our proposed term showed marked increased robustness. Code is available at: https://github.com/JoaoCarv/invariant-anomaly-detection.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 41 of its 62 references that are in the map. First posted on arXiv 21 Dec 2023.
Builds on
41 of 62 references.
References · 41
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,513
- 2017Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithmscited by 4,349
- 2020Shortcut Learning in Deep Neural Networkscited by 1,969
- 2019Invariant Risk Minimizationcited by 1,854
- 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,375
- 2018Learning deep representations by mutual information estimation and maximizationcited by 1,273
- 2015Deep Learning and the Information Bottleneck Principlecited by 802
- 2019Memorizing Normality to Detect Anomaly: Memory-augmented Deep Autoencoder for Unsupervised Anomaly Detectioncited by 564
- 2020CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instancescited by 441
- 2020A Unifying Review of Deep and Shallow Anomaly Detectioncited by 425
29 more
- 2022Anomaly Detection via Reverse Distillation from One-Class Embeddingcited by 421
- 2019Contrastive Adaptation Network for Unsupervised Domain Adaptationcited by 407
- 2019Uninformed Students: Student-Teacher Anomaly Detection with Discriminative Latent Embeddingscited by 386
- 2017Functional Map of the Worldcited by 338
- 2020Learning Memory-guided Normality for Anomaly Detectioncited by 278
- 2015The Variational Fair Autoencodercited by 223
- 2022Improving Out-of-Distribution Robustness via Selective Augmentationcited by 202
- 2020Representation Learning via Invariant Causal Mechanismscited by 199
- 2020PANDA: Adapting Pretrained Features for Anomaly Detection and Segmentationcited by 175
- 2019Quantifying the effects of data augmentation and stain color normalization in convolutional neural networks for computational pathologycited by 173
- 2021Student-Teacher Feature Pyramid Matching for Anomaly Detectioncited by 146
- 2022Causality Inspired Representation Learning for Domain Generalizationcited by 138
- 2022CFA: Coupled-hypersphere-based Feature Adaptation for Target-Oriented Anomaly Localizationcited by 135
- 2020DROCC: Deep Robust One-Class Classificationcited by 121
- 2019Improving Robustness Without Sacrificing Accuracy with Patch Gaussian Augmentationcited by 105
- 2021Mean-Shifted Contrastive Loss for Anomaly Detectioncited by 88
- 2019A Mutual Information Maximization Perspective of Language Representation Learningcited by 85
- 2021Counterfactual Invariance to Spurious Correlations: Why and How to Pass Stress Testscited by 77
- 2021On the Impact of Spurious Correlation for Out-of-distribution Detectioncited by 68
- 2020Learning Causal Semantic Representation for Out-of-Distribution Predictioncited by 60
- 2022ZIN: When and How to Learn Invariance Without Environment Partition?cited by 58
- 2020On Mutual Information in Contrastive Learning for Visual Representationscited by 54
- 2021Domain Invariant Representation Learning with Domain Density Transformationscited by 53
- 2022Out-of-distribution Generalization with Causal Invariant Transformationscited by 45
- 2022Invariant and Transportable Representations for Anti-Causal Domain Shiftscited by 37
- 2021Decomposed Mutual Information Estimation for Contrastive Representation Learningcited by 25
- 2022A Contrastive Objective for Learning Disentangled Representationscited by 14
- 2021DiagViB-6: A Diagnostic Benchmark Suite for Vision Models in the Presence of Shortcut and Generalization Opportunitiescited by 10
- 2022Env-Aware Anomaly Detection: Ignore Style Changes, Stay True to Content!cited by 3
Built on by
Citing papers per year: 2025: 4; 2026: 4.
8 papers.
- 2025Anomaly Detection and Generation with Diffusion Models: A Surveycited by 8
- 2025Subject Information Extraction for Novelty Detection with Domain Shiftscited by 6
- 2025DP-DGAD: A Generalist Dynamic Graph Anomaly Detector with Dynamic Prototypescited by 5
- 2025When Unsupervised Domain Adaptation meets One-class Anomaly Detection: Addressing the Two-fold Unsupervised Curse by Leveraging Anomaly Scarcitycited by 0
- 2026Out of Context: Reliability in Multimodal Anomaly Detection Requires Contextual Inferencecited by 0
- 2026ShiftSplit-AD: Separating Domain Shift from Defects in Foundation-Feature Visual Anomaly Detectioncited by 0
- 2026When Identical Rows Disagree: From Benchmark Identifiability to Replication-Robust Anomaly Detectioncited by 0
- 2026MAADBench: The Refreshable Paradigm for Anomaly Detection in Multi-Agent Systemscited by 0
- 2026MAADBench: The Refreshable Paradigm for Anomaly Detection in Multi-Agent Systems29 Sep 2026
- 2026When Identical Rows Disagree: From Benchmark Identifiability to Replication-Robust Anomaly Detection27 Aug 2026
- 2026ShiftSplit-AD: Separating Domain Shift from Defects in Foundation-Feature Visual Anomaly Detection27 Aug 2026
- 2026Out of Context: Reliability in Multimodal Anomaly Detection Requires Contextual Inference14 Apr 2026
- 2025DP-DGAD: A Generalist Dynamic Graph Anomaly Detector with Dynamic Prototypes1 Aug 2025
- 2025Anomaly Detection and Generation with Diffusion Models: A Survey11 Jun 2025
- 2025Subject Information Extraction for Novelty Detection with Domain Shifts30 Apr 2025
- 2025When Unsupervised Domain Adaptation meets One-class Anomaly Detection: Addressing the Two-fold Unsupervised Curse by Leveraging Anomaly Scarcity28 Feb 2025