Robust Distribution Alignment for Industrial Anomaly Detection under Distribution Shift
Jingyi Liao, Xun Xu, Yongyi Su, Rong-Cheng Tu, Yifan Liu, Dacheng Tao, Xulei Yang
TL;DR
Industrial anomaly detection often fails under distribution shift due to lighting, sensor drift, or corruptions. This paper proposes RoDA, a memory-bank based framework that performs robust distribution alignment using discretized Sinkhorn distance (robust OT) and target-domain data augmentation to align target patches with source normal prototypes without requiring target labels or decoders. RoDA demonstrates strong improvements over state-of-the-art anomaly detectors and domain adaptation methods on 2D (MVTec, RealIAD) and 3D (MVTec-3D) benchmarks under simulated shifts, including both detection and segmentation tasks. The results highlight the importance of robust OT-based distribution alignment and targeted augmentation for practical industrial deployment with limited target data.
Abstract
Anomaly detection plays a crucial role in quality control for industrial applications. However, ensuring robustness under unseen domain shifts such as lighting variations or sensor drift remains a significant challenge. Existing methods attempt to address domain shifts by training generalizable models but often rely on prior knowledge of target distributions and can hardly generalise to backbones designed for other data modalities. To overcome these limitations, we build upon memory-bank-based anomaly detection methods, optimizing a robust Sinkhorn distance on limited target training data to enhance generalization to unseen target domains. We evaluate the effectiveness on both 2D and 3D anomaly detection benchmarks with simulated distribution shifts. Our proposed method demonstrates superior results compared with state-of-the-art anomaly detection and domain adaptation methods.
