Skip to main content
QUICK REVIEW

[Paper Review] Unsupervised Industrial Anomaly Detection via Pattern Generative and Contrastive Networks

Jianfeng Huang, Chenyang Li|arXiv (Cornell University)|Jul 20, 2022
Anomaly Detection Techniques and ApplicationsComputer Science4 citations
TL;DR

This paper proposes a Vision Transformer-based unsupervised anomaly detection method that combines pattern generation and contrastive learning to detect industrial defects without labeled anomaly data. By training a VIT-based decoder to reconstruct missing image patches and using Siamese networks to compare generated and real patches, the method achieves 99.8% AUC on MVTec, outperforming prior SOTA approaches.

ABSTRACT

It is hard to collect enough flaw images for training deep learning network in industrial production. Therefore, existing industrial anomaly detection methods prefer to use CNN-based unsupervised detection and localization network to achieve this task. However, these methods always fail when there are varieties happened in new signals since traditional end-to-end networks suffer barriers of fitting nonlinear model in high-dimensional space. Moreover, they have a memory library by clustering the feature of normal images essentially, which cause it is not robust to texture change. To this end, we propose the Vision Transformer based (VIT-based) unsupervised anomaly detection network. It utilizes a hierarchical task learning and human experience to enhance its interpretability. Our network consists of pattern generation and comparison networks. Pattern generation network uses two VIT-based encoder modules to extract the feature of two consecutive image patches, then uses VIT-based decoder module to learn the human designed style of these features and predict the third image patch. After this, we use the Siamese-based network to compute the similarity of the generation image patch and original image patch. Finally, we refine the anomaly localization by the bi-directional inference strategy. Comparison experiments on public dataset MVTec dataset show our method achieves 99.8% AUC, which surpasses previous state-of-the-art methods. In addition, we give a qualitative illustration on our own leather and cloth datasets. The accurate segment results strongly prove the accuracy of our method in anomaly detection.

Motivation & Objective

  • Address the challenge of limited availability of labeled defect images in industrial settings.
  • Overcome the limitations of CNN-based unsupervised methods in handling complex texture variations and nonlinear patterns.
  • Improve robustness to texture changes and generalization in high-dimensional feature spaces.
  • Enhance interpretability by incorporating human-designed pattern priors and hierarchical task learning.
  • Achieve state-of-the-art performance in anomaly detection and localization on industrial datasets.

Proposed method

  • Utilizes a Vision Transformer (ViT)-based encoder to extract features from two consecutive image patches.
  • Employs a ViT-based decoder to generate the third image patch based on the encoded features, guided by human-designed style patterns.
  • Applies a Siamese network to compute similarity between the generated patch and the original ground-truth patch.
  • Uses bi-directional inference to refine anomaly localization by aggregating predictions from multiple spatial perspectives.
  • Integrates hierarchical task learning with human experience to improve model interpretability and feature representation.
  • Leverages contrastive learning through similarity computation to highlight deviations indicative of anomalies.

Experimental results

Research questions

  • RQ1Can a VIT-based architecture outperform CNN-based models in unsupervised industrial anomaly detection under limited anomaly data?
  • RQ2How effective is pattern generation with human-designed style priors in improving anomaly detection robustness?
  • RQ3To what extent does contrastive learning between generated and real patches enhance localization accuracy?
  • RQ4Can bi-directional inference improve anomaly localization consistency and precision?
  • RQ5How does the method generalize to real-world industrial datasets with complex textures and variations?

Key findings

  • The proposed method achieves 99.8% AUC on the MVTec benchmark, surpassing previous state-of-the-art methods.
  • Qualitative results on proprietary leather and cloth datasets demonstrate highly accurate and detailed anomaly segmentation.
  • The model exhibits strong robustness to texture variations due to the disentangled pattern generation and contrastive learning mechanism.
  • The integration of human-designed style priors enhances interpretability and improves feature representation in high-dimensional space.
  • Bi-directional inference significantly improves localization precision by reducing false positives and enhancing spatial consistency.
  • The method generalizes well to unseen industrial materials, as validated on real-world datasets beyond public benchmarks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.