arXiv(opens in a new tab)cs.CVAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.30835

Reliable Benchmarking of Artifact Detection in Computational Pathology: A Reproducibility and Uncertainty Analysis

Konstantinos Moutselos, Ilias Maglogiannis

Abstract

Background and Objective: Automated quality control is a prerequisite for whole-slide image analysis, yet the benchmarks on which quality-control methods are compared share four properties that make their reported differences hard to interpret: few independent slides, annotation concentrated in a minority of them, pooled ratio metrics with no closed-form standard error, and a single inherited train/test partition. We propose a reliability protocol for such benchmarks.

Methods: The protocol quantifies four sources of variability — test-set sampling (stratified paired bootstrap with permutation tests), training stochasticity (a repeated training run), partition composition (a survey of random partitions), and undocumented preprocessing (decomposition of steps the published description omits) — and treats a claim as reportable only if it survives all four. Three of the four cost minutes of processor time; the fourth costs one training run. We apply it to an independent reconstruction of a published diffusion-based artifact detector, with every documented ambiguity resolved by explicit ablation, evaluated on the original 24-slide partition and against a supervised baseline.

Results: The method's central mechanism reproduces: the auxiliary contrastive term improves pooled F1 from 0.673 to 0.688 and replicates under a second seed (+0.0156, p = 0.031; +0.0190, p = 0.005), although it acts on pen marking rather than the artifact types cited to motivate it. Its comparative claims do not: differences between design variants, and against the supervised baseline, fall inside the uncertainty of the evaluation. Four of 24 slides carry 70% of scored annotated pixels, giving an effective sample size of 6.2, and the partition in general use sits at the 7th percentile. An unreported tissue-restriction step excludes 41.4% of out-of-focus annotation against 2.6% of air bubble; such a gate is confounded with blur by construction, and no threshold within the same family of criteria removes the bias.

Conclusions: Small-cohort quality-control benchmarks support far weaker conclusions than current reporting practice implies. The four checks proposed here are cheap enough to accompany any evaluation on such a resource; they separate reproducible effects from differences the evaluation cannot resolve, and detect structurally confounded preprocessing before any measurement is made.

Keywords: Reproducibility; Uncertainty quantification; Benchmarking; Computational pathology; Quality control; Whole-slide imaging

1. Introduction

Whole-slide images carry artifacts that no downstream model was trained to expect: regions out of focus, tissue folded during sectioning, air trapped under the coverslip, ink left by a pathologist's pen. These are not rare. They arise from ordinary variation in a manual, physical, multi-step laboratory process [1], and they propagate silently — a tile of blurred tissue enters a multiple-instance-learning bag indistinguishably from a diagnostic one, and the slide-level models that consume such bags [2,3], increasingly trained under weak or few-shot supervision [4] where every tile carries weight, have no way to signal that anything is wrong [5–7].

Automated quality control is therefore a precondition for the reliability of everything built on top of it, and interest in it has grown accordingly.

What has not grown with it is the evidential standard applied to the resulting comparisons. Artifact detectors are typically reported as a table of point estimates on a single fixed partition of a small annotated cohort: one pooled F1 per configuration, one per-type sensitivity column, a comparison against one or two prior methods. Differences of one or two points in the second decimal place are presented as results. Rarely is there an interval, a repeated training run, or an indication of how much of the reported difference would survive a different draw of slides. The convention is not universal in the wider field — work on out-of-distribution detection in digital pathology has reported bootstrap confidence bounds throughout, and variability under repeated training has been studied in medical image segmentation — but it has not reached the artifact-detection literature. This is understandable. Exhaustively annotated whole-slide data is expensive, cohorts are correspondingly small, and the reporting convention is inherited from adjacent fields whose test sets contain thousands of independent samples. It is nonetheless a problem, and a specific one: the pixel-pooled metrics used here behave very differently from what that convention assumes.

Four properties make such a benchmark liable to produce conclusions that are precise in appearance and unsupported in fact. The unit of independence is the slide rather than the pixel, so a cohort of a few dozen slides supplies a few dozen observations however many millions of pixels it contains. Annotated area is distributed unevenly across those slides, so a minority of them governs the variance of every pooled statistic. The metrics themselves are pooled ratios rather than means, so they have no closed-form standard error and the familiar tests do not apply to them. And the train/test partition is drawn once and inherited, so every reported number is conditional on a draw whose representativeness is never examined. Each of these is individually well understood. Their conjunction, which is the normal condition of whole-slide quality control, is what makes the reported second decimal place uninterpretable.

We treat this as the object of study, and use diffusion-based pathology quality control as the case through which to examine it. The case is well chosen for the purpose rather than incidental to it: the method is recent, the benchmark is public and widely used, no reference implementation exists, and the published description — like most — leaves several decisions to the reader. Reconstructing it therefore exercises every source of variability at once, and does so on a resource that other groups are actively building on. Independent reproduction is in any case scarce in this field [8,9], for reasons that have been documented and that Section 1.2 returns to. Our contribution is a protocol and an account of what it finds. The protocol quantifies four independent sources of variability — test-set sampling, training stochasticity, partition composition, and preprocessing steps that the published description omits — and requires a claim to survive all four before it is treated as reportable. Three of the four cost minutes of processor time; the fourth costs a single additional training run. All are cheap relative to the training they accompany, and none requires data or code beyond what a reproduction already has in hand.

Applied to the case study, the protocol separates the findings cleanly, and the separation is what we wish to report.

The mechanism reproduces. The auxiliary contrastive term that the method adds does improve detection; the improvement replicates across independently trained models, and it is not an artefact of test-set sampling. It is small, and it acts on a different artifact type than the one the original work invokes to motivate it, but it survives every axis.

The comparisons do not. Differences between the design variants, and between this method and a supervised baseline, all fall inside the uncertainty of the evaluation — including an ordering against that baseline which reverses in our hands without either direction being statistically supported. This is not a finding about the method. With ground truth concentrated in a handful of slides, the effective sample size of the 24-slide test partition is approximately six, computed over the ground truth actually scored, and the interval on any single pooled F1 spans nearly 0.4. A number that unstable is not a property of a method: repeat the study on a different draw of slides and it moves by more than any difference this literature reports.

And one undocumented step is not merely undocumented but structurally confounded. Every implementation must restrict predictions to tissue; no published description says how. The restriction we implemented excludes 41% of out-of-focus annotation against 3% of air bubble, shifting a headline per-type sensitivity by 0.36. The instructive part is not the size of the shift but the reason the obvious correction fails. Cheap tissue criteria threshold image properties — chromatic saturation, luminance, local gradient — that out-of-focus tissue is defined by degrading, so the gate is confounded with the artifact by construction, and no choice of threshold or disjunction of such properties separates them. An unspecified step can therefore leave a reconstruction with no correct choice available inside the space of choices it appears to offer.

Our contributions are: (i) a four-axis protocol for establishing which conclusions on a small, imbalanced benchmark survive evaluation uncertainty, together with an explicit decision rule and the reporting requirements that follow from it; (ii) a statement of the conditions under which such a protocol is warranted, so that it can be applied without reference to the case examined here; (iii) the finding that a preprocessing gate may be confounded with the phenomenon under study by construction, which is detectable before any measurement and is not remediable by adjusting the gate; (iv) an independent reconstruction of a published quality-control method, with every documented ambiguity resolved by explicit ablation rather than by selection, evaluated under all four axes and against a supervised baseline on a common denominator; and (v) a quantitative characterisation of a widely used artifact benchmark — its effective sample size, the position of its standard partition among possible partitions, the non-overlapping size distributions of its artifact classes, and one published per-type result the reconstruction does not recover — each of which is inherited by any work using the same resources.

The protocol is demonstrated on one method and one benchmark, and we do not claim empirical generality beyond that. What we do claim is that its four conditions are stated independently of the case, that they are satisfied by most public whole-slide quality-control resources, and that each of its four measurements is cheap enough to be performed as a matter of course.

References (36)