Focus the Discrepancy: Intra- and Inter-Correlation Learning for Image Anomaly Detection

08/06/2023
by   Xincheng Yao, et al.
0

Humans recognize anomalies through two aspects: larger patch-wise representation discrepancies and weaker patch-to-normal-patch correlations. However, the previous AD methods didn't sufficiently combine the two complementary aspects to design AD models. To this end, we find that Transformer can ideally satisfy the two aspects as its great power in the unified modeling of patch-wise representations and patch-to-patch correlations. In this paper, we propose a novel AD framework: FOcus-the-Discrepancy (FOD), which can simultaneously spot the patch-wise, intra- and inter-discrepancies of anomalies. The major characteristic of our method is that we renovate the self-attention maps in transformers to Intra-Inter-Correlation (I2Correlation). The I2Correlation contains a two-branch structure to first explicitly establish intra- and inter-image correlations, and then fuses the features of two-branch to spotlight the abnormal patterns. To learn the intra- and inter-correlations adaptively, we propose the RBF-kernel-based target-correlations as learning targets for self-supervised learning. Besides, we introduce an entropy constraint strategy to solve the mode collapse issue in optimization and further amplify the normal-abnormal distinguishability. Extensive experiments on three unsupervised real-world AD benchmarks show the superior performance of our approach. Code will be available at https://github.com/xcyao00/FOD.

READ FULL TEXT

page 1

page 4

page 8

page 17

research
11/14/2022

PiPa: Pixel- and Patch-wise Self-supervised Learning for Domain Adaptative Semantic Segmentation

Unsupervised Domain Adaptation (UDA) aims to enhance the generalization ...
research
10/09/2022

Dual-distribution discrepancy with self-supervised refinement for anomaly detection in medical images

Medical anomaly detection is a crucial yet challenging task aiming at re...
research
08/01/2023

Patch-wise Auto-Encoder for Visual Anomaly Detection

Anomaly detection without priors of the anomalies is challenging. In the...
research
07/04/2022

Task-oriented Self-supervised Learning for Anomaly Detection in Electroencephalography

Accurate automated analysis of electroencephalography (EEG) would largel...
research
10/06/2021

Anomaly Transformer: Time Series Anomaly Detection with Association Discrepancy

Unsupervisedly detecting anomaly points in time series is challenging, w...
research
08/09/2021

P-WAE: Generalized Patch-Wasserstein Autoencoder for Anomaly Screening

To mitigate the inspector's workload and improve the quality of the prod...
research
06/09/2022

CFA: Coupled-hypersphere-based Feature Adaptation for Target-Oriented Anomaly Localization

For a long time, anomaly localization has been widely used in industries...

Please sign up or login with your details

Forgot password? Click here to reset