ShortcutBreaker: Low-Rank Noisy Bottleneck with Global Perturbation Attention for Multi-Class Unsupervised Anomaly Detection
Peng Tang, Xiaoxiao Yan, Xiaobin Hu, Yuning Cui, Donghao Luo, Jiangning Zhang, Pengcheng Xu, Jinlong Peng, Qingdong He, Feiyue Huang, Song Xue, Tobias Lasser
TL;DR
MUAD suffers from identity shortcuts that reduce anomaly discrimination when learning a unified model. ShortcutBreaker addresses this with a low-rank noisy bottleneck (LRNB) that prevents trivial identity reproduction and a global perturbation attention (GPA) that disrupts shortcut pathways in the decoder, implemented on a frozen DINO-pretrained ViT encoder with a learnable Transformer decoder. Evaluations on MVTec-AD, ViSA, Real-IAD, and Universal Medical show consistent state-of-the-art image- and pixel-level detection across industrial and medical domains, with LRNB contributing the most and GPA further enhancing robustness. The work offers a practical, scalable MUAD solution and demonstrates strong generalization to diverse, real-world data while providing clear ablation-driven insights into component effectiveness.
Abstract
Multi-class unsupervised anomaly detection (MUAD) has garnered growing research interest, as it seeks to develop a unified model for anomaly detection across multiple classes, i.e., eliminating the need to train separate models for distinct objects and thereby saving substantial computational resources. Under the MUAD setting, while advanced Transformer-based architectures have brought significant performance improvements, identity shortcuts persist: they directly copy inputs to outputs, narrowing the gap in reconstruction errors between normal and abnormal cases, and thereby making the two harder to distinguish. Therefore, we propose ShortcutBreaker, a novel unified feature-reconstruction framework for MUAD tasks, featuring two key innovations to address the issue of shortcuts. First, drawing on matrix rank inequality, we design a low-rank noisy bottleneck (LRNB) to project highdimensional features into a low-rank latent space, and theoretically demonstrate its capacity to prevent trivial identity reproduction. Second, leveraging ViTs global modeling capability instead of merely focusing on local features, we incorporate a global perturbation attention to prevent information shortcuts in the decoders. Extensive experiments are performed on four widely used anomaly detection benchmarks, including three industrial datasets (MVTec-AD, ViSA, and Real-IAD) and one medical dataset (Universal Medical). The proposed method achieves a remarkable image-level AUROC of 99.8%, 98.9%, 90.6%, and 87.8% on these four datasets, respectively, consistently outperforming previous MUAD methods across different scenarios.
