SANFlow: Semantic-Aware Normalizing Flow for Anomaly Detection
Daehyun Kim, Sungyong Baik, Tae Hyun Kim
Abstract
Visual anomaly detection, the task of detecting abnormal characteristics in images, is challenging due to the rarity and unpredictability of anomalies. In order to reliably model the distribution of normality and detect anomalies, a few works have attempted to exploit the density estimation ability of normalizing flow (NF). However, previous NF-based methods forcibly transform the distribution of all features into a single distribution (e.g., unit normal distribution), even when the features can have locally distinct semantic information and thus follow different distributions. We claim that forcibly learning to transform such diverse distributions to a single distribution with a single network will cause the learning difficulty, thereby limiting the capacity of a network to discriminate between normal and abnormal data. As such, we propose to transform the distribution of features at each location of a given input image to different distributions. Specifically, we train NF to map the feature distributions of normal data to different distributions at each location in the given image. Furthermore, to enhance the discriminability, we also train NF to map the distribution of abnormal data to a distribution significantly different from that of normal data. The experimental results highlight the efficacy of the proposed framework in improving the density modeling and thus anomaly detection performance.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext fe58dd6a-bff0-459d-9bf2-1813f983ac71Cited by top-tier papers4
- Unifying Reconstruction and Density Estimation via Invertible Contraction Mapping in One-Class ClassificationXiaolei Wang, Tianhong Dai, Huihui Bai, Yao Zhao et al.NeurIPS 2025 · 2 citations
- AA-CLIP: Enhancing Zero-Shot Anomaly Detection via Anomaly-Aware CLIPWenxin Ma, Xu Zhang, Qingsong Yao, Fenghe Tang et al.CVPR 2025
- DLVP-CLIP: Enhancing Fine-Grained Zero-Shot Anomaly Detection via Dynamic Local Visual PromptingGaowei Zhang, Lihe ZhangCVPR 2026
- Distribution Prototype Diffusion Learning for Open-set Supervised Anomaly DetectionFuyun Wang, Tong Zhang, Yuanzhi Wang, Yide Qiu et al.CVPR 2025
Builds on12
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- Towards Total Recall in Industrial Anomaly DetectionKarsten Roth, Latha Pemula, Joaquin Zepeda, Bernhard Schölkopf et al.CVPR 2022 · 1,301 citations
- Self-Supervised Predictive Convolutional Attentive Block for Anomaly DetectionNicolae-Catalin Ristea, Neelu Madan, Radu Tudor Ionescu, Kamal Nasrollahi et al.CVPR 2022 · 264 citations
- Iterative energy-based projection on a normal data manifold for anomaly localizationDavid Dehaene, Oriel Frigo, Sébastien Combrexelle, Pierre ElineICLR 2020 · 157 citations
- Semi-Supervised Learning with Normalizing FlowsPavel Izmailov, Polina Kirichenko, Marc Finzi, Andrew Gordon WilsonICML 2020 · 134 citations
Related papers
- AE-FLOW: Autoencoders with Normalizing Flows for Medical Images Anomaly DetectionYuzhong Zhao, Qiaoqiao Ding, Xiaoqun ZhangICLR 2023
- Deep Residual Flow for Out of Distribution DetectionEv Zisselman, Aviv TamarCVPR 2020
- Detecting Multivariate Time Series Anomalies with Zero Known LabelQihang Zhou, Jiming Chen, Haoyu Liu, Shibo He et al.AAAI 2023 · 64 citations
- Graph-Augmented Normalizing Flows for Anomaly Detection of Multiple Time SeriesEnyan Dai, Jie ChenICLR 2022 · 111 citations
- Denoising Normalizing FlowChristian Horvat, Jean-Pascal PfisterNeurIPS 2021 · 39 citations
