Selection Bias in Worst-Region Pathology Grading

Many pathology grades are defined by the worst thing on the slide. A lymph node is positive if any region contains metastasis, and a prostate biopsy's grade is driven by its highest-grade glands. Computational models copy this rule by scoring every small image tile and taking a maximum, or a soft version of one. Taking the maximum of many noisy scores is biased upward. Reinforcement learning (RL) calls this overestimation bias: the maximum preferentially picks tiles whose noise happens to be positive. Two consequences follow if the noise is roughly independent across tiles. A benign slide should look more suspicious the more tissue it contains. And the inflation should be largest where tiles are genuinely ambiguous, which is where pathologists disagree with each other.

We propose to measure this effect directly and to correct it with the remedy RL developed for the same problem. That remedy separates choosing the worst region from scoring it, using two estimators whose errors are independent. Inter-observer disagreement serves two roles here: it is the evaluation target, since we score models against full panels of pathologists rather than a single label, and it gives an estimate of how noisy each region is, which tells us how much correction to apply. The core claim is concrete. A grader that selects candidate regions with one estimator and scores them with an independently trained second estimator removes the growth of false-positive scores with slide size. It does so without the systematic under-grading that fully decoupled estimators cause. Its grade distributions should also match multi-pathologist panels more closely than standard max-based or attention-based pooling.

Why this is the right intersection, and what it is not

The research file suggests an obvious combination: add overestimation correction to an RL agent that navigates slides. SASHA trains such an agent, which looks at a low-resolution slide and chooses which 10–20% of tiles to inspect at high resolution, and it reaches an area under the ROC curve (AUC) of 0.979 on CAMELYON16 with 20% sampling. SASHA is trained with Proximal Policy Optimization, a policy-gradient method with no maximum over action values in its learning target. The maximization bias analysed in Double DQN and Action Intersection Double Q-learning therefore does not transfer to SASHA without first rebuilding it as a Q-learner. That rebuild would be an engineering detour, not a scientific claim, so we do not pursue it.

The maximum that matters is in the aggregation step every slide-level grader shares. Bayes-MIL motivates this choice. It shows that attention-based multiple instance learning puts high importance on normal tissue: patch precision on CAMELYON16 is 0.6068 for CLAM and 0.1030 for DSMIL, against 0.8107 for its own Bayesian attention. (Multiple instance learning, or MIL, means training with only a slide-level label over a bag of unlabeled tiles.) Bayes-MIL treats this "attention hallucination" as an uncertainty problem and fixes it with a variational attention distribution plus spatial regularizers. It is limited to binary labels, and its authors flag multi-class grading as open.

We take a different view of the same failure. A large part of it is selection bias: what goes wrong is which tile gets picked, not only how uncertain each tile's score is. This view makes a quantitative prediction that Bayes-MIL does not make. If tile scores carry roughly Gaussian, independent noise of size $\sigma$, the expected maximum over $n$ benign tiles exceeds the true benign level by about $\sigma\sqrt{2\ln n}$ (the standard extreme-value growth of Gaussian maxima). False-positive scores should therefore rise with the logarithm of tissue area, and faster on ambiguous tissue. We do not assume this holds. Testing it is the first experiment.

Core mechanism

We train two tile scorers, $f_A$ and $f_B$, on disjoint halves of the training slides, so their errors are as independent as the data allow. For a slide with $n$ tiles, $f_A$ ranks the tiles and keeps the top $K$. The slide's worst-region score is then

$$s = \max_{i \in \text{top}_K(f_A)} f_B(x_i),$$

where $x_i$ is tile $i$. Setting $K=1$ gives the classic double estimator, in which $f_B$ simply scores the tile $f_A$ picked. Setting $K=n$ gives the ordinary maximum under $f_B$. Action Intersection Double Q-learning proves that these two ends are biased in opposite directions, with $K=1$ underestimating. It also shows the bias in both directions grows with the number of options, and that the best $K$ scales roughly linearly with that number, though it leaves the choice of $K$ to grid search. In pathology, systematic under-grading is the clinically dangerous direction, so the $K=1$ end is not acceptable. The intermediate regime is what the method is for.

Inter-observer variability is used to choose $K$. We train a lightweight head to predict, for each tile, how much raters disagree on it. The supervision comes from tile-level multi-rater labels in CrowdGleason (seven residents per tile) and the six-pathologist annotations of Gleason2019. The predicted disagreement, combined with the measured disagreement between $f_A$ and $f_B$, estimates the local noise level. We then pick $K$ per slide so that the estimated bias is zero, or a small positive margin if a deployment prefers slight over-calling. A fixed, grid-searched $K$ is kept as an ablation, so the value of the noise-adaptive rule is measured rather than assumed.

Research program

The work has three parts. The first is a measurement study. On the 160 normal CAMELYON16 test and training slides, where ground truth is reliable, we fit the trend of slide-level score against $\ln n$ for max pooling, top-$k$-mean pooling, CLAM attention, and Bayes-MIL. We then check whether the slope tracks the measured scorer noise, as the extreme-value argument predicts. A flat slope for every method would falsify the premise, and we would stop at that point.

The second part builds the decoupled grader for ordinal grading. Each tile gets a grade score; the worst-pattern grade is taken by the decoupled maximum; and a second, primary-pattern summary is taken by mean pooling, mirroring how Gleason grade groups combine patterns. The model is trained toward rater distributions, not majority labels, following the evidence from The Latent Doctor Model and CrowdGleason that majority voting discards real ambiguity.

The third part is an exploratory question about the human side. Pathologists also scan a slide and report its worst region. On the ISUP biopsy set (100 slides, 20 pathologists), we ask whether the panel's upward spread, meaning individual grades above the panel median, increases with tissue area and with predicted tile ambiguity. With 100 slides this analysis is underpowered, so we report it as an effect size with an interval, not as a headline. A positive result would recast part of inter-observer variability as a predictable selection effect rather than pure idiosyncrasy. That would also bear on the disagreement between Variability Matters, which treats discordance as noise to filter, and the Latent Doctor Model, which treats it as signal.

Baselines

The naive reference is a single tile scorer with hard max pooling and with top-$k$-mean pooling, trained on all training slides. This is the configuration whose bias we are trying to remove. Beating it means a flatter false-positive slope against $\ln n$ on normal slides at equal sensitivity.

The strongest competitor on the benign-slide question is Bayes-MIL, the only method in the file that directly targets attention placed on normal tissue. It reports 0.8107 patch precision and 90% slide accuracy on CAMELYON16. We also run CLAM, which reports 0.953 AUC on CAMELYON16 lymph node metastasis detection. All methods share the same frozen tile features, the same data splits, and an equal hyperparameter search budget. Our method may not lose more than 0.01 slide AUC to CLAM's reproduced number while matching or beating Bayes-MIL's patch precision, and it must have a smaller size-dependent false-positive slope than both.

A compute-matched ensemble trains two scorers on all the data with different seeds, averages them, then takes the max. It uses the same two networks we use but couples selection and evaluation. A cross-fit ablation trains our two scorers on the same data with different seeds instead of disjoint halves. This isolates whether independence of errors, the key ingredient, does the work. The $K=1$ double estimator and a fixed grid-searched $K$ isolate the intersection step and the adaptive choice of $K$.

For grading against panels, the baselines are the Conditional Latent Doctor Model, which reports a Kullback–Leibler (KL) divergence of 0.461 on Gleason2019 and a Spearman correlation of up to 0.728 between its prediction entropy and the 20-pathologist panel entropy on ISUP, and SVGPCR on CrowdGleason, which reports a quadratic kappa of 0.7048 against 0.6576 for majority vote. Beating them means lower KL divergence and a mean signed grade error, measured against the panel mean, closer to zero, while keeping kappa within noise of theirs.

Why not just…?

Why not just use mean or attention pooling and avoid the maximum altogether? Worst-region rules exist because small foci decide the diagnosis, and averaging dilutes a single high-grade gland or micrometastasis among thousands of benign tiles. Attention pooling sits in between and does not escape the problem: CLAM's 0.6068 patch precision in Bayes-MIL shows soft maxima still land on normal tissue. Our measurement study includes mean pooling. If mean pooling matches our sensitivity on small-focus CAMELYON16 slides while showing no size-dependent bias, the proposal loses its reason to exist, and we will report that.

Why not just recalibrate the slide score as a function of tissue area? This is the most serious threat. If the bias is a clean function of $n$, a post-hoc regression on $\ln n$ could subtract it. We run this baseline, fitted on validation slides. Our argument is that the bias also depends on local ambiguity, which varies across slides of equal size. The decisive test is whether size-only calibration leaves a remaining false-positive excess on high-disagreement slides that the decoupled grader removes. If it does not, the simpler calibration wins.

Why not just average an ensemble before taking the max? Averaging shrinks $\sigma$, and with it the bias, but members trained on the same data share errors, so selection and evaluation stay coupled. The compute-matched ensemble baseline and the same-data cross-fit ablation answer this directly. If the ensemble's slope matches ours, independence of errors is not the operative ingredient.

Why not just filter out discordant raters, as in Variability Matters? Filtering improved cell detection, but it depends on a single anchor annotator chosen by volume. It also removes exactly the disagreement signal we use to estimate local noise. We train a filtered-label variant (top-50% conformity raters on CrowdGleason) and compare its grade bias and panel KL divergence against the full-distribution model.

Decisive checks

The project succeeds if three things hold. First, max-pooled benign scores on CAMELYON16 rise measurably with $\ln n$, and the decoupled grader flattens the slope beyond what size-only calibration achieves on high-ambiguity slides. Second, on ISUP and Gleason2019, the decoupled grader's mean signed error relative to the panel lies between those of the $K=1$ and $K=n$ variants, its KL divergence to the panel does not exceed CLDM's 0.461, and the grader does not under-call high grades. Third, the disjoint-data ablation accounts for most of the gain over the seed-ensemble. A failure of the first check falsifies the premise. A failure of the third means the effect is variance reduction, not decoupling, and the RL analogy contributes nothing beyond ensembling.