Manuscript Offprint
arXiv:2608.23295What Memory Composition Does Not Tell Us About Anomaly Detection
ABSTRACT
Memory-based anomaly detectors store nominal training patches and score test patches against this memory. A patch selected for coverage therefore becomes a normal reference without a separate check that geometric rarity makes it safe to trust. We probe this coupling with sparse training contamination. Under fixed representations and memory budgets, we compare random, medoid, local, and global coverage selectors. We then use CLEANCON, an out-of-bag cross-image support gate that changes candidate-image eligibility while fixing the representation, absolute memory size, builder, and inference rule. Global coverage strongly over-represents sparse contamination. CLEANCON reduces final-memory contamination to approximately zero and increases category-macro P-AP in all 12 matched comparisons. Yet along a retention sweep, the lowest-contamination memory does not attain the highest P-AP; performance continues to improve while contamination rises. Memory contamination therefore does not order the resulting memories by P-AP.Code is publicly available at https://github.com/jw-chae/cleancon.
1 INTRODUCTION
Memory-based industrial anomaly detection extracts patch features from nominal training images, stores a compact subset in memory, and identifies anomalies through discrepancies between test patches and the stored features (Cohen & Hoshen, 2021; Defard et al., 2021; Roth et al., 2022). In this family, memory is not merely a compressed training set. Selected patches remain direct normal references at inference time.
PatchCore constructs this memory with an approximate-greedy coreset that seeks broad feature-space coverage (Roth et al., 2022). The sensitivity of coverage objectives to outliers is well known in the literature on k-center and robust clustering (Charikar et al., 2001; Friedler & Mount, 2010; Krishnaswamy et al., 2018). In memory-based anomaly detection, however, this sensitivity has a more direct consequence. A selected center does not disappear into a subsequent optimizer; it remains in the deployed detector as a normal reference.
Sparse contamination provides a simple probe of this coupling (Fig. 1). If a small number of anomalous images enter the nominal training pool, rare patches within them can be attractive to a global coreset. We ask two questions. How strong is this selection bias in the final memory? And does reducing the resulting contaminated references improve the detector?
We compare random sampling, medoid selection, local approximate-greedy farthest-first selection (Local FF), and global farthest-first selection (Global FF) under identical representations and budgets. CLEANCON then ranks each training image by an out-of-bag cross-image projection residual and passes only low-scoring images to the original builder. It changes candidate-image eligibility while fixing the representation, absolute memory size, builder, and inference rule.
Global FF draws substantially more contaminated patches into memory. CLEANCON reduces final-memory contamination to approximately zero and increases category-macro P-AP in all 12 matched comparisons. Yet along the retention sweep, the lowest-contamination memory does not attain the
(a)

one selection, two roles
(b)

candidate-image eligibility changes
(c)

cleanest ≠ best
Figure 1: One selection, two roles. (a) Selected patches serve global coverage and test-time normal evidence. (b) Candidate-image eligibility changes while the absolute memory size and detector remain fixed. (c) The lowest-contamination memory is not necessarily the best-performing one.
highest P-AP, and performance continues to improve as contamination rises. Cleaning helps, but purity alone does not order useful memories.
Our main findings are:
• Global coverage strongly over-represents sparse contamination. Random, medoid, and Local FF controls place the strongest effect under Global FF competition across images.
• CLEANCON reduces contamination and raises matched macro P-AP. With all downstream components and bank sizes fixed, final-memory contamination approaches zero and category-macro P-AP rises in all 12 comparisons.
• The cleanest memory is not the best memory. Along the retention sweep, contamination and P-AP repeatedly rise together.
2.1 MEMORY-BASED ANOMALY DETECTION
SPADE and PaDiM model nominal patterns with pretrained local features (Cohen & Hoshen, 2021; Defard et al., 2021), while PatchCore compresses training patches with approximate-greedy coreset selection and computes anomaly scores from nearest-memory distances (Roth et al., 2022). Later work strengthens representations, adapts features, or introduces projection- and consistency-based scoring (Reiss et al., 2021; Reiss & Hoshen, 2023; Oquab et al., 2024; Chae et al., 2026). In these methods, memory composition determines not only inference cost but also which features remain available as normal references.
2.2 CONTAMINATED NOMINAL TRAINING
Identifying latent outliers and limiting the influence of noisy nominal data are longstanding problems in one-class learning and anomaly detection (Qiu et al., 2022; Yoon et al., 2022; Cordier et al., 2022). For industrial anomaly detection, SoftPatch adjusts memory construction and inference with patch-level outlier scores (Jiang et al., 2022), while SoftPatch+ combines multiple discriminators (Wang et al., 2025). InReaCh uses cross-image support, FUN-AD iteratively reconstructs a memory bank, and MeDS distills scores from bootstrapped partial memories (McIntosh & Branzan Albu, 2023; Im et al., 2025; Safarov et al., 2026). SSFilter combines sample-level filtering with uncertainty, while LLB-NAD aggregates scores from multiple models before training a final detector (Liu et al., 2026; Zhang et al., 2025).
These methods differ in detector, backbone, and contamination construction. Our matched intervention instead fixes the deployed detector while changing candidate-image eligibility, so amplification during memory selection and the detector response after filtering are measured within the same scaffold.
2.3 COVERAGE SELECTION AND DEPLOYED REFERENCES
Farthest-first traversal and metric k-center seek to cover a space with a limited number of centers (Gonzalez, 1985); robust variants restrict the influence of outliers (Charikar et al., 2001; Friedler & Mount, 2010; Krishnaswamy et al., 2018). More generally, a coreset guarantee depends on the objective it preserves (Har-Peled & Mazumdar, 2004; Feldman & Langberg, 2011), and geometric coverage has been distinguished from downstream performance in active learning and data selection (Sener & Savarese, 2018; Borsos et al., 2020; Mirzasoleiman et al., 2020; Killamsetty et al., 2021).
In memory-based anomaly detection, the selected subset does not disappear into a later optimizer; it remains the inference-time reference set. This makes the path from high coverage value to normal-reference membership, and from that memory to downstream detection, directly observable.
3 PROBLEM SETUP AND EXPERIMENTAL PROTOCOL
3.1 MEASURING MEMORY CONTAMINATION
A frozen encoder maps training images to patch descriptors, and a memory builder selects references from the candidate set . We denote the selected memory by . For post-hoc analysis, we partition
where Q contains descriptors aligned with ground-truth anomalous regions in injected images and N contains the remaining candidates. These labels are never supplied to the selector or detector.
We align each ground-truth mask to the feature grid. A grid cell is labeled contaminated when its corresponding image region contains at least one anomalous pixel; no anomaly-area threshold is applied. One grid cell corresponds to approximately input pixels for a DINOv2 input and pixels for a WRN50 input. Normal images have all-zero patch labels. The flattened label vector follows feature ordering. For WRN50, the label denotes a position on the final feature grid rather than the entire convolutional receptive field.
We define candidate-pool prevalence and final-memory occupancy as
and measure amplification by
indicates prevalence-proportional selection, while indicates that contamination is over-represented in memory. Memory purity is .
For DINOv2/ProCon, matched-intervention and retention pool categories, four depths, and five banks within each fold; selector and radius analyses use one memory per depth (Appendix C). Means and sample standard deviations are over fold-level ratios, not bank ratios. Candidate counts for are pooled over categories and depths.
3.2 No-Overlap Contamination Protocol
We use all 15 MVTec AD categories and all 12 VisA categories (Bergmann et al., 2019; Zou et al., 2022). For each category, a subset of anomalous images is injected into the nominal training set. Nominal 5% contamination denotes the image-level fraction of injected anomalous images in the final mixed training set. By contrast, counts only descriptors aligned with mask-positive regions, and is therefore smaller and category dependent.
Injected anomalous images are removed from evaluation, so memory construction and final evaluation share no anomalous image paths. Each contamination fold changes the injected images and therefore also changes the corresponding No-Overlap evaluation composition. Cross-fold results measure repetition across different contamination memberships and their matched evaluation splits.
The main analyses use nominal 5% image-level contamination and three contamination folds. Injection membership changes across folds while the stochastic conditions of approximate-greedy traversal remain fixed. The default memory contains an absolute 1% of the unfiltered candidate pool. Nested budgets from 0.1% to 10% are used to study memory-size dependence.
3.3 DETECTORS AND SELECTOR CONTROLS
We evaluate two memory-based detector families. The first uses WRN50 representations with PatchCore nearest-memory inference (Roth et al., 2022); the second uses frozen DINOv2 representations with ProCon projection-consensus inference (Oquab et al., 2024; Chae et al., 2026). Feature extraction, preprocessing, and test-time scoring follow each detector's default configuration.
Under identical representations and budgets, we compare patch-random, image-balanced random, sampled medoid, Local FF, and Global FF selection. Random controls use 20 repetitions. Full results for deduplication-, density-, and landmark-based selectors appear in the appendix. No selector receives contamination identities or ground-truth patch labels.
We report category-macro image AUROC (I-AUROC), pixel AUROC (P-AUROC), pixel average precision (P-AP), and AUPRO.
For the contaminated-training control, we implement the single-discriminator SoftPatch selection and reliability-weighting rule inside each detector scaffold (Jiang et al., 2022). In WRN50 rows, both the SoftPatch-style control and CLEANCON use PatchCore nearest-memory inference. In DINOv2 rows, both use ProCon projection-consensus inference. The two arms share the representation and inference rule and differ in their memory-construction rule.
In matched CLEANCON comparisons, the representation, preprocessing, final memory builder, test-time inference, and absolute memory size K are fixed. We first set K to 1% of the unfiltered candidate pool and retain the same number of references after filtering. Ground-truth patch labels are not used by OOB scoring or filtering.
4 GLOBAL COVERAGE OVER-REPRESENTS SPARSE CONTAMINATION
4.1 AMPLIFICATION DEPENDS STRONGLY ON THE SELECTOR
Figure 2 compares contamination amplification across memory budgets and selectors. At a 1% budget, the three-fold mean amplification of Global FF ranges from to across the four dataset–representation settings; the largest individual fold reaches .
In the fold-0 selector control in Fig. 2b, random remains within 0.99–1.02×, medoid within 1.05–1.44×, Local FF within 2.55–3.42×, and Global FF reaches 16.41–43.57×. Restricting farthest-first competition to individual images therefore removes most of the amplification.
This pattern agrees with coverage geometry. Selecting another point in a densely represented region removes little uncovered space, whereas a candidate far from the current memory can yield a large coverage gain simply because it is rare. The objective does not distinguish rare normal variation from contamination.
Amplification can also be read as the fraction of contaminated candidates selected. When ,
Thus, means that approximately 43.57% of contaminated candidate descriptors enter the final 1% memory.
(a)

(b)
MVTec / WRN50 MVTec / DINOv2 VisA / WRN50 VisA / DINOv2 setting mean
Figure 2: Global coverage preferentially retains sparse contamination. Left: amplification over nested memory budgets from 0.1% to 10%. Curves show means over three contamination folds and bands show fold standard deviation. Right: fold-0 selector controls at a 1% memory budget; random controls use 20 repetitions.
Amplification is largest in the sparse-memory regime. The mean curves for all four settings decrease from 0.1% to 10%. Because has a K-dependent ceiling, we use this curve as a descriptive budget trend. Category-level trajectories appear in Appendix C.
4.2 SOME CONTAMINATED CENTERS ARE REQUIRED AT THE ACHIEVED RADIUS
We next examine whether any selected contaminated centers are required to maintain the achieved covering radius. Let denote the returned centers and
Even when every normal candidate is available as a center, define the minimum number of contaminated centers required to cover Q at scale r as
Because is feasible at scale ,
We compute a certified packing lower bound for . It is positive in all four pooled fold-0 settings and directly certifies 0.58–6.32% of selected contaminated centers. Thus, at least some contaminated centers are required to maintain the achieved radius, while the same certificate does not establish necessity for the remainder. The full construction appears in Appendix C.
The selector comparison and radius analysis both show global coverage drawing contamination into memory. We next reduce these references and measure the detector response.
5 CLEANCON: A CONTROLLED INTERVENTION THAT REDUCES CONTAMINATED REFERENCES
If global coverage over-selects contaminated patches, the next question is whether reducing these references improves detection. CLEANCON leaves the builder unchanged and changes which training images may contribute candidates.
Each training image is scored by how well its features can be explained by features from other training images. Only low-scoring images are passed to the original memory builder, while the representation, final memory size K, builder, and test-time inference remain unchanged.
5.1 OUT-OF-BAG SUPPORT SCORE
For a category with training images, we construct support banks. Bank contains images with index set . The same is shared across feature depths, while descriptor banks are built separately for each layer:
The support banks are built from the same potentially contaminated training pool rather than from a separate clean set.
Image i is evaluated only against banks that exclude it:
This restriction prevents the target image from using its own descriptors as support (Breiman, 2001). For descriptor , we retrieve the nearest descriptors in each and compute
The neighbor weights are
and the soft projection and residual are
The temperature is calibrated from the distance scale of a deterministic descriptor subsample. Downstream metrics are not used for calibration. Additional implementation settings appear in Appendix B.
We first take the median residual over OOB banks within each layer and then average across depths:
5.2 IMAGE-LEVEL FILTERING
Patch residuals are aggregated into an image score by averaging the largest 0.5%:
On a grid, approximately four locations contribute. Within each category, only images at or below the median score are retained:
All descriptors from images in T enter subsequent memory construction. Filtering operates at the image level rather than deleting individual patches. The same median rule is used in every setting independently of the nominal 5% contamination ratio.
5.3 MATCHED MEMORY CONSTRUCTION
The final memory size remains fixed after filtering. We first set the absolute target K to 1% of the unfiltered pool and select the same number of references with CLEANCON:
Table 1: Three-fold matched unfiltered-to-CLEANCON comparison.
| Setting | Vanilla | CLEANCON | Vanilla P-AP | CLEANCON P-AP | P-AP |
|---|---|---|---|---|---|
| MVTec-WRN50 | 6.481±0.370% | 0.000% | 57.704±2.033 | 61.141±0.433 | +3.438±1.625 |
| MVTec-DINov2 | 9.462±0.611% | 0.000% | 69.342±0.995 | 72.573±0.373 | +3.231±0.645 |
| VisA-WRN50 | 3.678±0.500% | 0.003±0.003% | 39.345±0.586 | 39.725±0.309 | +0.380±0.429 |
| VisA-DINov2 | 4.748±0.814% | 0.002±0.000% | 47.271±0.901 | 51.590±1.821 | +4.319±1.139 |
Table 2: Retention sweep: P-AP / pooled memory contamination. Values are three-fold means.
| Setting | R50 | R60 | R70 | R80 | R90 |
|---|---|---|---|---|---|
| MVTec-WRN50 | 61.141/0% | 61.717/0% | 61.720/0.0067% | 62.070/0.0089% | 62.084/0.0234% |
| MVTec-DINov2 | 72.573/0% | 72.743/0% | 73.027/0.0034% | 73.094/0.0100% | 73.144/0.0371% |
| VisA-WRN50 | 39.725/0.0033% | 40.345/0.0112% | 40.453/0.0210% | 40.600/0.0462% | 40.475/0.1460% |
| VisA-DINov2 | 51.590/0.0018% | 53.509/0.0066% | 53.762/0.0146% | 53.883/0.0270% | 53.155/0.0947% |
The representation, , memory builder, and test-time inference are identical between baseline and CLEANCON. WRN50/PatchCore retains nearest-memory inference, while DINov2/ProCon retains projection-consensus inference (Roth et al., 2022; Chae et al., 2026). Ground-truth patch labels are not supplied to OOB scoring or filtering and are used only for composition analysis after memory construction.
Complete implementation settings and pseudocode appear in Appendix B.
6 THE CLEANEST MEMORY IS NOT ALWAYS THE BEST MEMORY
6.1 CLEANCON REDUCES CONTAMINATION AND INCREASES MACRO P-AP
The unfiltered baseline and CLEANCON use the same representation, memory size, builder, and inference rule. We compare all 15 MVTec AD categories and 12 VisA categories, WRN50/PatchCore and DINov2/ProCon, and three contamination folds. For each fold, we compute category-macro P-AP and pooled , then report the mean and sample standard deviation over folds.
CLEANCON increases P-AP in all 12 dataset–representation–fold macro comparisons while reducing final-memory contamination to approximately zero in every setting. The three-fold mean gains are +3.438, +3.231, +0.380, and +4.319 points for MVTec–WRN50, MVTec–DINov2, VisA–WRN50, and VisA–DINov2, respectively.
The distribution of macro gains differs across settings. At category–fold level, CLEANCON is higher in 89 of 162 comparisons and in 13 of 36 comparisons on VisA–WRN50. VisA–WRN50 also has the lowest absolute P-AP and the smallest macro improvement, and is the only setting in Sec. 6.4 where CLEANCON trails the SoftPatch-style control.
Here, describes the memory after both the OOB gate and the final builder. A contaminated image may pass the gate without contributing a labeled contaminated descriptor to the final memory.
6.2 CONTAMINATION AND P-AP CAN RISE TOGETHER AS RETENTION INCREASES
CLEANCON raises category-macro P-AP in all 12 matched runs. We next retain the lowest-scoring images as candidates (R50–R90), keeping the builder and final memory size fixed. All four settings use three contamination folds.
R80 exceeds R50 in all 12 dataset–representation–fold comparisons. The setting-level three-fold mean differences are +0.929, +0.521, +0.875, and +2.293 points. In 11 of the 12 comparisons, R80 also contains more contamination. In the remaining comparison, both operating points have zero contamination and R80 still has higher P-AP.
The full sweep shows the same tension. On MVTec, mean P-AP rises from R50 to R60 while pooled contamination remains zero, then continues to rise after contamination reappears. On VisA, P-AP and contamination rise together through R80 before P-AP falls at R90. More candidates are not always better, but the cleanest tested memory is not best either.

Figure 3: The cleanest memory does not attain the highest P-AP. The left axis shows the change in category-macro P-AP relative to R50 for the four dataset–representation settings and their mean. The right axis shows the setting mean of pooled . R80 exceeds R50 in all 12 comparisons, and contamination is also higher in 11 of them.
Category-level patterns also vary by setting. R80 exceeds R50 in 11 of 15 MVTec–DINOv2 categories (median +0.407), 11 of 12 VisA–DINOv2 categories (median +2.060), 9 of 15 MVTec–WRN50 categories, and 7 of 12 VisA–WRN50 categories (median +0.145). Removing the largest positive outlier leaves a mean gain of +0.292 on MVTec–WRN50. On VisA–WRN50, removing pcb4 changes the mean to -0.156.
6.3 INCREASING THE NUMBER OF NORMAL SOURCES DOES NOT REPRODUCE THE GAIN
Increasing image retention admits both normal and contaminated candidates. To test whether more normal sources alone explain the gain, we define the fraction of normal training images that contribute at least one descriptor to the final memory:
The fixed-budget normal-source expansion control (Appendix D.4) increases by 20.88 percentage points and changes P-AP by points. On an auxiliary clean six-category subset, the same 50% image-retention rule reduces P-AP by 0.939 points.
These results show that the retention gain is not explained by the number of normal sources alone. They leave open the possibility that the identity of the retained normal states and their local feature-space configuration are also relevant.
Table 3: Performance comparison on contaminated MVTec AD and VisA under No-Overlap.
| Dataset | Method | Mixed-train contamination | I-AUROC | P-AUROC | P-AP | AUPRO |
|---|---|---|---|---|---|---|
| MVTec | InReaCh | ≈ 4.762% | 92.32 | 97.01 | - | - |
| SoftPatch | ≈ 4.762% | 98.40 | 98.17 | - | - | |
| FUN-AD | ≈ 4.762% | 98.45 | 98.43 | - | - | |
| CLEANCON-WRN50 | ≈ 5% | 97.539 | - | 61.016 | 93.539 | |
| CLEANCON-DINov2 | ≈ 5% | 99.147 | - | 72.255 | 95.770 | |
| VisA | InReaCh | ≈ 4.762% | 83.66 | 97.67 | - | - |
| SoftPatch | ≈ 4.762% | 89.82 | 98.57 | - | - | |
| FUN-AD | ≈ 4.762% | 93.65 | 98.92 | - | - | |
| CLEANCON-WRN50 | ≈ 5% | 92.596 | - | 40.061 | 93.693 | |
| CLEANCON-DINov2 | ≈ 5% | 97.712 | - | 49.522 | 96.861 |
6.4 COMPARISON WITH NOISY-TRAINING BASELINES
Table A8 compares CLEANCON with a single-discriminator SoftPatch selection and reliability-weighting rule under matched detector scaffolds (Jiang et al., 2022). WRN50 rows share PatchCore inference and DINov2 rows share ProCon inference. CLEANCON has higher macro P-AP in five of six settings; on VisA–WRN50, the SP-style control and CLEANCON score 41.495 and 40.061 with pooled memory contamination of approximately 0.108% and 0.006%, respectively.
Table 3 places CLEANCON alongside the 5% No-Overlap results reported for InReaCh, SoftPatch, and FUN-AD (Im et al., 2025). Their 5% anomaly-to-normal ratio corresponds to approximately 4.762% of the final mixed training set; CLEANCON uses approximately 5% mixed-training contamination, fold 0, and seed 0.
7 WHAT IS STORED AND WHAT IS USEFUL ARE DIFFERENT
Global coverage draws sparse contamination into memory; CLEANCON reduces it and raises matched category-macro P-AP. The retention sweep nevertheless places the cleanest memory and highest P-AP at different operating points. and describe what entered memory; the detector scores how the retained references relate to test patches. Memories with the same contamination rate can retain different normal states, densities, and local geometries.
Increasing image retention admits normal and contaminated candidates together, so the sweep does not isolate purity alone. It asks instead whether cleanliness selects the best operating point. In all four settings, memories built from broader candidate pools outperform the cleanest tested memory over part of the sweep, while more normal source images alone do not reproduce the gain. This suggests that source identity and local configuration may also matter.
Memory construction is therefore more than compression. Coverage selects feature-space representatives, filtering controls which training evidence remains, and inference determines how well that memory explains test samples. These stages do not induce the same ordering over memories.
8 LIMITATIONS AND CONCLUSION
CLEANCON changes candidate-image eligibility; selecting rare valid patches without restoring anomalous anchors remains open. The achieved-radius certificate directly covers 0.58–6.32% of selected contamination, and retention is evaluated at five operating points with fixed hyperparameters.
Global coverage draws sparse contamination into memory. CLEANCON drives final-memory contamination to approximately zero and raises category-macro P-AP in all 12 matched comparisons. Yet P-AP can keep rising as contamination reappears, while increasing normal-source count does not reproduce the gain. Useful memories therefore have structure beyond purity alone.
REFERENCES
Paul Bergmann, Michael Fauser, David Sattlegger, and Carsten Steger. MVTec AD — a comprehensive Real-World dataset for unsupervised anomaly detection. In 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 9584–9592, Long Beach, CA, USA, 2019. IEEE. ISBN 978-1-7281-3293-8. doi: 10.1109/CVPR.2019.00982. URL https://ieeexplore.ieee.org/document/8954181/.
Zalán Borsos, Mojmir Mutny, and Andreas Krause. Coresets via bilevel optimization for continual learning and streaming. In Advances in Neural Information Processing Systems, volume 33, pp. 14879–14890. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/paper/2020/hash/aa2a77371374094fe9e0bc1de3f94ed9-Abstract.html.
Leo Breiman. Random forests. Machine Learning, 45(1):5–32, 2001. ISSN 1573-0565. doi:10.1023/A:1010933404324. URL https://doi.org/10.1023/A:1010933404324.
Joongwon Chae, Lihui Luo, Yang Liu, Dongmei Yu, Peiwu Qin, Running Wang, and Ilmoon Chae. ProCon: Projection-Consistency memory for Training-Free anomaly detection, 2026. URL http://arxiv.org/abs/2607.04894.
Moses Charikar, Samir Khuller, David M. Mount, and Giri Narasimhan. Algorithms for facility location problems with outliers. In Proceedings of the twelfth annual ACM-SIAM symposium on Discrete algorithms, SODA '01, pp. 642–651, USA, 2001. Society for Industrial and Applied Mathematics. ISBN 978-0-89871-490-6. URL https://dl.acm.org/doi/10.5555/365411.365555.
Niv Cohen and Yedid Hoshen. Sub-Image anomaly detection with deep pyramid correspondences, 2021. URL http://arxiv.org/abs/2005.02357.
Antoine Cordier, Benjamin Missaoui, and Pierre Gutierrez. Data refinement for fully unsupervised visual inspection using pre-trained networks, 2022. URL http://arxiv.org/abs/2202.12759.
Thomas Defard, Aleksandr Setkov, Angelique Loesch, and Romaric Audigier. PaDiM: A patch distribution modeling framework for anomaly detection and localization. In Alberto Del Bimbo, Rita Cucchiara, Stan Sclaroff, Giovanni Maria Farinella, Tao Mei, Marco Bertini, Hugo Jair Escalante, and Roberto Vezzani (eds.), Pattern Recognition. ICPR International Workshops and Challenges, pp. 475–489, Cham, 2021. Springer International Publishing. ISBN 978-3-030-68799-1. doi: 10.1007/978-3-030-68799-1_35.
Dan Feldman and Michael Langberg. A unified framework for approximating and clustering data. In Proceedings of the forty-third annual ACM symposium on Theory of computing, STOC '11, pp. 569–578, New York, NY, USA, 2011. Association for Computing Machinery. ISBN 978-1-4503-0691-1. doi: 10.1145/1993636.1993712. URL https://dl.acm.org/doi/10.1145/1993636.1993712.
Sorelle A. Friedler and David M. Mount. Approximation algorithm for the kinetic robust K-center problem. Computational Geometry, 43(6):572–586, 2010. ISSN 0925-7721. doi: 10.1016/j.comgeo.2010.01.001. URL https://www.sciencedirect.com/science/article/pii/S0925772110000027.
Teofilo F. Gonzalez. Clustering to minimize the maximum intercluster distance. Theoretical Computer Science, 38:293–306, 1985. ISSN 0304-3975. doi: 10.1016/0304-3975(85)90224-5. URL https://www.sciencedirect.com/science/article/pii/0304397585902245.
Sariel Har-Peled and Soham Mazumdar. On coresets for k-means and k-median clustering. In Proceedings of the thirty-sixth annual ACM symposium on Theory of computing, STOC '04, pp. 291–300, New York, NY, USA, 2004. Association for Computing Machinery. ISBN 978-1-58113-852-8. doi: 10.1145/1007352.1007400. URL https://dl.acm.org/doi/10.1145/1007352.1007400.
Jiin Im, Yongho Son, and Je Hyeong Hong. FUN-AD: Fully unsupervised learning for anomaly detection with noisy training data. In Proceedings of the Winter Conference on Applications of Computer Vision (WACV), pp. 9429–9438, 2025. doi: 10.1109/WACV61041.2025.00915. URL https://openaccess.thecvf.com/content/WACV2025/html/Im_FUN-AD_Fully_Unsupervised_Learning_for_Anomaly_Detection_with_Noisy_Training_WACV_2025_paper.html.
Xi Jiang, Jianlin Liu, Jinbao Wang, Qiang Nie, Kai Wu, Yong Liu, Chengjie Wang, and Feng Zheng. SoftPatch: Unsupervised anomaly detection with noisy data. In Advances in Neural Information Processing Systems, volume 35, pp. 15433–15445. Curran Associates, Inc., 2022. doi: 10.52202/068431-1123. URL https://proceedings.neurips.cc/paper_files/paper/2022/hash/637a456d89289769ac1ab29617ef7213-Abstract-Conference.html.
Krishnateja Killamsetty, Durga S, Ganesh Ramakrishnan, Abir De, and Rishabh Iyer. GRAD-MATCH: Gradient matching based data subset selection for efficient deep model training. In Proceedings of the 38th International Conference on Machine Learning, pp. 5464–5474. PMLR, 2021. URL https://proceedings.mlr.press/v139/killamsetty21a.html.
Ravishankar Krishnaswamy, Shi Li, and Sai Sandeep. Constant approximation for k-median and k-means with outliers via iterative rounding. In Proceedings of the 50th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2018, pp. 646–659, New York, NY, USA, 2018. Association for Computing Machinery. ISBN 978-1-4503-5559-9. doi: 10.1145/3188745.3188882. URL https://dl.acm.org/doi/10.1145/3188745.3188882.
Chengming Liu, Fengjie Wang, Lei Shi, and Zhe Zhao. A synergy scoring filter for unsupervised anomaly detection with noisy data. Neurocomputing, 686:133614, 2026. ISSN 0925-2312. doi:10.1016/j.neucom.2026.133614. URL https://www.sciencedirect.com/science/article/pii/S0925231226010118.
Declan McIntosh and Alexandra Branzan Albu. Inter-Realization channels: Unsupervised anomaly detection beyond One-Class classification. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pp. 6285–6295, 2023. doi: 10.1109/ICCV51070.2023.00578. URL https://openaccess.thecvf.com/content/ICCV2023/html/McIntosh_Inter-Realization_Channels_Unsupervised_Anomaly_Detection_Beyond_One-Class_Classification_ICCV_2023_paper.html.
Baharan Mirzasoleiman, Jeff Bilmes, and Jure Leskovec. Coresets for data-efficient training of machine learning models. In Proceedings of the 37th International Conference on Machine Learning, pp. 6950–6960. PMLR, 2020. URL https://proceedings.mlr.press/v119/mirzasoleiman20a.html.
Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaaeldin El-Nouby, Mahmoud Assran, Nicolas Ballas, Wojciech Galuba, Russell Howes, Po-Yao Huang, Shang-Wen Li, Ishan Misra, Michael Rabbat, Vasu Sharma, Gabriel Synnaeve, Hu Xu, Hervé Jegou, Julien Mairal, Patrick Labatut, Armand Joulin, and Piotr Bojanowski. DINOv2: Learning robust visual features without supervision, 2024. URL http://arxiv.org/abs/2304.07193.
Chen Qiu, Aodong Li, Marius Kloft, Maja Rudolph, and Stephan Mandt. Latent outlier exposure for anomaly detection with contaminated data. In Proceedings of the 39th International Conference on Machine Learning, pp. 18153–18167. PMLR, 2022. URL https://proceedings.mlr.press/v162/qiu22b.html.
Tal Reiss and Yedid Hoshen. Mean-Shifted contrastive loss for anomaly detection. Proceedings of the AAAI Conference on Artificial Intelligence, 37(2):2155–2162, 2023. ISSN 2374-3468. doi: 10.1609/aaai.v37i2.25309. URL https://ojs.aaai.org/index.php/AAAI/article/view/25309.
Tal Reiss, Niv Cohen, Liron Bergman, and Yedid Hoshen. PANDA: Adapting pretrained features for anomaly detection and segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2806–2814, 2021.
doi: 10.1109/CVPR46437.2021.00283. URL https://openaccess.thecvf.com/content/CVPR2021/html/Reiss_PANDA_Adapting_Pretrained_Features_for_Anomaly_Detection_and_Segmentation_CVPR_2021_paper.html.
Karsten Roth, Latha Pemula, Joaquin Zepeda, Bernhard Schölkopf, Thomas Brox, and Peter Gehler. Towards total recall in industrial anomaly detection. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 14298–14308, 2022. doi: 10.1109/CVPR52688.2022.01392. URL https://ieeexplore.ieee.org/document/9879738.
Sirojbek Safarov, Jaewoo Park, Yoon Gyo Jung, Kuan-Chuan Peng, Wonchul Kim, Seongdeok Bang, and Octavia Camps. MeDS: Memory-distilled selection for noise-robust anomaly detection. In Proceedings of the 43rd international conference on machine learning, volume 306 of Proceedings of machine learning research, 2026. doi: 10.48550/arXiv.2605.26676. URL https://arxiv.org/abs/2605.26676.
Ozan Sener and Silvio Savarese. Active learning for convolutional neural networks: A Core-Set approach. In International Conference on Learning Representations (ICLR), 2018. URL https://openreview.net/forum?id=HlaIuk-RW.
Chengjie Wang, Xi Jiang, Bin-Bin Gao, Zhenye Gan, Yong Liu, Feng Zheng, and Lizhuang Ma. SoftPatch+: Fully unsupervised anomaly classification and segmentation. Pattern Recognition, 161:111295, 2025. ISSN 0031-3203. doi: 10.1016/j.patcog.2024.111295. URL https://www.sciencedirect.com/science/article/pii/S003132032401046X.
Jinsung Yoon, Kihyuk Sohn, Chun-Liang Li, Sercan O. Arik, Chen-Yu Lee, and Tomas Pfister. Self-supervise, refine, repeat: Improving unsupervised anomaly detection. Transactions on Machine Learning Research, 2022. ISSN 2835-8856. URL https://openreview.net/forum?id=b3v1UrtF6G.
Yuxin Zhang, Yunkang Cao, Yuqi Cheng, Yihan Sun, and Weiming Shen. Leveraging learning bias for noisy anomaly detection. In 2025 IEEE International Conference on Systems, Man, and Cybernetics (SMC), pp. 6403–6408, 2025. doi: 10.1109/SMC58881.2025.11343582. URL https://ieeexplore.ieee.org/document/11343582.
Yang Zou, Jongheon Jeong, Latha Pemula, Dongqing Zhang, and Onkar Dabeer. SPot-the-Difference Self-supervised Pre-training for anomaly detection and segmentation. In Shai Avidan, Gabriel Brostow, Moustapha Cissé, Giovanni Maria Farinella, and Tal Hassner (eds.), Computer Vision – ECCV 2022, volume 13690 of Lecture Notes in Computer Science, pp. 392–408, Cham, 2022. Springer Nature Switzerland. ISBN 978-3-031-20056-4. doi: 10.1007/978-3-031-20056-4_23.
A EXPERIMENTAL PROTOCOL
A.1 CONTAMINATION PROTOCOLS AND NO-OVERLAP EVALUATION
Contaminated training sets are constructed by injecting anomalous images into clean training images. Let and denote the numbers of clean and injected anomalous training images. We use two injection protocols.
Exact-Final. The fraction of anomalous images in the final mixed training set is
Under Exact-Final 5%, is chosen so that anomalous images constitute approximately 5% of the mixed training set after integer rounding. The amplification analysis, selector comparison, matched intervention, retention sweep, and SoftPatch-style comparison use this protocol.
Addition. The injection amount is defined relative to the clean training set:
The corresponding prevalence in the final mixed set is
Addition-0.10 therefore corresponds to approximately 9.09% final contamination before integer rounding. The normal-source expansion control and the fold-stability analysis use Addition-0.10.
Both protocols use No-Overlap evaluation. Anomalous images injected into training are removed from the downstream evaluation split. Each contamination fold injects a different set of anomalous images and uses the corresponding evaluation split. We report the mean and sample standard deviation across three folds; selector stochastic conditions are fixed unless stated otherwise.
Under Exact-Final 5%, each MVTec fold contains 3,629 clean training images and 193 injected anomalous images. The initial anomalous evaluation pool contains 1,065 images, and category-level realized contamination ranges from 4.7619% to 5.1948%. Each VisA fold contains 8,659 clean images and 457 injected anomalous images. The initial anomalous evaluation pool contains 743 images, and category-level realized contamination ranges from 4.9578% to 5.0788%.
A.2 PATCH LABELS AND AGGREGATION
Ground-truth masks are aligned to the feature grid. A descriptor is labeled contaminated if its corresponding image region contains at least one anomalous pixel; no anomaly-area threshold is used. One grid cell corresponds to approximately input pixels for DINOv2 at and pixels for WRN50 at . For WRN50, the label denotes the final feature-grid position.
Normal images have all-zero patch labels, and the label grid is flattened in feature order. Candidate counts are pooled over categories and depths. Writing and for stored descriptor counts, DINOv2/ProCon matched-intervention and retention results compute over all categories, four depths, and five banks within each fold. We report the mean and sample standard deviation of the three fold-level ratios, not an average of bank ratios. Selector and radius analyses use one memory per depth (Appendix C).
Detection metrics are computed per category and then macro-averaged. Three-fold summaries first compute each fold's category-macro metric and then report the mean and sample standard deviation over folds.
A.3 DETECTORS, MEMORY BUDGETS, AND EVALUATION METRICS
| Setting | Representation | Memory / inference |
|---|---|---|
| WRN50 | frozen WRN50 features | PatchCore-style / nearest reference |
| DINOv2 | frozen DINOv2 features | ProCon projection consensus |
The default final memory size is an absolute 1% of the unfiltered candidate pool. The same K is retained after CLEANCON filtering. Budget-dependent amplification is evaluated on nested prefixes of 0.1%, 0.5%, 1%, 5%, and 10%.
We report I-AUROC, P-AUROC, P-AP, and AUPRO. The main text uses P-AP as the primary localization metric.
A.4 SELECTOR CONTROLS
We compare the following selectors under identical representations and memory budgets:
-
patch-level random sampling,
-
image-balanced random sampling,
-
SimHash deduplication,
-
density top-K,
-
sampled k-means medoid,
-
Voronoi landmark mass,
-
local farthest-first selection (Local FF), and
-
global farthest-first selection (Global FF).
Patch random samples uniformly from the pooled candidate set. Image-balanced random assigns samples to source images in round-robin order. Both random controls use 20 repetitions. Local FF divides memory capacity across images and then performs farthest-first selection within each image. All selectors use the same candidate representation and absolute memory size.
B CLEANCON IMPLEMENTATION
B.1 OUT-OF-BAG BANKS AND PATCH SCORES
For a category with training images, we independently sample image-membership sets , each containing images. Membership is shared across feature depths, while descriptor banks are layer specific:
Target image i uses only banks that exclude it:
For each layer and patch, we retrieve the nearest descriptors and compute
The soft projection weights and projected descriptor are
and the residual is
The temperature is calibrated from the distance scale of a deterministic descriptor subsample. Residuals are aggregated by taking the OOB-bank median within each layer and then averaging across depths:
B.2 IMAGE RANKING AND RETENTION
The image score is the mean of the highest 0.5% patch residuals:
On the grid, approximately four locations contribute. Default CLEANCON retains images at or below the category median:
All descriptors from images in are passed to the original memory builder. The retention sweep uses the same ranking and retains of images.
Table A1: Micro-pooled amplification over nested memory budgets. Values are mean sample standard deviation over contamination folds 0–2.
| Setting | 0.1% | 0.5% | 1% | 5% | 10% |
|---|---|---|---|---|---|
| MVTec-WRN50 | 47.47 ± 2.82 | 23.88 ± 1.81 | 16.04 ± 0.77 | 5.92 ± 0.21 | 3.99 ± 0.14 |
| VisA-WRN50 | 97.15 ± 5.90 | 44.39 ± 2.82 | 29.97 ± 1.25 | 11.22 ± 0.31 | 6.94 ± 0.18 |
| MVTec-DINov2 | 43.17 ± 2.97 | 30.01 ± 2.31 | 23.19 ± 1.67 | 9.59 ± 0.60 | 6.04 ± 0.32 |
| VisA-DINov2 | 87.73 ± 5.89 | 57.99 ± 4.02 | 40.61 ± 2.65 | 13.41 ± 0.55 | 7.70 ± 0.26 |
B.3 FIXED-BUDGET CONSTRUCTION
Vanilla and CLEANCON share the representation, preprocessing, Global FF builder, inference rule, and absolute memory size:
The DINov2/ProCon path uses four feature depths, five equal-size seed-perturbed memory banks per depth, a 192-dimensional selection projection, soft local projection, fp16 memory storage, and Gaussian map smoothing with . Vanilla and CLEANCON use the same target count for each layer–bank pair. Matched-intervention and retention pools all pairs; selector and radius counts use one memory per depth (Appendix C). The WRN50/PatchCore path uses a 128-dimensional selection projection and PatchCore inference.
The approximate-greedy builder samples 10 auxiliary points with NumPy RNG seed 0. Candidate distance is initialized by the mean Euclidean distance to the auxiliary points and subsequently updated by the distance to the most recently selected center.
B.4 PSEUDOCODE
-
Extract multi-depth patch descriptors from all training images.
-
Sample image memberships .
-
For each image , compute soft-projection residuals using banks with .
-
Aggregate by OOB-bank median and depth mean to obtain .
-
Average the highest 0.5% patch residuals to obtain .
-
Retain the lowest-scoring images within each category.
-
Pass all descriptors from retained images to the original memory builder.
-
Build each final memory bank at the fixed target size and run the original inference.
C HOW GLOBAL COVERAGE SELECTS CONTAMINATION
C.1 BUDGET-DEPENDENT AMPLIFICATION
For category and budget , let , , , and denote the candidate count, contaminated candidate count, memory size, and selected contaminated count. Micro-pooled amplification is
DINov2 selector and radius analyses pool categories and four depths for one seed-0 memory per depth; matched-intervention and retention pool all five banks (Sec. 3). WRN50 uses a merged patch representation.
Among 162 category-level trajectories, 156 are non-increasing on the coarse budget grid. All six increases occur between and .
C.2 SELECTOR COMPARISON
Global FF yields for every category in all four settings. The corresponding counts are 13/15, 11/12, 15/15, and 12/12 for Local FF; 12/15, 9/12, 9/15, and 6/12 for sampled -means medoid; and 12/15, 11/12, 5/15, and 6/12 for SimHash.
Table A2: Fold-0 Global FF counts at a 1% per-memory budget. DINOv2 pools categories and four depths for one seed-0 memory per depth.
| Setting | Selected | |||||
|---|---|---|---|---|---|---|
| MVTec-WRN50 | 2,996,448 | 12,586 | 29,958 | 2,065 | 16.41 | 16.41% |
| VisA-WRN50 | 7,146,944 | 7,210 | 71,464 | 2,247 | 31.17 | 31.17% |
| MVTec-DINOv2 | 11,985,792 | 51,036 | 119,832 | 12,160 | 23.83 | 23.83% |
| VisA-DINOv2 | 28,587,776 | 25,356 | 285,856 | 11,048 | 43.57 | 43.57% |
Table A3: Amplification by selector. Random baselines report mean sample standard deviation over 20 repetitions; the remaining selectors use seed 0.
| Selector | MV-WRN | VisA-WRN | MV-DINO | VisA-DINO |
|---|---|---|---|---|
| Patch random | ||||
| Image-balanced random | ||||
| SimHash | ||||
| Density top- | ||||
| Sampled -means medoid | ||||
| Voronoi landmark mass | ||||
| Local FF | ||||
| Global FF |
C.3 ACHIEVED-RADIUS CERTIFICATE
Let denote the returned centers and
Define the relative contaminated cover number
Since is feasible at the achieved radius,
For
a greedy packing with pairwise distances larger than satisfies
The certificate is positive in all four settings. The proportion of selected contaminated centers directly certified at the achieved radius is .
D ADDITIONAL RESULTS FOR MEMORY INTERVENTIONS
D.1 DISTRIBUTION OF MATCHED INTERVENTION GAINS
The three-fold matched intervention improves P-AP in all 12 dataset–representation–fold macro comparisons and in 89 of 162 category–fold comparisons. The VisA–WRN50 win count is 13/36.
D.2 CATEGORY-LEVEL RETENTION RESULTS
| Setting | Categories with R80 > R50 | Median P-AP |
|---|---|---|
| MVTec-WRN50 | 9/15 | - |
| MVTec-DINOv2 | 11/15 | +0.407 |
| VisA-WRN50 | 7/12 | +0.145 |
| VisA-DINOv2 | 11/12 | +2.060 |
Removing the largest positive category outlier on MVTec–WRN50 leaves a mean gain of +0.292. On VisA–WRN50, removing pcb4 changes the mean difference to -0.156. At fold level, R80 exceeds R50 in all 12 runs, and contamination is also higher at R80 in 11 of them.
Table A4: Fold-0 achieved-radius packing certificate for the same seed-0 Global FF memories as Table A2.
| Setting | ||||
|---|---|---|---|---|
| MVTec-WRN50 | 32.02% | 95 | 2,065 | 4.60% |
| VisA-WRN50 | 24.98% | 142 | 2,247 | 6.32% |
| MVTec-DINov2 | 20.36% | 70 | 12,160 | 0.58% |
| VisA-DINov2 | 26.92% | 92 | 11,048 | 0.83% |

Figure A1: Distribution of matched P-AP changes. Points denote contamination folds, ticks denote three-fold means, and labels report category–fold wins.
D.3 METRIC CONSISTENCY OF THE RETENTION RESULT
The four-setting mean increases for all metrics. Fold agreement is strongest for P-AP and AUPRO; P-AUROC increases in two of three VisA folds.
D.4 CLEAN FILTERING AND NORMAL-SOURCE EXPANSION
The six-category auxiliary subset contains cable, capsule, metal nut, pill, toothbrush, and zipper. On clean training data, applying the same 50% image-retention rule reduces P-AP by 0.939 points. In the 15-category MVTec Addition-0.10 No-Overlap experiment, the normal-source expansion control increases by 20.88 percentage points and changes P-AP by points.
D.5 ALTERNATIVE CANDIDATE INTERVENTIONS
We compare the whole-image median gate with four candidate controls. OOB-NN and projection-residual patch ranking retain patches from otherwise rejected images using their corresponding OOB scores. Oracle normal-region selection removes mask-positive patches. Normal-source expansion raises at the same final memory size, while adaptive image retention replaces the fixed 50% setting with a data-dependent retained fraction. Projection-residual patch ranking exceeds OOB-NN patch ranking but remains below the whole-image median gate. Lowering the patch quantile from Q0.95 to Q0.90 reduces contamination while changing P-AP from 67.921 to 67.874.
D.6 RISK-AWARE COVERAGE CONTROL
In a fold-0, 15-category MVTec setting, we modify the coverage builder to use the OOB risk score. The traversal oversamples coverage candidates and replaces a subset of high-risk centers. The risk-aware builder reduces at both ratios. P-AP changes from 72.848 to 72.814 at 5% and from 70.415 to 70.573 at 10%.
Table A5: Change from R50 to R80. Values are differences of three-fold category-macro means; parentheses give the number of improving folds.
| Setting | I-AUROC | P-AUROC | P-AP | AUPRO |
|---|---|---|---|---|
| MVTec-WRN50 | +1.239 (3/3) | +0.126 (3/3) | +0.929 (3/3) | +0.425 (3/3) |
| MVTec-DINov2 | +0.242 (3/3) | +0.046 (3/3) | +0.521 (3/3) | +0.139 (3/3) |
| VisA-WRN50 | +1.071 (3/3) | +0.037 (2/3) | +0.875 (3/3) | +0.301 (3/3) |
| VisA-DINov2 | +0.104 (2/3) | +0.028 (2/3) | +2.293 (3/3) | +0.120 (2/3) |
(a)

injected contamination ratio
(b)

Figure A2: Normal-source expansion. The expansion control increases normal-source representation by approximately 21 percentage points without improving P-AP.
D.7 DETECTOR SCAFFOLDS IN THE SOFTPATCH-STYLE CONTROL
The SoftPatch-style comparison uses all 15 MVTec and 12 VisA categories at contamination fold 0 and seed 0. Within WRN50 rows, both arms share PatchCore inference; within DINov2 rows, both share ProCon inference. The SoftPatch-style arm uses single-discriminator selection and reliability weighting, while the CLEANCON arm uses OOB image gating.
On VisA-WRN50, pooled final-memory contamination is approximately 0.108% for the SP-style control and 0.006% for CLEANCON, while P-AP is 41.495 and 40.061, respectively.
Table A6: Alternative candidate interventions.
| Candidate rule | Selection unit | Experimental scope | Result |
|---|---|---|---|
| OOB-NN patch ranking | patch | six-category auxiliary experiment | lower local ranking and P-AP than projection-residual patch ranking |
| Projection-residual patch ranking | patch | six-category auxiliary experiment | +1.233 P-AP over OOB-NN,-0.371 relative to whole-image gating |
| Oracle normal-region selection | patch | ground-truth mask setting | removes anomalous regions and retains only normal regions as candidates |
| Normal-source expansion | image + patch | 15 MVTec categories, three No-Overlap folds | -0.137 P-AP and -0.215 AUPRO relative to whole-image gating |
| Adaptive image retention | image | Exact-Final, seed 0 | +0.601 P-AP at 5% and -2.095 at 10% relative to whole-image gating |
Table A7: Risk-aware coverage control.
| Mixed-train contamination | Builder | I-AUROC | P-AP | AUPRO | |
|---|---|---|---|---|---|
| 5% | Global FF | 0.0155% | 99.641 | 72.848 | 95.976 |
| risk-aware | 0.0093% | 99.596 | 72.814 | 95.974 | |
| 10% | Global FF | 0.8059% | 99.507 | 70.415 | 94.323 |
| risk-aware | 0.6934% | 99.519 | 70.573 | 94.389 |
Table A8: SoftPatch-style control and CLEANCON under matched detector scaffolds.
| Dataset | Backbone / ratio | SP-style | CLEANCON | P-AP | ||||
|---|---|---|---|---|---|---|---|---|
| I-AUROC | P-AP | AUPRO | I-AUROC | P-AP | AUPRO | |||
| MVTec | WRN50 / 5% | 98.241 | 60.029 | 93.465 | 97.539 | 61.016 | 93.539 | +0.987 |
| MVTec | WRN50 / 10% | 98.025 | 60.013 | 92.971 | 97.762 | 60.691 | 93.827 | +0.679 |
| MVTec | DINov2 / 5% | 98.880 | 70.570 | 95.440 | 99.147 | 72.255 | 95.770 | +1.686 |
| MVTec | DINov2 / 10% | 98.856 | 68.890 | 94.814 | 99.316 | 72.052 | 96.063 | +3.162 |
| VisA | WRN50 / 5% | 92.810 | 41.495 | 93.735 | 92.596 | 40.061 | 93.693 | -1.434 |
| VisA | DINov2 / 5% | 97.502 | 46.147 | 96.253 | 97.712 | 49.522 | 96.861 | +3.374 |