atlas

Research map / Image generation / Autoregressive and latent generation

Dual-Interrelated Diffusion Model for Few-Shot Anomaly Image Generation

CVPR 2025 · Image generation › Autoregressive and latent generation · approach: Reconstruction-based diffusion image detection · 26 citations (OpenAlex)

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 DualAnoDiff, a dual-branch LoRA-adapted Stable Diffusion that jointly generates a full anomaly image and its anomaly-part image with shared attention plus a background compensation module, for few-shot anomaly image-mask generation on MVTec AD.

Problem

Few-shot anomaly image generation for industrial inspection suffers from limited diversity, unnatural blending of anomalies into backgrounds, and masks misaligned with generated anomalies.

Approach

Two interrelated diffusion branches (global image and anomaly part), each with its own LoRA on frozen Stable Diffusion, exchange information through a self-attention interaction module, with nested prompts and a background compensation module that injects background features via self-attention to preserve object shape; the mask comes from the anomaly-part branch segmented by SAM/U2-Net.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use DualAnoDiff to generate anomaly data instead of AnomalyDiffusionMVTec anomaly generation · MVTecIS: 1.80 -> 1.93Helped
use DualAnoDiff to generate anomaly data instead of AnomalyDiffusionMVTec anomaly generation · MVTecIC-LPIPS: 0.32 -> 0.38Helped
train the U-Net on DualAnoDiff-generated data instead of AnomalyDiffusion-generated dataU-Net anomaly inspection · MVTecpixel-level AP: 81.4 -> 84.5Helped
train the classifier on DualAnoDiff-generated data instead of AnomalyDiffusion-generated dataResNet-18 anomaly classification · MVTecclassification accuracy: 66.09 -> 79.67Helped
add the Background Compensation Module (ablation)DualAnoDiff · MVTec bottle, pill, toothbrushpixel-level AUROC: 98.8 -> 99.1Helped
add the Background Compensation Module (ablation)DualAnoDiff · MVTec bottle, pill, toothbrushpixel-level AP: 83.0 -> 84.5Helped
add the Background Compensation Module (ablation)DualAnoDiff · MVTec bottle, pill, toothbrushpixel-level F1-max: 78.1 -> 78.8Helped
use the prompt “a vfx with sks” instead of the category and defect names directly (ablation)DualAnoDiff · MVTec hazelnut-printgeneration qualityHelped

Limitations

Experimental setup

Datasets: MVTec AD

Benchmarks: MVTec AD

Metrics: Inception Score IC-LPIPS AUROC AP F1-max classification accuracy

Baselines: CDC Crop-Paste SDGAN DefectGAN DFMGAN AnomalyDiffusion DRAEM PRN

Builds on: Stable Diffusion AnomalyDiffusion LayerDiffusion DreamBooth LoRA

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