LogicAL: Towards logical anomaly synthesis for unsupervised anomaly localization
Ying Zhao
TL;DR
This work tackles unsupervised anomaly localization with limited real anomaly data by introducing LogicAL, a framework that synthesizes both logical and structural anomalies through edge manipulation and edge-to-image translation. It combines region-aware edge editing (via SAM) with a pix2pixHD-based generator and TPS warping to produce realistic yet logically inconsistent defects, and it augments the localization model with edge reconstruction to improve pixel-level precision. Extensive experiments on MVTecLOCO, MVTecAD, VisA, and MADsim demonstrate state-of-the-art or competitive performance in both image-level anomaly detection and pixel-level localization, with ablations clarifying the contributions of region control, edge strategies, and reconstruction. The approach offers strong practical impact for industrial inspection by enhancing robustness to diverse defect types and logical constraints while maintaining efficient inference.
Abstract
Anomaly localization is a practical technology for improving industrial production line efficiency. Due to anomalies are manifold and hard to be collected, existing unsupervised researches are usually equipped with anomaly synthesis methods. However, most of them are biased towards structural defects synthesis while ignoring the underlying logical constraints. To fill the gap and boost anomaly localization performance, we propose an edge manipulation based anomaly synthesis framework, named LogicAL, that produces photo-realistic both logical and structural anomalies. We introduce a logical anomaly generation strategy that is adept at breaking logical constraints and a structural anomaly generation strategy that complements to the structural defects synthesis. We further improve the anomaly localization performance by introducing edge reconstruction into the network structure. Extensive experiments on the challenge MVTecLOCO, MVTecAD, VisA and MADsim datasets verify the advantage of proposed LogicAL on both logical and structural anomaly localization.
