Binary Noise for Binary Tasks: Masked Bernoulli Diffusion for Unsupervised Anomaly Detection
On the map: Diffusion models → Flow matching, time series and science
Abstract (arXiv)
The high performance of denoising diffusion models for image generation has paved the way for their application in unsupervised medical anomaly detection. As diffusion-based methods require a lot of GPU memory and have long sampling times, we present a novel and fast unsupervised anomaly detection approach based on latent Bernoulli diffusion models. We first apply an autoencoder to compress the input images into a binary latent representation. Next, a diffusion model that follows a Bernoulli noise schedule is employed to this latent space and trained to restore binary latent representations from perturbed ones. The binary nature of this diffusion model allows us to identify entries in the latent space that have a high probability of flipping their binary code during the denoising process, which indicates out-of-distribution data. We propose a masking algorithm based on these probabilities, which improves the anomaly detection scores. We achieve state-of-the-art performance compared to other diffusion-based unsupervised anomaly detection algorithms while significantly reducing sampling time and memory consumption. The code is available at https://github.com/JuliaWolleb/Anomaly_berdiff.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Placed in Flow matching, time series and science, one of 14 directions in Diffusion models. Builds on 23 of its 31 references that are in the map. First posted on arXiv 18 Mar 2024.
Builds on
23 of 31 references.
References · 23
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,185
- 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,005
- 2019An Introduction to Variational Autoencoderscited by 997
- 2018Identifying the Best Machine Learning Algorithms for Brain Tumor Segmentation, Progression Assessment, and Overall Survival Prediction in the BRATS Challengecited by 508
- 2022Diffusion Models for Medical Anomaly Detectioncited by 231
- 2017Towards Accurate Binary Convolutional Neural Networkcited by 148
- 2022Fast Unsupervised Brain Anomaly Detection and Segmentation with Diffusion Modelscited by 96
- 2019Unsupervised Anomaly Localization using Variational Auto-Encoderscited by 73
- 2022What is Healthy? Generative Counterfactual Diffusion for Lesion Localizationcited by 52
- 2023Mask, Stitch, and Re-Sample: Enhancing Robustness and Generalizability in Anomaly Detection through Automatic Diffusion Modelscited by 48
- 2020Anomaly detection through latent space restoration using vector-quantized variational autoencoderscited by 45
11 more
- 2023Patched Diffusion Models for Unsupervised Anomaly Detection in Brain MRIcited by 45
- 2023BerDiff: Conditional Bernoulli Diffusion Model for Medical Image Segmentationcited by 27
- 2023Unsupervised Anomaly Detection in Medical Images Using Masked Diffusion Modelcited by 25
- 2021Challenging Current Semi-Supervised Anomaly Segmentation Methods for Brain MRIcited by 23
- 2023The role of noise in denoising models for anomaly detection in medical imagescited by 23
- 2023Binary Latent Diffusioncited by 18
- 2023Modality Cycles with Masked Conditional Diffusion for Unsupervised Anomaly Segmentation in MRIcited by 12
- 2023DISYRE: Diffusion-Inspired SYnthetic REstoration for Unsupervised Anomaly Detectioncited by 8
- 2023Achieving state-of-the-art performance in the Medical Out-of-Distribution (MOOD) challenge using plausible synthetic anomaliescited by 5
- 2023Histogram- and Diffusion-Based Medical Out-of-Distribution Detectioncited by 2
- 2023Position Regression for Unsupervised Anomaly Detectioncited by 1
Built on by
Citing papers per year: 2024: 4; 2025: 1; 2026: 2.
7 papers.
- 2024Deep Generative Models for 3D Medical Image Synthesiscited by 14
- 2024Enhancing Reconstruction-Based Out-of-Distribution Detection in Brain MRI with Model and Metric Ensemblescited by 4
- 2024Denoising Diffusion Models for Anomaly Localization in Medical Imagescited by 3
- 2024Selective Test-Time Adaptation for Unsupervised Anomaly Detection using Neural Implicit Representationscited by 1
- 2025GL-LCM: Global-Local Latent Consistency Models for Fast High-Resolution Bone Suppression in Chest X-Ray Imagescited by 1
- 2026Group Equivariant Diffusion for Anomaly Detection in Computational Cytologycited by 0
- 2026Unsupervised Brain Anomaly Detection as a Bayesian Inverse Problem with Diffusion Priorcited by 0
- 2026Unsupervised Brain Anomaly Detection as a Bayesian Inverse Problem with Diffusion Prior21 Sep 2026
- 2026Group Equivariant Diffusion for Anomaly Detection in Computational Cytology28 Jul 2026
- 2025GL-LCM: Global-Local Latent Consistency Models for Fast High-Resolution Bone Suppression in Chest X-Ray Images5 Aug 2025
- 2024Enhancing Reconstruction-Based Out-of-Distribution Detection in Brain MRI with Model and Metric Ensembles23 Dec 2024
- 2024Denoising Diffusion Models for Anomaly Localization in Medical Images31 Oct 2024
- 2024Deep Generative Models for 3D Medical Image Synthesis23 Oct 2024
- 2024Selective Test-Time Adaptation for Unsupervised Anomaly Detection using Neural Implicit Representations4 Oct 2024
Similar, not cited
Close in wording, no citation either way
- 2024Dynamic Addition of Noise in a Diffusion Model for Anomaly Detection
- 2024GLAD: Towards Better Reconstruction with Global and Local Adaptive Diffusion Models for Unsupervised Anomaly Detection
- 2025Correcting Deviations from Normality: A Reformulated Diffusion Model for Multi-Class Unsupervised Anomaly Detection
- 2025MAD-AD: Masked Diffusion for Unsupervised Brain Anomaly Detection
- 2023DiffusionAD: Norm-guided One-step Denoising Diffusion for Anomaly Detection
- 2023Diffusion Noise Feature: Accurate and Fast Generated Image Detection
- 2024Anomaly detection using Diffusion-based methods
- 2024Synomaly Noise and Multi-Stage Diffusion: A Novel Approach for Unsupervised Anomaly Detection in Medical Images