Unseen Visual Anomaly Generation
Han Sun, Yunkang Cao, Hao Dong, Olga Fink
Abstract
Visual anomaly detection (AD) presents significant challenges due to the scarcity of anomalous data samples. While numerous works have been proposed to synthesize anomalous samples, these synthetic anomalies often lack authenticity or require extensive training data, limiting their applicability in real-world scenarios. In this work, we propose Anomaly Anything (AnomalyAny), a novel framework that leverages Stable Diffusion (SD)'s image generation capabilities to generate diverse and realistic unseen anomalies. By conditioning on a single normal sample during test time, AnomalyAny is able to generate unseen anomalies for arbitrary object types with text descriptions. Within AnomalyAny, we propose attention-guided anomaly optimization to direct SD's attention on generating hard anomaly concepts. Additionally, we introduce promptguided anomaly refinement, incorporating detailed descriptions to further improve the generation quality. Extensive experiments on MVTec AD and VisA datasets demonstrate AnomalyAny's ability in generating high-quality unseen anomalies and its effectiveness in enhancing downstream AD performance. Our demo and code are available at https://hansunhayden.github.io/AnomalyAny.github.io/.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 2bdc83da-7f27-47a0-9230-8892ae36c2e7Cited by top-tier papers14
- Extremely Simple Multimodal Outlier Synthesis for Out-of-Distribution Detection and SegmentationMoru Liu, Hao Dong, Jessica Kelly, Olga Fink et al.NeurIPS 2025 · 12 citations
- Reasoning-Driven Anomaly Detection and Localization with Image-Level SupervisionYizhou Jin, Yuezhu Feng, Jinjin Zhang, Peng Wang et al.CVPR 2026 · 4 citations
- One-to-More: High-Fidelity Training-Free Anomaly Generation with Attention ControlHaoxiang Rao, Zhao Wang, Chenyang Si, Yan Lyu et al.CVPR 2026 · 2 citations
- Unifying Reconstruction and Density Estimation via Invertible Contraction Mapping in One-Class ClassificationXiaolei Wang, Tianhong Dai, Huihui Bai, Yao Zhao et al.NeurIPS 2025 · 2 citations
- Multi-Prototype Compactness and Boundary-Aware Synthesis for Unsupervised Anomaly DetectionKailun Liao, Jianfeng Yang, Tao Tao, Wenfei Wu et al.CVPR 2026 · 1 citation
Builds on17
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
- High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
- Towards Total Recall in Industrial Anomaly DetectionKarsten Roth, Latha Pemula, Joaquin Zepeda, Bernhard Schölkopf et al.CVPR 2022 · 1,301 citations
- Anomaly Detection via Reverse Distillation from One-Class EmbeddingHanqiu Deng, Xingyu LiCVPR 2022 · 701 citations
Related papers
- AnoStyler: Text-Driven Localized Anomaly Generation via Lightweight Style TransferYulim So, Seokho KangAAAI 2026
- CHIMERA: Controllable High-quality Image-Mask Extraction for Reliable Diffusion-based Anomaly SynthesisJoungBin Lee, Hyunkoo Lee, Jini Yang, Chaehyun Kim et al.AAAI 2026
- AnomalyControl: Highly-Aligned Anomalous Image Generation with Controlled Diffusion ModelYuanyi Duan, Wei Xu, Qinlong Wu, Guo-Sen Xie et al.ACM MM 2025 · 3 citations
- CADiff: Context-Aware Diffusion for Controllable Anomaly Generation in Anomaly DetectionXuan Tong, Yuxuan Lin, Junxiong Lin, Xinji Mai et al.AAAI 2026
- AnomalyPainter: Vision-Language-Diffusion Synergy for Realistic and Diverse Unseen Industrial Anomaly SynthesisZhangyu Lai, Yilin Lu, Xinyang Li, Jianghang Lin et al.AAAI 2026
