Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

LADMIM: Logical Anomaly Detection with Masked Image Modeling in Discrete Latent Space

About

Detecting anomalies such as an incorrect combination of objects or deviations in their positions is a challenging problem in unsupervised anomaly detection (AD). Since conventional AD methods mainly focus on local patterns of normal images, they struggle with detecting logical anomalies that appear in the global patterns. To effectively detect these challenging logical anomalies, we introduce Logical Anomaly Detection with Masked Image Modeling (LADMIM), a novel unsupervised AD framework that harnesses the power of masked image modeling and discrete representation learning. Our core insight is that predicting the missing region forces the model to learn the long-range dependencies between patches. Specifically, we formulate AD as a mask completion task, which predicts the distribution of discrete latents in the masked region. As a distribution of discrete latents is invariant to the low-level variance in the pixel space, the model can desirably focus on the logical dependencies in the image, which improves accuracy in the logical AD. We evaluate the AD performance on five benchmarks and show that our approach achieves compatible performance without any pre-trained segmentation models. We also conduct comprehensive experiments to reveal the key factors that influence logical AD performance.

Shunsuke Sakai, Tatushito Hasegawa, Makoto Koshino• 2024

Related benchmarks

TaskDatasetResultRank
Anomaly DetectionMVTec LOCO
Average Score83.1
50
Anomaly DetectionMVTec LOCO
AUROC (Mean)86.7
30
Anomaly DetectionMVTec LOCO AD Structural Anomalies
Average (Structural Anomalies)90.3
26
Showing 3 of 3 rows

Other info

Follow for update