cs.CVSep 27, 2026

Focus and Supplement: Dual-Enhanced Vision Transformer for Multi-Class Anomaly Classification

Authors: Xurui Li, Enjie Xu, Chenzhou Li, Shilei Zeng, Dayou Huang, Tianyi Ma, Yu Zhou

Organizations: School of Electronic Information and Communications, Huazhong University of Science and Technology

Abstract

Multi-class anomaly classification in industrial vision remains challenging due to noisy/incomplete anomaly representations and the unknown number of anomaly classes. To overcome this, we propose MACO, a novel multi-class anomaly classification framework that learns comprehensive representations and dynamically estimates class number without prior knowledge. First, a soft-focus attention uses anomaly maps to concentrate on relevant abnormal regions, while suppressing background noise. Second, auxiliary classification ([A-CLS]) tokens complement the [CLS] token. They collectively attend to diverse anomaly sub-regions, yielding more holistic and discriminative features. These [A-CLS] tokens are also effective across more tasks and domains. To infer the class number, we propose Correlation-based Number Estimation strategy. It computes the average correlation among labeled classes and transfers its separability cue to the unlabeled set. Experiments on MVTec AD and MTD datasets demonstrate our superiority. Under known class number, MACO improves ARI by 6.5% and \textbf{16.3%} on both datasets, respectively. In the more challenging unknown number scenario, it achieves an \textbf{11.2%} NMI gain on MTD and outperforms existing number estimation strategies by \textbf{24.1%} UPS on MVTec AD. Code will be released at https://github.com/HUST-SLOW/MACO.

Figures & tables

Explore similar work

CardsList
  1. DuoAD: Leveraging [CLS] Dual Characteristics for Training-Free Few-Shot Anomaly Detection

    Jul 27, 2026Jyun-Ze Tang, Po-Han Huang, Ming-Ching Chang +2Multimodal Anomaly DetectionVision Transformer

  2. SwinAD: Multi-stage feature reconstruction for unsupervised industrial anomaly detection

    Jul 16, 2026Huong Ninh, Chien Thai, Mai Xuan Trang +3Multimodal Industrial Anomaly DetectionGraph Anomaly Detection

  3. Anomaly-Aware Vision-Language Adapters for Zero-Shot Anomaly Detection

    May 12, 2026Muhammad Aqeel, Maham Nazir, Uzair Khan +2Vision-Language Model AdaptationDino