Industrial visual anomaly detection (VAD) methods are typically trained on normal samples only, yet performance improves substantially when even limited anomalous data is available. Existing anomaly generation approaches either require real anomalous examples, demand expensive hardware, or produce synthetic defects that lack realism. We present MIRAGE (Model-agnostic Industrial Realistic Anomaly Generation and Evaluation), a fully automated pipeline for realistic anomalous image generation and pixel-level mask creation that requires no training and no anomalous images. Our pipeline accesses any generative model as a black box via API calls, uses a VLM for automatic defect prompt generation, and includes a CLIP-based quality filter to retain only well-aligned generated images. For mask generation at scale, we introduce a lightweight, training-free dual-branch semantic change detection module combining text-conditioned Grounding DINO features with fine-grained YOLOv26-Seg structural features. We benchmark four generation methods using Gemini 2.5 Flash Image (Nano Banana) as the generative backbone, evaluating performance on MVTec AD and VisA across two distinct tasks: (i) downstream anomaly segmentation and (ii) visual quality of the generated images, assessed via standard metrics (IS, IC-LPIPS) and a human perceptual study involving 31 participants and 1,550 pairwise votes. The results demonstrate that MIRAGE offers a scalable, accessible foundation for anomaly-aware industrial inspection that requires no real defect data. As a final contribution, we publicly release a large-scale dataset comprising 500 image-mask pairs per category for every MVTec AD and VisA class, over 13,000 pairs in total, alongside all generation prompts and pipeline code.
Figures & tables
Figure 1: Overview of MIRAGE. Top: A normal image and an anomaly text prompt are fed to Gemini 2.5 Flash Image, which generates a photorealistic anomalous image. Bottom (Mask Creation Pipeline): The normal image, anomalous image, and text prompt are processed through two branches. The semantic branch (left) computes text-conditioned feature differences using Grounding DINO, yielding a coarse semantic anomaly map. The structural branch (right) computes unconditional feature differences using YOLOv26-L-Seg, yielding a fine-grained structural change map. The element-wise product of both maps produces the final anomaly mask.
Figure 2: Examples of synthetic anomalies generated. From left to right: (1) original input image, (2) GLASS, (3) RealNet, (4) AnomalyAny, and (5) MIRAGE. The rows represent three object classes: bottle (top row), hazelnuts (mid row) and electronic sensor modules (bottom row). The relative generated anomaly map or mask is overlaid on the bottom right of each image.
Method
TrueSkill ( μ±σ ) ↑
Win% ↑
App.
Real images
28.61±0.80
73.8
644
MIRAGE (Ours)
28.33±0.80
67.2
622
AnomalyAny [ 23 ]
27.16±0.79
59.2
613
RealNet [ 26 ]
23.54±0.79
33.7
642
GLASS [ 4 ]
20.26±0.84
14.4
605
Table 1: Human perceptual realism evaluation. TrueSkill ranking [ 9 ] ( μ±σ , higher is better), win rate (%, excluding ties), and number of appearances across all pairwise comparisons (31 participants, 1,550 total votes). Real images are included as an upper bound.
AnomalyAny
RealNet
GLASS
MIRAGE
Category
IS
IC-L
IS
IC-L
IS
IC-L
IS
IC-L
Bottle
1.73
0.17
1.58
0.16
2.08
0.26
2.31
0.23
Cable
2.06
0.41
1.65
0.18
1.81
0.42
2.63
0.53
Capsule
2.16
0.23
1.62
0.41
2.50
0.33
2.27
0.20
Carpet
1.10
0.34
1.03
0.25
1.29
0.27
2.09
0.33
Grid
2.31
0.38
2.24
0.37
2.46
0.41
2.80
0.56
Table 2: Visual quality metrics on MVTec AD. Inception Score (IS, higher is better) and Intra-Cluster LPIPS (IC-LPIPS, denoted IC-L) for generated anomalous images from each method, compared against real anomalous test images.
(a)
AnomAny
RealNet
GLASS
Ours
MVTec AD
I
P
I
P
I
P
I
P
Bottle
0.78
0.85
0.92
0.91
0.91
0.83
0.93
0.92
Cable
0.49
0.76
0.41
0.68
0.74
0.80
0.71
0.86
Capsule
0.57
0.89
0.49
0.88
0.43
0.87
0.45
0.93
Carpet
0.39
0.90
0.45
0.86
0.56
0.98
0.82
0.99
Grid
0.57
0.74
0.82
0.63
0.93
0.98
0.54
0.90
Table 3: Downstream anomaly segmentation. Image-level AUROC (I) and pixel-level AUROC (P) for a U-Net trained on synthetic data from each generation method. Best results in bold . (a) MVTec AD. (b) VisA.
MVTec AD
VisA
Configuration
I
P
I
P
Without CLIP filter
0.70
0.92
0.71
0.91
With CLIP filter
0.80
0.92
0.74
0.92
Table 4: Effect of CLIP-based quality filtering on downstream anomaly segmentation. Mean image-level AUROC (I) and pixel-level AUROC (P) on MVTec AD and VisA.
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
Category
Pixel-level AUC
bottle
0.9650
cable
0.8866
capsule
0.9413
carpet
0.9263
grid
0.8487
hazelnut
0.9718
Appendix
Table 5: MVTec AD pixel-level AUC on 1000 ground-truth masks generated by Gemini Image V3. Results are reported for the g-dino + yolo pipeline.
Category
Pixel-level AUC
candle
0.8967
capsules
0.8836
cashew
0.9459
chewinggum
0.8483
fryum
0.9553
macaroni1
0.9326
Appendix
Table 6: VisA pixel-level AUC on 720 ground-truth masks generated by Gemini Image V3. Results are reported for the g-dino + yolo pipeline.
Figure 3: Different types of synthetic anomalous images and corresponding heatmaps generated by MIRAGE.
[Class]
[Defect Type]
GPT-Generated Detailed Descriptions
Wood ⋆
Vertical Split
A deep crack runs parallel to the wood grain, showing a physical separation where the material has dried out and pulled apart, creating a dark void.
Water Stain
An irregular, dark ring or splotch discolors the wood surface, creating a distinct boundary where moisture has penetrated and altered the grain’s appearance.
Surface Burn Mark
A dark, charred patch with blackened, carbonized wood fibers disrupts the natural color, indicating contact with a high-heat source.
Splintered Surface
The surface fibers are raised and peeling away in jagged, needle-like strips, destroying the smooth finish and creating a rough, hazardous texture.
Deep Scratch
A distinct, light-colored linear gouge cuts across the vertical grain, interrupting the smooth brown pattern where the surface fibers have been severed.
Zipper ⋆
Punctures or Tears
Visible holes or rips in the woven fabric tape, distinct from the edges.
Appendix
Table 7: Corresponding descriptions for anomaly generation of Fig. 3 . ⋆ indicates MVTec AD dataset, while ⋆⋆ indicates VisA classes.