Skip to content
Book Open access

AnomalyBrush: Highly-Aligned Anomaly Image Generation with a Dual-Branch Diffusion Model

Nov 2026 · Proceedings of the 34th ACM International Conference on Multimedia · 2 citations · 40 references

Abstract

Industrial anomaly generation provides an effective way to alleviate the scarcity of defective samples for visual inspection, yet existing methods often struggle to simultaneously achieve realistic defect appearance, accurate mask alignment, and semantic consistency under limited anomaly supervision. In this paper, we propose AnomalyBrush, a dual-branch conditional diffusion framework for few-shot anomaly image generation. Specifically, a prior branch extracts multi-scale structural and semantic defect cues from a small set of real anomaly exemplars, while a synthesis branch generates anomalies on normal images within a anomaly mask through adaptive cross-attention fusion. To further improve mask-aligned generation, we introduce Topology-aware Structural Attention Recalibration (TSAR), which combines SSIM-based structural discrepancy with a distance-transform-based geometric prior to emphasize under-synthesized regions, especially along boundaries and thin structures. In addition, we propose Prototype-augmented Semantic Alignment (PSA), which enhances category-faithful synthesis by matching generated anomaly features to a real anomaly prototype bank and by anchoring object-level semantics in a shared vision--language embedding space. Extensive experiments on MVTec AD and Real-IAD demonstrate that AnomalyBrush produces more realistic and diverse anomaly samples with better spatial correspondence to the target masks, and consistently improves downstream anomaly localization performance. These results highlight the effectiveness of our framework as a practical data generation solution for industrial anomaly inspection.

Read PDF

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.