atlas

Research map / Image generation / Autoregressive and latent generation

A Diffusion-Based Framework for Multi-Class Anomaly Detection

AAAI 2024 · Image generation › Autoregressive and latent generation · approach: Reconstruction-based diffusion image detection

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes DiAD, a latent diffusion-based multi-class anomaly detection framework with a Semantic-Guided network attached to Stable Diffusion's denoiser and a Spatial-aware Feature Fusion block, scoring anomalies with ImageNet-pretrained feature cosine distances.

Problem

Reconstruction-based anomaly detection with diffusion models struggles in the multi-class setting, where reconstructions lose image category and pixel-wise structure, so anomalies are not reconstructed faithfully.

Approach

A trainable Semantic-Guided network replicating the Stable Diffusion denoiser encoder is fed the input image and injects its features into the SD denoiser, preserving semantics while reconstructing anomalous regions; an SFF block fuses multi-scale features with instance normalization and SiLU; anomaly maps come from multi-scale cosine distances of a pre-trained ResNet50's features.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add the SG network to the SD denoising model (ablation)SD on MVTec-AD · MVTec-ADAUROC_cls: 79.3 -> 97.2Helped
Add the SG middle block to SD (ablation)SD on MVTec-AD · MVTec-ADAUROC_cls: 79.3 -> 95.1Helped
Add the SGEB3 skip connection (ablation)DiAD with SG middle block · MVTec-ADAUROC_seg: 91.1 -> 89.1Hurt
Add the SGEB4 skip connection alongside SGEB3 (ablation)DiAD with SGEB3 · MVTec-ADAUROC_cls: 95.3 -> 93.8Hurt
Use IN+SiLU instead of BN+ReLU in the SFF block (ablation)DiAD · MVTec-ADAUROC_cls: 96.7 -> 97.2Helped
Use ResNet50 rather than other tested feature extractors (ablation)DiAD · MVTec-ADAUROC_cls: 97.2Helped
Use WideResNet101 rather than other tested feature extractors (ablation)DiAD · MVTec-ADAP_seg: 54.6Helped
Use feature layers f2, f3, and f4 (ablation)DiAD with ResNet50 · MVTec-ADAP_seg: 52.6Helped
Increase forward diffusion timesteps (ablation)DiAD · MVTec-ADanomaly reconstruction abilityHelped
Use fewer than 600 forward diffusion steps (ablation)DiAD · MVTec-ADperformanceHurt
Use 10 DDIM sampling steps rather than 1 (ablation)DiAD · MVTec-ADAUROC_seg: 72.5 -> 96.8Helped
Increase DDIM sampling steps beyond 10 (ablation)DiAD · MVTec-ADAUROC_seg: 96.8 -> 96.8No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: MVTec-AD VisA MVTec-3D BraTS2021 BTCV LiTS

Benchmarks: MVTec-AD VisA MVTec-3D BraTS2021 BTCV LiTS

Metrics: AUROC AP F1max PRO DICE

Baselines: DRAEM UniAD PaDiM MKD RD4AD DDPM LDM EdgRec STFPM CFLOW PatchCore DiffusionAD

Builds on: Latent Diffusion Model DDPM DDIM RD4AD ControlNet

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy