[Paper Review] SoftPatch: Unsupervised Anomaly Detection with Noisy Data
SoftPatch introduces patch-level denoising with noise discriminators and a soft-weighted memory bank to robustly perform unsupervised anomaly detection when training data is contaminated with noise, achieving state-of-the-art results on MVTecAD and BTAD under noisy settings.
Although mainstream unsupervised anomaly detection (AD) algorithms perform well in academic datasets, their performance is limited in practical application due to the ideal experimental setting of clean training data. Training with noisy data is an inevitable problem in real-world anomaly detection but is seldom discussed. This paper considers label-level noise in image sensory anomaly detection for the first time. To solve this problem, we proposed a memory-based unsupervised AD method, SoftPatch, which efficiently denoises the data at the patch level. Noise discriminators are utilized to generate outlier scores for patch-level noise elimination before coreset construction. The scores are then stored in the memory bank to soften the anomaly detection boundary. Compared with existing methods, SoftPatch maintains a strong modeling ability of normal data and alleviates the overconfidence problem in coreset. Comprehensive experiments in various noise scenes demonstrate that SoftPatch outperforms the state-of-the-art AD methods on the MVTecAD and BTAD benchmarks and is comparable to those methods under the setting without noise.
Motivation & Objective
- Highlight the practical challenge of noisy training data in unsupervised anomaly detection for image sensory tasks.
- Propose a patch-level denoising strategy to filter noisy patches before coreset construction.
- Introduce three noise discriminators to robustly identify noisy patches and softly weight coreset samples.
- Demonstrate that the memory-augmented SoftPatch framework improves robustness and maintains strong normal-data modeling.
- Provide empirical evidence on MVTecAD and BTAD showing improved performance under noisy conditions.
Proposed method
- Use patch-level noise discriminators to assign an outlier score to each patch prior to coreset sampling.
- Group features by spatial position and remove top tau percent patches with highest noise scores to form the denoised coreset.
- Explore three noise scoring methods: Nearest Neighbor, Multi-Variate Gaussian (Mahalanobis distance), and Local Outlier Factor (LOF), with LOF performing best.
- Store the denoised coreset and corresponding patch-wise outlier weights in a memory bank for soft re-weighting during inference.
- Compute image-level anomaly scores by nearest-neighbor searching over the memory bank and weighting patch-level distances with the soft weights; take the maximum patch score as the image score.
- Optionally adopt different backbones and coreset sampling ratios consistent with PatchCore baselines; maintain a constant threshold tau and LOF parameter k for robustness.
Experimental results
Research questions
- RQ1How does training with noisy data affect unsupervised image sensory anomaly detection?
- RQ2Can patch-level denoising improve robustness of memory-augmented anomaly detectors under label-level noise?
- RQ3Do noise discriminators and soft re-weighting alleviate overconfidence and misclassification caused by noisy training samples?
- RQ4How does SoftPatch perform compared to state-of-the-art methods on standard benchmarks when noise is present in training data?
- RQ5What are the most effective noise scoring strategies for patch-level denoising in this setting?
Key findings
- SoftPatch shows stronger robustness to noisy training data than state-of-the-art methods on MVTecAD under both No Overlap and Overlap noise settings.
- SoftPatch-LOF achieves the best overall performance, balancing robustness and capacity across noise scenarios.
- Gaussian-based modeling helps denoising but LOF-based patch-level discrimination provides the best performance in noisy settings.
- SoftPatch maintains leading performance on BTAD even when training data contains noise, and can handle defects with similar appearances.
- Increasing noise ratio degrades PatchCore more rapidly than SoftPatch, illustrating the resilience of patch-level denoising and re-weighting.
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.