mlsanityData to 14 Oct 2026

Positive Difference Distribution for Image Outlier Detection using Normalizing Flows and Contrastive Data

arXiv 2208.14024 ↗First posted 30 Aug 2022cs.LGcited by 3

Not on the map. Why?

Abstract (arXiv)

Detecting test data deviating from training data is a central problem for safe and robust machine learning. Likelihoods learned by a generative model, e.g., a normalizing flow via standard log-likelihood training, perform poorly as an outlier score. We propose to use an unlabelled auxiliary dataset and a probabilistic outlier score for outlier detection. We use a self-supervised feature extractor trained on the auxiliary dataset and train a normalizing flow on the extracted features by maximizing the likelihood on in-distribution data and minimizing the likelihood on the contrastive dataset. We show that this is equivalent to learning the normalized positive difference between the in-distribution and the contrastive feature density. We conduct experiments on benchmark datasets and compare to the likelihood, the likelihood ratio and state-of-the-art anomaly detection methods.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 39 of its 57 references that are in the map. First posted on arXiv 30 Aug 2022.

Builds on

39 of 57 references.

References · 39

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
  4. 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
  5. 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,513
  6. 2014Deep Learning Face Attributes in the Wildcited by 3,693
  7. 2015Variational Inference with Normalizing Flowscited by 2,170
  8. 2016Density estimation using Real NVPcited by 2,042
  9. 2020Shortcut Learning in Deep Neural Networkscited by 1,969
  10. 2018Glow: Generative Flow with Invertible 1x1 Convolutionscited by 1,545
  11. 2019Normalizing Flows for Probabilistic Modeling and Inferencecited by 1,323
  12. 2018Deep Anomaly Detection with Outlier Exposurecited by 942
27 more
  1. 2021Towards Total Recall in Industrial Anomaly Detectioncited by 776
  2. 2018Recognition in Terra Incognitacited by 658
  3. 2016Improving Variational Inference with Inverse Autoregressive Flowcited by 640
  4. 2019Memorizing Normality to Detect Anomaly: Memory-augmented Deep Autoencoder for Unsupervised Anomaly Detectioncited by 564
  5. 2019Using Self-Supervised Learning Can Improve Model Robustness and Uncertaintycited by 514
  6. 2019Likelihood Ratios for Out-of-Distribution Detectioncited by 453
  7. 2018Do Deep Generative Models Know What They Don't Know?cited by 443
  8. 2020CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instancescited by 441
  9. 2021CFLOW-AD: Real-Time Unsupervised Anomaly Detection with Localization via Conditional Normalizing Flowscited by 321
  10. 2020Sub-Image Anomaly Detection with Deep Pyramid Correspondencescited by 300
  11. 2021FastFlow: Unsupervised Anomaly Detection and Localization via 2D Normalizing Flowscited by 227
  12. 2019PyOD: A Python Toolbox for Scalable Outlier Detectioncited by 222
  13. 2020Why Normalizing Flows Fail to Detect Out-of-Distribution Datacited by 221
  14. 2020Same Same But DifferNet: Semi-Supervised Defect Detection with Normalizing Flowscited by 212
  15. 2020Classification-Based Anomaly Detection for General Datacited by 211
  16. 2019OCGAN: One-class Novelty Detection Using GANs with Constrained Latent Representationscited by 199
  17. 2019Input complexity and out-of-distribution detection with likelihood-based generative modelscited by 186
  18. 2021A Unified Survey on Anomaly, Novelty, Open-Set, and Out-of-Distribution Detection: Solutions and Future Challengescited by 154
  19. 2019Guided Image Generation with Conditional Invertible Neural Networkscited by 147
  20. 2020Deep Nearest Neighbor Anomaly Detectioncited by 104
  21. 2021Understanding Failures in Out-of-Distribution Detection with Deep Generative Modelscited by 89
  22. 2020Understanding Anomaly Detection with Deep Invertible Networks through Hierarchies of Distributions and Featurescited by 64
  23. 2021Autoencoding Under Normalization Constraintscited by 26
  24. 2021Transformaly -- Two (Feature Spaces) Are Better Than Onecited by 25
  25. 2018Anomaly Detection for Skin Disease Images Using Variational Autoencodercited by 20
  26. 2019VELC: A New Variational AutoEncoder Based Model for Time Series Anomaly Detectioncited by 7
  27. 2019RAD: On-line Anomaly Detection for Highly Unreliable Datacited by 3

Built on by

Cited by year

Citing papers per year: 2023: 1; 2024: 1; 2025: 1.

3 papers.