TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Industrial Anomaly Detection and Localization Using Weakly...

Industrial Anomaly Detection and Localization Using Weakly-Supervised Residual Transformers

Hanxi Li, Jingqi Wu, Deyin Liu, Lin Wu, Hao Chen, Mingwen Wang, Chunhua Shen

2023-06-06Anomaly LocalizationUnsupervised Anomaly DetectionAnomaly DetectionSupervised Anomaly Detection
PaperPDF

Abstract

Recent advancements in industrial anomaly detection (AD) have demonstrated that incorporating a small number of anomalous samples during training can significantly enhance accuracy. However, this improvement often comes at the cost of extensive annotation efforts, which are impractical for many real-world applications. In this paper, we introduce a novel framework, Weak}ly-supervised RESidual Transformer (WeakREST), designed to achieve high anomaly detection accuracy while minimizing the reliance on manual annotations. First, we reformulate the pixel-wise anomaly localization task into a block-wise classification problem. Second, we introduce a residual-based feature representation called Positional Fast Anomaly Residuals (PosFAR) which captures anomalous patterns more effectively. To leverage this feature, we adapt the Swin Transformer for enhanced anomaly detection and localization. Additionally, we propose a weak annotation approach, utilizing bounding boxes and image tags to define anomalous regions. This approach establishes a semi-supervised learning context that reduces the dependency on precise pixel-level labels. To further improve the learning process, we develop a novel ResMixMatch algorithm, capable of handling the interplay between weak labels and residual-based representations. On the benchmark dataset MVTec-AD, our method achieves an Average Precision (AP) of $83.0\%$, surpassing the previous best result of $82.7\%$ in the unsupervised setting. In the supervised AD setting, WeakREST attains an AP of $87.6\%$, outperforming the previous best of $86.0\%$. Notably, even when using weaker annotations such as bounding boxes, WeakREST exceeds the performance of leading methods relying on pixel-wise supervision, achieving an AP of $87.1\%$ compared to the prior best of $86.0\%$ on MVTec-AD.

Results

TaskDatasetMetricValueModel
Anomaly DetectionBTADDetection AUROC94.4WeakREST-Un
Anomaly DetectionBTADSegmentation AP63.1WeakREST-Un
Anomaly DetectionBTADSegmentation AUPRO84.9WeakREST-Un
Anomaly DetectionBTADSegmentation AUROC98.7WeakREST-Un
Anomaly DetectionMVTec ADDetection AUROC99.6WeakREST-Un
Anomaly DetectionMVTec ADFPS25.2WeakREST-Un
Anomaly DetectionMVTec ADSegmentation AP83WeakREST-Un
Anomaly DetectionMVTec ADSegmentation AUPRO97.6WeakREST-Un
Anomaly DetectionMVTec ADSegmentation AUROC99.3WeakREST-Un
Anomaly DetectionKolektorSDD2Segmentation AP76.9WeakREST-Un
Anomaly DetectionKolektorSDD2Segmentation AUPRO98.5WeakREST-Un
Anomaly DetectionKolektorSDD2Segmentation AUROC99.7WeakREST-Un
Anomaly DetectionBTADDetection AUROC96.5WeakREST-Block
Anomaly DetectionBTADSegmentation AP84.6WeakREST-Block
Anomaly DetectionBTADSegmentation AUPRO90.8WeakREST-Block
Anomaly DetectionBTADSegmentation AUROC99.3WeakREST-Block
Anomaly DetectionMVTec ADDetection AUROC99.8WeakREST-Block
Anomaly DetectionMVTec ADSegmentation AP87.6WeakREST-Block
Anomaly DetectionMVTec ADSegmentation AUPRO98.4WeakREST-Block
Anomaly DetectionMVTec ADSegmentation AUROC99.7WeakREST-Block
Unsupervised Anomaly DetectionKolektorSDD2Segmentation AP76.9WeakREST-Un
Unsupervised Anomaly DetectionKolektorSDD2Segmentation AUPRO98.5WeakREST-Un
Unsupervised Anomaly DetectionKolektorSDD2Segmentation AUROC99.7WeakREST-Un

Related Papers

Multi-Stage Prompt Inference Attacks on Enterprise LLM Systems2025-07-213DKeyAD: High-Resolution 3D Point Cloud Anomaly Detection via Keypoint-Guided Point Clustering2025-07-17A Semi-Supervised Learning Method for the Identification of Bad Exposures in Large Imaging Surveys2025-07-17A Privacy-Preserving Framework for Advertising Personalization Incorporating Federated Learning and Differential Privacy2025-07-16Bridge Feature Matching and Cross-Modal Alignment with Mutual-filtering for Zero-shot Anomaly Detection2025-07-15Adversarial Activation Patching: A Framework for Detecting and Mitigating Emergent Deception in Safety-Aligned Transformers2025-07-12Towards High-Resolution 3D Anomaly Detection: A Scalable Dataset and Real-Time Framework for Subtle Industrial Defects2025-07-10seMCD: Sequentially implemented Monte Carlo depth computation with statistical guarantees2025-07-08