A Discrepancy Aware Framework for Robust Anomaly Detection

Yuxuan Cai, Dingkang Liang, Dongliang Luo, Xinwei He, Xin Yang +1 more
10/11/2023
cs.CV

Official code: caiyuxuan1120/DAF (32 stars, last commit 2023-11-01).

Abstract

Defect detection is a critical research area in artificial intelligence. Recently, synthetic data-based self-supervised learning has shown great potential on this task. Although many sophisticated synthesizing strategies exist, little research has been done to investigate the robustness of models when faced with different strategies. In this paper, we focus on this issue and find that existing methods are highly sensitive to them. To alleviate this issue, we present a Discrepancy Aware Framework (DAF), which demonstrates robust performance consistently with simple and cheap strategies across different anomaly detection benchmarks. We hypothesize that the high sensitivity to synthetic data of existing self-supervised methods arises from their heavy reliance on the visual appearance of synthetic data during decoding. In contrast, our method leverages an appearance-agnostic cue to guide the decoder in identifying defects, thereby alleviating its reliance on synthetic appearance. To this end, inspired by existing knowledge distillation methods, we employ a teacher-student network, which is trained based on synthesized outliers, to compute the discrepancy map as the cue. Extensive experiments on two challenging datasets prove the robustness of our method. Under the simple synthesis strategies, it outperforms existing methods by a large margin. Furthermore, it also achieves the state-of-the-art localization performance. Code is available at: https://github.com/caiyuxuan1120/DAF.

View on arXivView PDF

Code Implementations(1)

caiyuxuan1120/DAFOfficial100%
324Shell, PythonJun 8, 20232 years ago

Similar Papers

Cite this paper

@article{cai2023discrepancy,
  title  = {A Discrepancy Aware Framework for Robust Anomaly Detection},
  author = {Yuxuan Cai and Dingkang Liang and Dongliang Luo and Xinwei He and Xin Yang and Xiang Bai},
  year   = {2023},
  eprint = {2310.07585},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.07585v1}
}

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/2310.07585.svg)](https://codeofpaper.com/paper/2310.07585)

Discussion