SOTAVerified

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

2024-10-31Code Available0· sign in to hype

Xiayan Ji, Anton Xue, Eric Wong, Oleg Sokolsky, Insup Lee

Code Available — Be the first to reproduce this paper.

Reproduce

Code

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.

Tasks

Reproductions