cs.CVAug 22, 2026

When More References Hurt: Contamination-Aware DINOv2 Memory Banks for Few-Shot Steel Defect Detection

Authors: Hannaneh Kalantary, Javad Khoramdel

Organizations: University of Padua · University of Vienna

Abstract

Patch-memory anomaly detectors assume that their reference bank is normal, an assumption that is difficult to guarantee when additional industrial images are unverified. We study whether a few trusted normal images can safely recover useful normal patches from such references without defect masks. Starting from the DINOv2 patch-memory formulation used by AnomalyDINO, we score candidate patches by distance to a clean seed bank, discard the most suspicious 20%, merge the retained patches with the seed, and enforce a fixed budget by greedy coreset selection. On Severstal, naive additional references contain 9.46% anomalous patches; the proposed trim rejects 78.1% of them and reduces residual contamination to 2.59%. At an equal 51,200-patch development budget, the proposed bank reaches 0.1084 AUPRC versus 0.0950 for naive expansion, 0.0952 for random removal, and 0.1030 for eight clean images. Injecting only 0.5% anomalous patches into a clean bank reduces AUPRC from 0.1030 to 0.0759. On all five completed held-out pairs, the proposed bank improves over naive expansion, with a mean gain of 0.0142 AUPRC. Reference purity is therefore a first-order design variable, and unverified images are useful only when their contribution is filtered explicitly.

Figures & tables

Explore similar work

CardsList
  1. What Remains Normal? Clean Images Miss Useful Near-Defect Normal Patches for Anomaly Detection

    Aug 24, 2026Joongwon Chae, Runming Wang, Peiwu QinIndustrial Anomaly DetectionReconstruction-Based Anomaly Detection

  2. What Memory Composition Does Not Tell Us About Anomaly Detection

    Aug 24, 2026Joongwon Chae, Runming Wang, Peiwu QinAnomaly DetectionData Contamination

  3. Training-Free Human-in-the-Loop Anomaly Detection via Memory Bank Correction

    Aug 18, 2026Ayusha Abbas, Saram Abbas, Kabita AdhikariAnomaly DetectionIndustrial Anomaly Detection