#Reporting
Li et al., in PLOS One, 11 November 2026, tested an adjustment for contextual bias during whole-slide classification. Multiple instance learning (MIL) learns a slide-level label from many image patches without requiring a diagnostic label for each patch.
The approach groups recurring patch features from training slides into representative patterns, then uses these patterns to adjust how patch information is combined. It targets potential contextual cues such as staining, background and tissue preparation artefacts before the slide representation is formed. These patterns are proxies, not verified causal confounders, and may also contain disease-relevant morphology.
CAMELYON16 supplied 399 whole-slide images for breast cancer metastasis detection, with 270 training and 129 test slides. TCGA-NSCLC, from The Cancer Genome Atlas, supplied 1053 slides from 956 cases for distinguishing lung adenocarcinoma from lung squamous cell carcinoma, with 843 training and 210 test slides. Both splits separated patients between partitions.
With a gated-attention baseline, CAMELYON16 accuracy rose from 90.44% to 94.00%, F1 from 89.77% to 92.22%, and area under the receiver operating characteristic curve (AUC) from 96.15% to 97.18%. For TCGA-NSCLC, accuracy rose from 90.61% to 91.71%, F1 from 89.01% to 90.72%, and AUC from 95.71% to 97.81%. The main tables report means and standard deviations across independent runs.
The adjustment improved the reported mean metrics across the tested attention-based aggregation approaches, with gains varying by dataset and architecture. In comparisons with other causal MIL approaches using the same gated-attention backbone, it had the highest reported accuracy, F1 and AUC on both datasets. The nearest comparator on CAMELYON16 achieved 92.10% accuracy, 90.75% F1 and 96.29% AUC.
Stain normalisation gave the baseline modest improvements. The adjusted method outperformed the corresponding baseline both with and without normalisation; its best overall results used inputs without explicit stain normalisation. This does not establish invariance to every staining shift.
#Interpretation
Stain colour, preparation differences and acquisition artefacts can coincide with diagnostic labels. An algorithm may then use those associations when combining patches, even though they are not the pathological evidence needed for classification. This study tests a way to reduce that dependence during aggregation.
These are retrospective experiments on public benchmark datasets, without prospective or clinical validation. They do not establish performance in a laboratory with different staining, scanning or workflow conditions.
The attention maps showed responses within tissue rather than obvious blank background or slide borders. They were not quantitatively checked against tumour annotations and did not undergo independent pathologist review. They therefore do not establish that every highlighted region is diagnostically correct.
#Limits and disclosures
The authors identify evaluation on public datasets only, uncertain generalisability to multicentre clinical data, and an unsupervised pattern dictionary that may not fully characterise true confounding factors. Giving every pattern an equal prior weight simplifies the adjustment and may limit its precision. Broader pathology tasks remain untested.
There was no pathology-led exclusion of slides for blur, staining quality, treatment-related change or uncertain labels. A sensitivity analysis using a pathology-reviewed cleaned cohort was not performed. External validation across more diverse cohorts and acquisition conditions remains necessary.
No competing interests were declared. Support came from public research, science and technology, and postdoctoral funding programmes. The funders had no role in study design, data collection and analysis, publication decisions or manuscript preparation.
#Opinion
Pathologist's Brief considers aggregation bias a useful target for evaluation because routine slide preparation can leave recognisable contextual cues. The next practical test is whether the gains persist across laboratories, with pathology review of the regions driving predictions.
Frequently asked questions
Are the clustered patterns confirmed sources of bias?
No, the clustered patterns are approximate contextual proxies. They come from unsupervised grouping of training features rather than annotated staining or preparation variables. Some may include disease-relevant tissue structures, so the method should not be read as having identified and removed a definitive set of causal confounders.
Does the normalisation experiment show that staining no longer matters?
No, it shows that the adjustment worked with and without the tested normalisation procedure. The best overall results did not require explicit stain normalisation. Performance under other staining conditions, scanners and clinical workflows still requires external validation, so this comparison cannot establish universal resistance to staining variation.
Can the attention maps verify a slide prediction?
No, the maps do not establish diagnostic correctness. Their qualitative pattern suggests less reliance on obvious background areas, but there was no quantitative comparison with tumour annotations or independent pathologist review. A highlighted tissue region therefore remains an explanation of model attention rather than verified pathological evidence.
Source
https://doi.org/10.1371/journal.pone.0362621 ↗For education and professional reference. This does not give patient-specific advice or replace professional judgement, local protocols or consultation. Editorial standards.




