AR-Pro: Counterfactual Explanations for Anomaly Repair with Formal Properties
Xiayan Ji, Anton Xue, Eric Wong, Oleg Sokolsky, Insup Lee
Abstract
Anomaly detection is widely used for identifying critical errors and suspicious behaviors, but current methods lack interpretability. We leverage common properties of existing methods and recent advances in generative models to introduce counterfactual explanations for anomaly detection. Given an input, we generate its counterfactual as a diffusion-based repair that shows what a non-anomalous version should have looked like. A key advantage of this approach is that it enables a domain-independent formal specification of explainability desiderata, offering a unified framework for generating and evaluating explanations. We demonstrate the effectiveness of our anomaly explainability framework, AR-Pro, on vision (MVTec, VisA) and time-series (SWaT, WADI, HAI) anomaly datasets. The code used for the experiments is accessible at: https://github.com/xjiae/arpro.
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 d2c55700-440c-4b96-bf5e-bb3f4cf9f850Cited by top-tier papers2
- Reimagining Anomalies: What If Anomalies Were Normal?Philipp Liznerski, Saurabh Varshneya, Ece Calikus, Puyu Wang et al.AAAI 2026 · 4 citations
- DCFO: Density-Based Counterfactuals for OutliersTommaso Amico, Pernille Matthews, Lena Krieger, Arthur Zimek et al.KDD 2026
Builds on11
- Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
- Diffusion Models Beat GANs on Image SynthesisPrafulla Dhariwal, Alexander Quinn NicholNeurIPS 2021 · 13,211 citations
- SDEdit: Guided Image Synthesis and Editing with Stochastic Differential EquationsChenlin Meng, Yutong He, Yang Song, Jiaming Song et al.ICLR 2022 · 2,128 citations
- One Fits All: Power General Time Series Analysis by Pretrained LMTian Zhou, Peisong Niu, Xue Wang, Liang Sun et al.NeurIPS 2023 · 1,178 citations
- Anomaly Transformer: Time Series Anomaly Detection with Association DiscrepancyJiehui Xu, Haixu Wu, Jianmin Wang, Mingsheng LongICLR 2022 · 960 citations
Related papers
- One-for-More: Continual Diffusion Model for Anomaly DetectionXiaofan Li, Xin Tan, Zhuo Chen, Zhizhong Zhang et al.CVPR 2025
- Unseen Visual Anomaly GenerationHan Sun, Yunkang Cao, Hao Dong, Olga FinkCVPR 2025
- Generating and Reweighting Dense Contrastive Patterns for Unsupervised Anomaly DetectionSongmin Dai, Yifan Wu, Xiaoqiang Li, Xiangyang XueAAAI 2024 · 25 citations
- Removing Anomalies as Noises for Industrial Defect LocalizationFanbin Lu, Xufeng Yao, Chi-Wing Fu, Jiaya JiaICCV 2023 · 53 citations
- Unsupervised Surface Anomaly Detection with Diffusion Probabilistic ModelXinyi Zhang, Naiqi Li, Jiawei Li, Tao Dai et al.ICCV 2023 · 112 citations
