GeneralAD: Anomaly Detection Across Domains by Attending to Distorted Features

Open Access
Authors
Publication date 2025
Host editors
  • A. Leonardis
  • E. Ricci
  • S. Roth
  • O. Russakovsky
  • T. Sattler
  • G. Varol
Book title Computer Vision – ECCV 2024
Book subtitle 18th European Conference, Milan, Italy, September 29–October 4, 2024, Proceedings, Part XXXVII
ISBN
  • 9783031729126
ISBN (electronic)
  • 9783031729133
Series Lecture Notes in Computer Science
Event The 18th European Conference on Computer Vision ECCV 2024
Volume | Issue number XXXVII
Pages (from-to) 448-465
Publisher Cham: Springer
Organisations
  • Faculty of Science (FNWI) - Informatics Institute (IVI)
Abstract
In the domain of anomaly detection, methods often excel in either high-level semantic or low-level industrial benchmarks, rarely achieving cross-domain proficiency. Semantic anomalies are novelties that differ in meaning from the training set, like unseen objects in self-driving cars. In contrast, industrial anomalies are subtle defects that preserve semantic meaning, such as cracks in airplane components. In this paper, we present GeneralAD, an anomaly detection framework designed to operate in semantic, near-distribution, and industrial settings with minimal per-task adjustments. In our approach, we capitalize on the inherent design of Vision Transformers, which are trained on image patches, thereby ensuring that the last hidden states retain a patch-based structure. We propose a novel self-supervised anomaly generation module that employs straightforward operations like noise addition and shuffling to patch features to construct pseudo-abnormal samples. These features are fed to an attention-based discriminator, which is trained to score every patch in the image. With this, our method can both accurately identify anomalies at the image level and also generate interpretable anomaly maps. We extensively evaluated our approach on ten datasets, achieving state-of-the-art results in six and on-par performance in the remaining for both localization and detection tasks. Code available at https://github.com/LucStrater/GeneralAD.
Document type Conference contribution
Language English
Published at https://doi.org/10.1007/978-3-031-72913-3_25
Downloads
GeneralAD (Final published version)
Supplementary materials
Permalink to this page
Back