DisCoPatch: Taming Adversarially-driven Batch Statistics for Improved Out-of-Distribution Detection
Not on the map. Why?
Abstract (arXiv)
Out-of-distribution (OOD) detection holds significant importance across many applications. While semantic and domain-shift OOD problems are well-studied, this work focuses on covariate shifts - subtle variations in the data distribution that can degrade machine learning performance. We hypothesize that detecting these subtle shifts can improve our understanding of in-distribution boundaries, ultimately improving OOD detection. In adversarial discriminators trained with Batch Normalization (BN), real and adversarial samples form distinct domains with unique batch statistics - a property we exploit for OOD detection. We introduce DisCoPatch, an unsupervised Adversarial Variational Autoencoder (VAE) framework that harnesses this mechanism. During inference, batches consist of patches from the same image, ensuring a consistent data distribution that allows the model to rely on batch statistics. DisCoPatch uses the VAE's suboptimal outputs (generated and reconstructed) as negative samples to train the discriminator, thereby improving its ability to delineate the boundary between in-distribution samples and covariate shifts. By tightening this boundary, DisCoPatch achieves state-of-the-art results in public OOD detection benchmarks. The proposed model not only excels in detecting covariate shifts, achieving 95.5% AUROC on ImageNet-1K(-C) but also outperforms all prior methods on public Near-OOD (95.0%) benchmarks. With a compact model size of 25MB, it achieves high OOD detection performance at notably lower latency than existing methods, making it an efficient and practical solution for real-world OOD detection applications. The code is publicly available.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 52 of its 70 references that are in the map. First posted on arXiv 14 Jan 2025.
Builds on
52 of 70 references.
References · 52
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
- 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,773
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
- 2013Describing Textures in the Wildcited by 2,110
- 2018Spectral Normalization for Generative Adversarial Networkscited by 1,618
- 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,472
- 2020Energy-based Out-of-distribution Detectioncited by 1,296
- 2017Deeper, Broader and Artier Domain Generalizationcited by 983
- 2020Designing Network Design Spacescited by 954
38 more
- 2018Deep Anomaly Detection with Outlier Exposurecited by 939
- 2021Generalized Out-of-Distribution Detection: A Surveycited by 796
- 2021Towards Total Recall in Industrial Anomaly Detectioncited by 772
- 2017Unsupervised Anomaly Detection with Generative Adversarial Networks to Guide Marker Discoverycited by 566
- 2019Memorizing Normality to Detect Anomaly: Memory-augmented Deep Autoencoder for Unsupervised Anomaly Detectioncited by 560
- 2016Weight Normalization: A Simple Reparameterization to Accelerate Training of Deep Neural Networkscited by 541
- 2021Tackling the Generative Learning Trilemma with Denoising Diffusion GANscited by 515
- 2019Scaling Out-of-Distribution Detection for Real-World Settingscited by 465
- 2018Do Deep Generative Models Know What They Don't Know?cited by 443
- 2015Autoencoding beyond pixels using a learned similarity metriccited by 407
- 2022ViM: Out-Of-Distribution with Virtual-logit Matchingcited by 404
- 2021Open-Set Recognition: a Good Closed-Set Classifier is All You Need?cited by 351
- 2022OpenOOD: Benchmarking Generalized Out-of-Distribution Detectioncited by 267
- 2021MOS: Towards Scaling Out-of-distribution Detection for Large Semantic Spacecited by 233
- 2020Why Normalizing Flows Fail to Detect Out-of-Distribution Datacited by 220
- 2022Extremely Simple Activation Shaping for Out-of-Distribution Detectioncited by 212
- 2019Diagnosing and Enhancing VAE Modelscited by 192
- 2019Input complexity and out-of-distribution detection with likelihood-based generative modelscited by 186
- 2020Likelihood Regret: An Out-of-Distribution Detection Score For Variational Auto-encodercited by 145
- 2021OpenGAN: Open-Set Recognition via Open Data Generationcited by 135
- 2023In or Out? Fixing ImageNet Out-of-Distribution Detection Evaluationcited by 132
- 2022Denoising diffusion models for out-of-distribution detectioncited by 102
- 2023Scaling for Training Time and Post-hoc Out-of-distribution Detection Enhancementcited by 77
- 2018Improving Reconstruction Autoencoder Out-of-distribution Detection with Mahalanobis Distancecited by 74
- 2020Density of States Estimation for Out-of-Distribution Detectioncited by 74
- 2023Nearest Neighbor Guidance for Out-of-Distribution Detectioncited by 64
- 2021Hierarchical VAEs Know What They Don't Knowcited by 58
- 2023Unsupervised Out-of-Distribution Detection with Diffusion Inpaintingcited by 57
- 2023Fast Decision Boundary based Out-of-Distribution Detectorcited by 48
- 2023Rethinking Out-of-distribution (OOD) Detection: Masked Image Modeling is All You Needcited by 46
- 2020Batch Normalization Increases Adversarial Vulnerability and Decreases Adversarial Transferability: A Non-Robust Feature Perspectivecited by 35
- 2021Unsupervised Brain Anomaly Detection and Segmentation with Transformerscited by 34
- 2022Removing Batch Normalization Boosts Adversarial Trainingcited by 24
- 2020Out-Of-Distribution Detection With Subspace Techniques And Probabilistic Modeling Of Featurescited by 20
- 2023Catch Missing Details: Image Reconstruction with Frequency Augmented Variational Autoencodercited by 18
- 2017On the Effects of Batch and Weight Normalization in Generative Adversarial Networkscited by 13
- 2021Exploring The Effect of High-frequency Components in GANs Trainingcited by 10
- 2020AVAE: Adversarial Variational Auto Encodercited by 6
50 most cited of 52 All 52 (JSON)
Built on by
Citing papers per year: 2026: 1.
1 paper.