Skip to main content
QUICK REVIEW

[Paper Review] Focus Your Distribution: Coarse-to-Fine Non-Contrastive Learning for Anomaly Detection and Localization

Ye Zheng, Xiang Wang|arXiv (Cornell University)|Oct 9, 2021
Anomaly Detection Techniques and ApplicationsComputer Science44 references6 citations
TL;DR

This paper proposes a coarse-to-fine non-contrastive learning framework for unsupervised anomaly detection and localization in industrial images, leveraging pixel- and feature-level alignment followed by dense non-contrastive learning to learn compact, discriminative normal distributions. The method achieves state-of-the-art performance on MVTec AD and Shanghai Tech Campus datasets, outperforming prior methods in detecting subtle, fine-grained defects without using abnormal samples.

ABSTRACT

The essence of unsupervised anomaly detection is to learn the compact distribution of normal samples and detect outliers as anomalies in testing. Meanwhile, the anomalies in real-world are usually subtle and fine-grained in a high-resolution image especially for industrial applications. Towards this end, we propose a novel framework for unsupervised anomaly detection and localization. Our method aims at learning dense and compact distribution from normal images with a coarse-to-fine alignment process. The coarse alignment stage standardizes the pixel-wise position of objects in both image and feature levels. The fine alignment stage then densely maximizes the similarity of features among all corresponding locations in a batch. To facilitate the learning with only normal images, we propose a new pretext task called non-contrastive learning for the fine alignment stage. Non-contrastive learning extracts robust and discriminating normal image representations without making assumptions on abnormal samples, and it thus empowers our model to generalize to various anomalous scenarios. Extensive experiments on two typical industrial datasets of MVTec AD and BenTech AD demonstrate that our framework is effective in detecting various real-world defects and achieves a new state-of-the-art in industrial unsupervised anomaly detection.

Motivation & Objective

  • To address the challenge of detecting subtle, fine-grained anomalies in industrial images where anomalies are rare and hard to label.
  • To improve the compactness and discriminativeness of normal image representations without relying on synthetic or assumed abnormal samples.
  • To develop a self-supervised pretext task that enables dense feature alignment across normal images for better anomaly localization.
  • To design a two-stage framework—coarse alignment followed by fine-grained non-contrastive learning—that mimics human visual inspection.
  • To demonstrate generalization and robustness across diverse industrial defect types on benchmark datasets.

Proposed method

  • A coarse alignment stage standardizes object positions at both pixel and feature levels using spatial transformation, aligning global context across images in a batch.
  • A fine alignment stage employs dense non-contrastive learning to maximize similarity between features at corresponding spatial locations across normal images in a batch.
  • Non-contrastive learning is formulated as a contrastive-like objective without negative pairs, using only normal images to learn robust, compact representations.
  • The method uses a wide-residual network (WR50×2) as the backbone and applies data augmentations such as color and spatial transformations to enhance robustness.
  • Feature maps from multiple pyramid levels are used to capture multi-scale representations, improving localization accuracy.
  • Anomaly scores are computed via reconstruction error or feature discrepancy, with heatmaps generated for pixel-level localization.

Experimental results

Research questions

  • RQ1Can a coarse-to-fine alignment strategy improve the detection of subtle, fine-grained anomalies in industrial images?
  • RQ2Can non-contrastive learning effectively learn compact normal feature distributions without any assumptions about abnormal patterns?
  • RQ3Does the proposed method generalize across diverse industrial defect categories, including texture and object types?
  • RQ4How does the method compare to state-of-the-art unsupervised anomaly detection models on standard benchmarks?
  • RQ5Can the model localize anomalies with high precision even when defects are visually subtle and localized?

Key findings

  • On the MVTec AD dataset, the proposed method achieves a mean PRO score of 93.0, surpassing the previous state-of-the-art (PaDiM: 92.1) and outperforming U-S (85.7).
  • On the Shanghai Tech Campus dataset, the method achieves a pixel-level AUC of 97.5 across 8 video sequences, outperforming PaDiM (92.1) and U-S (85.7).
  • The model achieves 93.1 PRO for texture categories and 93.0 for object categories on MVTec AD, indicating strong generalization across defect types.
  • Ablation studies confirm that both coarse alignment and non-contrastive learning are essential, with ablation on either component leading to significant performance drops.
  • Visualizations show that the model localizes anomalies with high precision, even in cases of minor texture or shape distortions.
  • The method generalizes well to unseen defect types and maintains robustness under various data augmentations, confirming its effectiveness in real-world settings.

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.