Glancing at the Patch: Anomaly Localization with Global and Local Feature Comparison

Framework

Abstract

Anomaly localization, with the purpose to segment the anomalous regions within images, is challenging due to the large variety of anomaly types. Existing methods typically train deep models by treating the entire image as a whole yet put little effort into learning the local distribution, which is vital for this pixel-precise task. In this work, we propose an unsupervised patch-based approach that gives due consideration to both the global and local information. More concretely, we employ a Local-Net and Global-Net to extract features from any individual patch and its surrounding respectively. Global-Net is trained with the purpose to mimic the local feature such that we can easily detect an abnormal patch when its feature mismatches that from the context. We further introduce an Inconsistency Anomaly Detection (IAD) head and a Distortion Anomaly Detection (DAD) head to sufficiently spot the discrepancy between global and local features. A scoring function derived from the multi-head design facilitates high-precision anomaly localization. Extensive experiments on a couple of real-world datasets suggest that our approach outperforms state-of-the-art competitors by a sufficiently large margin.

Publication
In The IEEE / CVF Computer Vision and Pattern Recognition Conference

The PDF link is here. The Supplementary Materials link is here.

Shenzhi Wang
Shenzhi Wang
PhD Candidate of Artificial Intelligence

My research interests include reinforcement learning, LLM-as-agent, etc.