Context Enhancement with Reconstruction as Sequence for Unified Unsupervised Anomaly Detection

Hui-Yue Yang, Hui Chen, Lihao Liu, Zijia Lin, Kai Chen +3 more
9/10/2024
cs.CV

Official code: Nothingtolose9979/RAS (6 stars, Apache-2.0, last commit 2025-02-20).

Abstract

Unsupervised anomaly detection (AD) aims to train robust detection models using only normal samples, while can generalize well to unseen anomalies. Recent research focuses on a unified unsupervised AD setting in which only one model is trained for all classes, i.e., n-class-one-model paradigm. Feature-reconstruction-based methods achieve state-of-the-art performance in this scenario. However, existing methods often suffer from a lack of sufficient contextual awareness, thereby compromising the quality of the reconstruction. To address this issue, we introduce a novel Reconstruction as Sequence (RAS) method, which enhances the contextual correspondence during feature reconstruction from a sequence modeling perspective. In particular, based on the transformer technique, we integrate a specialized RASFormer block into RAS. This block enables the capture of spatial relationships among different image regions and enhances sequential dependencies throughout the reconstruction process. By incorporating the RASFormer block, our RAS method achieves superior contextual awareness capabilities, leading to remarkable performance. Experimental results show that our RAS significantly outperforms competing methods, well demonstrating the effectiveness and superiority of our method. Our code is available at https://github.com/Nothingtolose9979/RAS.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
60Shell, PythonAug 21, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{yang2024context,
  title  = {Context Enhancement with Reconstruction as Sequence for Unified Unsupervised Anomaly Detection},
  author = {Hui-Yue Yang and Hui Chen and Lihao Liu and Zijia Lin and Kai Chen and Liejun Wang and Jungong Han and Guiguang Ding},
  year   = {2024},
  eprint = {2409.06285},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.06285v1}
}

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

Discussion