AR-Pro: Counterfactual Explanations for Anomaly Repair with Formal Properties

Xiayan Ji, Anton Xue, Eric Wong, Oleg Sokolsky, Insup Lee
10/31/2024
cs.LG

Official code: xjiae/arpro (3 stars, last commit 2025-11-02).

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.

View on arXivView PDF

Code Implementations(1)

xjiae/arproOfficial100%
30Shell, PythonMar 29, 202411 months ago

Similar Papers

Cite this paper

@article{ji2024arpro,
  title  = {AR-Pro: Counterfactual Explanations for Anomaly Repair with Formal Properties},
  author = {Xiayan Ji and Anton Xue and Eric Wong and Oleg Sokolsky and Insup Lee},
  year   = {2024},
  eprint = {2410.24178},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2410.24178},
  url    = {http://arxiv.org/abs/2410.24178v1},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.24178.svg)](https://codeofpaper.com/paper/2410.24178)

Discussion