[Paper Review] Towards Total Online Unsupervised Anomaly Detection and Localization in Industrial Vision
This paper proposes LeMO, a fully online unsupervised anomaly detection and localization method for industrial vision that eliminates the need for offline data collection by initializing a prototype memory bank with orthogonal random noise. Leveraging a contrastive learning-based loss for joint online optimization of memory and features, LeMO achieves state-of-the-art performance in online settings and competitive results in offline and few-shot scenarios.
Although existing image anomaly detection methods yield impressive results, they are mostly an offline learning paradigm that requires excessive data pre-collection, limiting their adaptability in industrial scenarios with online streaming data. Online learning-based image anomaly detection methods are more compatible with industrial online streaming data but are rarely noticed. For the first time, this paper presents a fully online learning image anomaly detection method, namely LeMO, learning memory for online image anomaly detection. LeMO leverages learnable memory initialized with orthogonal random noise, eliminating the need for excessive data in memory initialization and circumventing the inefficiencies of offline data collection. Moreover, a contrastive learning-based loss function for anomaly detection is designed to enable online joint optimization of memory and image target-oriented features. The presented method is simple and highly effective. Extensive experiments demonstrate the superior performance of LeMO in the online setting. Additionally, in the offline setting, LeMO is also competitive with the current state-of-the-art methods and achieves excellent performance in few-shot scenarios.
Motivation & Objective
- Address the limitations of offline anomaly detection in dynamic industrial environments where data collection is time-consuming and memory-intensive.
- Overcome the static nature of existing methods by proposing a fully online learning paradigm that processes streaming data in real time.
- Eliminate the need for pre-collecting large-scale normal samples by introducing orthogonal random noise for memory bank initialization.
- Enable joint online optimization of memory prototypes and image features through a contrastive learning-based loss function.
- Achieve high performance in both online and offline settings, including few-shot scenarios, with minimal computational overhead.
Proposed method
- Initialize the prototype memory bank using orthogonal random noise instead of requiring offline data collection or pre-trained features.
- Employ a learnable memory mechanism that updates dynamically as new images stream in, enabling continual adaptation to data drift.
- Design a contrastive learning-based loss function that jointly optimizes memory prototypes and image-level features to enhance discriminative capability.
- Use decoupled (QR-decomposed) random noise initialization to improve memory stability and feature representation quality.
- Implement a feature-enhanced memory update strategy that strengthens model robustness under poor initialization conditions.
- Utilize a lightweight backbone network to ensure efficiency in real-time industrial deployment, with potential for further optimization toward zero-parameter training.
Experimental results
Research questions
- RQ1Can a fully online unsupervised anomaly detection method be designed that avoids offline data collection while maintaining high detection accuracy?
- RQ2How does orthogonal random noise initialization compare to traditional data-driven or single-image initialization in terms of performance and stability?
- RQ3To what extent can contrastive learning enable joint optimization of memory prototypes and image features in an online setting?
- RQ4What is the impact of different memory update strategies on model robustness and detection performance under data drift?
- RQ5Can the proposed method achieve competitive performance in both online and offline settings, including few-shot scenarios?
Key findings
- LeMO achieves the highest I-AUROC of 97.4% on the MVTec AD dataset in the online setting, outperforming baseline methods with random noise initialization.
- The decoupled random noise initialization strategy yields I-AUROC scores of 97.2% on MVTec AD, 87.4% on MPDD, and 93.4% on VisA, matching or exceeding performance from random single-image initialization.
- The feature-enhanced memory update strategy improves I-AUROC by 10.7% on MPDD compared to no update or learning-based update under poor initialization, demonstrating strong robustness.
- LeMO maintains competitive performance in offline settings, achieving state-of-the-art results even with minimal data, indicating strong generalization in few-shot scenarios.
- Smaller memory bank sizes with orthogonal decoupling properties achieve performance comparable to SOTA methods, significantly reducing memory footprint.
- The method enables fully online training and inference with minimal computational cost, making it highly suitable for real-time industrial deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.