Saved in:
Bibliographic Details
Main Authors: Sakai, Shunsuke, Hasegawa, Tatushito, Koshino, Makoto
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.10234
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908882391007232
author Sakai, Shunsuke
Hasegawa, Tatushito
Koshino, Makoto
author_facet Sakai, Shunsuke
Hasegawa, Tatushito
Koshino, Makoto
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2410_10234
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle LADMIM: Logical Anomaly Detection with Masked Image Modeling in Discrete Latent Space
Sakai, Shunsuke
Hasegawa, Tatushito
Koshino, Makoto
Computer Vision and Pattern Recognition
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.
title LADMIM: Logical Anomaly Detection with Masked Image Modeling in Discrete Latent Space
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2410.10234