UniFormaly: Towards Task-Agnostic Unified Framework for Visual Anomaly Detection

Yujin Lee, Harin Lim, Seoyoon Jang, Hyunsoo Yoon
7/24/2023
cs.CVcs.AI

Official code: YoojLee/Uniformaly (16 stars, Apache-2.0, last commit 2023-09-15).

Abstract

Visual anomaly detection aims to learn normality from normal images, but existing approaches are fragmented across various tasks: defect detection, semantic anomaly detection, multi-class anomaly detection, and anomaly clustering. This one-task-one-model approach is resource-intensive and incurs high maintenance costs as the number of tasks increases. We present UniFormaly, a universal and powerful anomaly detection framework. We emphasize the necessity of our off-the-shelf approach by pointing out a suboptimal issue in online encoder-based methods. We introduce Back Patch Masking (BPM) and top k-ratio feature matching to achieve unified anomaly detection. BPM eliminates irrelevant background regions using a self-attention map from self-supervised ViTs. This operates in a task-agnostic manner and alleviates memory storage consumption, scaling to tasks with large-scale datasets. Top k-ratio feature matching unifies anomaly levels and tasks by casting anomaly scoring into multiple instance learning. Finally, UniFormaly achieves outstanding results on various tasks and datasets. Codes are available at https://github.com/YoojLee/Uniformaly.

View on arXivView PDF

Code Implementations(1)

YoojLee/UniformalyOfficial100%
Apache-2.0

Uniformaly: Towards Task-Agnostic Unified Anomaly Detection

162Shell, PythonSep 15, 20233 years agoApache-2.0

Similar Papers

Cite this paper

@article{lee2023uniformaly,
  title  = {UniFormaly: Towards Task-Agnostic Unified Framework for Visual Anomaly Detection},
  author = {Yujin Lee and Harin Lim and Seoyoon Jang and Hyunsoo Yoon},
  year   = {2023},
  eprint = {2307.12540},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.12540v2}
}

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

Discussion