Memory Pollution in Multi-Product Visual Anomaly Detection: Diagnosis and Mitigation
Machine Learning and Knowledge Extraction · 22.07.2026 · 8 (7) · 219
DOI: 10.3390/make8070219 ↗Kurz gefasst
Fachartikel in der Zeitschrift Machine Learning and Knowledge Extraction, online erschienen am 22.07.2026. Verfasst von Sergio Villanueva López und 2 weiteren Autor:innen. Die Arbeit nennt 31 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: Eines Vision Systems and its parent company, Konica Minolta, MCIN/AEI and ERDF—“A way of making Europe”.
Abstract (Originalsprache)
Memory-bank methods such as PatchCore are widely used in industrial quality control for visual anomaly detection since they require no training, are fast to deploy and achieve strong accuracy. However, they are memory-intensive. Furthermore, a single production line typically involves different products or cameras, so using a single anomaly detection method with a shared nearest-neighbor memory bank is attractive since it simplifies deployment and makes new products easy to add. Nevertheless, embeddings from different products/cameras can interfere during retrieval, causing what we call “memory pollution”. In this work, we study this effect through a new diagnostic framework, which involves: (1) a new metric, the wrong-neighbor rate (WNR), which measures how often a query’s nearest neighbor belongs to a different product; (2) an empirically validated phenomenon, “oracle inversion”, where querying only the product’s own data can underperform the shared bank under a fixed memory budget; (3) a first-order analytical model of the WNR, which predicts how pollution grows with product count and memory budget; and (4) a minimal training-free router that removes the effect of memory pollution. Our results show that our system performs robustly across different datasets and backbones, with up to 25× memory reduction, which makes our framework attractive for industrial applications.
Förderung
- Eines Vision Systems and its parent company, Konica Minolta
- MCIN/AEI and ERDF—“A way of making Europe”
Zitieren
APA
López, S. V., Soria-Olivas, E., & Sánchez-Montañés, M. (2026). Memory Pollution in Multi-Product Visual Anomaly Detection: Diagnosis and Mitigation. Machine Learning and Knowledge Extraction, 8(7), 219. https://doi.org/10.3390/make8070219
Vancouver
López SV, Soria-Olivas E, Sánchez-Montañés M. Memory Pollution in Multi-Product Visual Anomaly Detection: Diagnosis and Mitigation. Machine Learning and Knowledge Extraction. 2026;8(7):219. doi:10.3390/make8070219
BibTeX
@article{Lpez2026,
author = {López, Sergio Villanueva and Soria-Olivas, Emilio and Sánchez-Montañés, Manuel},
title = {Memory Pollution in Multi-Product Visual Anomaly Detection: Diagnosis and Mitigation},
journal = {Machine Learning and Knowledge Extraction},
year = {2026},
volume = {8},
number = {7},
pages = {219},
doi = {10.3390/make8070219}
}
EUVIMED