- Rating
- 2
- Confidence
- 3
- Informativeness
- 1
- Presentation
- 3
- Soundness
- 2
Read review
Paper summary
The paper studies UDA for MIL in digital pathology. In terms of observation, the authors show that standard domain adaptation losses interact poorly with MIL aggregation. To this end, the authors propose a two-stage training strategy that first aligns the projection layer and then trains the attention aggregation.
Critical strengths
- Cross-hospital adaptation is an important problem, as staining protocols might differ across hospitals.
- I see that the design is simple and easy to integrate with existing MIL pipelines. It does not require modifying the pretrained pathology foundation model and operates on pre-extracted patch features.
- The proposed design outperforms single-stage UDA and source-only training.
Critical weaknesses
Weakness
- Fig. 1 is not clear in terms of: (i) what dataset is used, and (ii) what degree of feature-level shift exists in the UDA setting.
- The claimed explanation for single-stage UDA failure is not fully established. The paper shows that the attention distribution becomes more concentrated during standard UDA and that performance drops. This is an interesting observation. The authors are suggested to measure representation alignment before and after aggregation and inspect whether an attention shift exists.
- The paper proposes two-stage adaptation. First, it adds a projection layer to learn a more domain-invariant space and aligns the source and target domains via mean pooling, a domain adaptation loss, and a CE loss. Pathology consists of multiple morphological patterns, which might form sub-groups of features [1,2]. How does mean pooling tackle this constraint?
[1] Song, Andrew H., et al. "Morphological prototyping for unsupervised slide representation learning in computational pathology." 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, 2024. [2] Waqas, Muhammad, et al. "The next layer: augmenting foundation models with structure-preserving and attention-guided learning for local patches to global context awareness in computational pathology." NPJ Precision Oncology 10.1 (2026): 109.
-
In general, I view the paper as being closer to a training strategy or optimization schedule rather than a new domain adaptation method.
-
The experiments and ablations do not fully show the effectiveness of the proposed method. Some missing experiments are needed: What is the degree of feature-level shift between the source and target domains? What is the trade-off between the degree of domain shift and downstream task performance? The authors are suggested to evaluate against stain-based or feature-based adaptation methods on WSI.
Questions for authors
My question mainly include that
- The authors are suggested to analyze the relation between feature-level domain shift and performance degradation. Does a larger feature shift lead to a larger performance drop?
- Since Stage 1 uses mean pooling, how does the method handle different morphological subgroups in a WSI?
- The paper claims that single-stage UDA changes the MIL aggregation pattern. The authors are suggested to measure feature alignment and attention alignment before and after aggregation to support this claim.
4 comments
Q4: AdaptMIL as a training strategy
We agree with the reviewer. AdaptMIL is presented as a training strategy throughout the paper. Our main finding is that directly applying standard UDA during MIL training often degrades performance, and that a simple modification to the training procedure can address this issue effectively. This allows us to leverage established domain adaptation objectives without introducing new losses specifically designed for MIL or digital pathology.
Q5: Domain shift, performance degradation, and baselines
We address the three points separately.
(i) What is the degree of feature-level shift between the source and target domains?
Please see our response to Q1, where we quantify feature-level domain shift across all hospital pairs.
(ii) What is the trade-off between the degree of domain shift and downstream task performance?
Although our results demonstrate a performance gap between hospitals, the relationship between the change in the domain at the feature-level and the degradation of performance is more complex. Classical domain adaptation theory establishes that target performance depends not only on domain discrepancy, but also on source-domain performance and differences in the relationship between features and labels across domains (Ben-David et al., 2010).
Our work builds on the established problem of cross-hospital performance degradation (Kömen et al., 2026) and proposes AdaptMIL to mitigate it. Our focus is on improving cross-hospital generalization rather than investigating deeper aspects of the problem itself, such as the relationship between domain shift and performance degradation.
However, following the reviewer's question, we examined the correlation between source–target feature discrepancies, measured using MMD as a distance metric on frozen UNI embeddings, and the corresponding performance gaps. We found a negligible Spearman correlation (ρ = −0.025, p = 0.90), consistent with the finding that domain discrepancy alone does not determine the performance gap.
Ben-David et al. (2010). A Theory of Learning from Different Domains. Machine Learning.
(iii) Evaluation against stain-based or feature-based adaptation methods on WSIs.
Our original experiments already include Macenko stain normalization as a stain-based baseline, as well as patch-level PFM fine-tuning and single-stage UDA with multiple adaptation objectives as feature-based baselines.
Following reviewer mumA's suggestions, we additionally evaluated patch-level UDA using MMD, CORAL, and DANN, as well as HED color augmentation. Please see our Q4 and Q5 responses to reviewer mumA.
The three questions under "Questions for Authors" repeat the points raised in Q5, Q3, and Q2, respectively. We have addressed all three in our responses above.
Responses to Authors
Thank you very much for the detailed response and the additional experiments.
Clarification of my earlier request. By “alignment before and after aggregation” I meant the source–target discrepancy measured (a) on the projected patch features, pooled without attention, and (b) on the attention-pooled slide embedding, for ERM, single-stage UDA, and AdaptMIL. If single-stage UDA lowers (b) much more than (a), this would show the shortcut directly. By “attention shift” I meant whether the attention distribution differs between source and target slides. Your new alignment table for attended and remaining patches largely answers this. If possible, please add the discrepancy of the actual attention-pooled slide embeddings.
W1, W2, W5: The new shift table, the failure-mode analysis, and the patch-level UDA and augmentation baselines address my concerns.
W3: I accept the argument for mean pooling, and I agree that morphology-aware alignment can be future work.
Response to Q2 after clarification
Thank you very much for replying. We are pleased to hear that our response has addressed most of your concerns.
Following the clarification, in Table B below we extend Table C from our response to reviewer mumA with two additional pooling strategies: attention-weighted pooling and mean pooling over all patches.
For both projected and raw features, attention-weighted pooling yields MMD values close to those obtained by mean pooling over the top-50 attended patches. Likewise, mean pooling over all patches yields values identical to pooling over the remaining non-top-50 patches (identical after rounding), since excluding the top-50 patches has little effect on the overall mean. Thus, for single-stage UDA, the attention-weighted representations are more aligned than the mean-pooled representations.
Consistent with our earlier findings, these results suggest that single-stage UDA shifts attention toward patches that are already better aligned and concentrates domain alignment on those patches.
We hope this additional analysis addresses your remaining concern and would appreciate it if you could consider raising our paper's score.
Table B. Source–target MMD on slide representations pooled using different strategies, including attention-weighted pooling and mean pooling over all patches.
| Features | Pooling | Source-only (ERM) | Single-stage UDA | AdaptMIL |
|---|---|---|---|---|
| Projected | Top-50 patches | 0.32 | 0.09 | 0.15 |
| Projected | Attention | 0.38 | 0.06 | 0.13 |
| Projected | Remaining (all except top-50) | 0.56 | 0.20 | 0.05 |
| Projected | Mean (all patches) | 0.56 | 0.20 | 0.05 |
| Raw UNI | Top-50 patches | 0.35 | 0.21 | 0.37 |
| Raw UNI | Attention | 0.42 | 0.21 | 0.45 |
| Raw UNI | Remaining (all except top-50) | 0.60 | 0.60 | 0.60 |
| Raw UNI | Mean (all patches) | 0.60 | 0.60 | 0.60 |
Response to reviewer BZrM
We thank reviewer BZrM for the time and valuable feedback. We address all comments in the following and will incorporate the relevant changes into the revised manuscript.
Q1: Figure 1 and degree of domain shift
(i) Figure 1 uses the TCGA NSCLC dataset for lung cancer subtyping. We will clarify this in the figure caption.
(ii) Figure 1 presents classification performance rather than domain shift, so we believe this question is not directly related to the figure. Nevertheless, we have conducted an additional quantitative analysis of domain shift in our UDA setting and will include it in the supplementary material of the revised manuscript.
Table A below uses MMD as a distance metric to measure the shift between mean-pooled UNI slide embeddings for all pairs of hospitals in the TCGA NSCLC dataset. Diagonal entries compare disjoint sets of slides from the same hospital, providing a within-hospital reference.
The table shows that within-hospital MMD values (0.029–0.129) are lower than cross-hospital values (0.279–1.029), demonstrating the expected feature-level differences between hospitals, consistent with prior findings (Kömen et al., 2026).
Table A. MMD between mean-pooled UNI slide embeddings across the six TCGA NSCLC hospitals.
Q2: MIL–domain adaptation failure mode
We have conducted a more thorough analysis of the failure mode and will include it in the revised manuscript. Specifically, we show that the attention module, rather than the projection layer, is the main contributor to the performance gap between single-stage UDA and AdaptMIL. Further, we provide evidence suggesting why concentrated attention can lead to lower performance and why domain adaptation may promote this behavior. To avoid duplicating content, we kindly refer the reviewer to our Q1 response to reviewer mumA for the detailed analysis.
We are not certain we understand the request to measure representation alignment "before and after aggregation." Before aggregation, representations are at the patch level, whereas after aggregation, they are at the slide level. While alignment can be measured at each level, we are unsure how these could be compared. Similarly, we are unsure what is meant by "attention shift" in this context. If the request is for a more detailed analysis of changes in attention patterns, we have conducted such an analysis in our Q2 response to reviewer mumA.
The reviewer makes similar requests in Question 3 under "Questions for Authors." Our questions regarding the intended measurements also apply there. Can the reviewer please clarify those points? We would be happy to address the requests after clarification.
Q3: Mean pooling and multiple morphological patterns
Mean pooling is a strong baseline in computational pathology (Shao et al., 2025), often competitive with complex MIL architectures. Although patches represent diverse morphological patterns, mean-pooled embeddings have proven effective across diverse downstream tasks (Shao et al., 2025), motivating their use in AdaptMIL's first stage. Our experimental results demonstrate the effectiveness of AdaptMIL relying on mean pooling during the first stage.
Morphology-aware alignment using methods such as PANTHER (Song et al., 2024) could potentially further improve adaptation. However, reliably identifying corresponding morphological clusters across source and target hospitals is challenging, as domain shifts can induce hospital-specific clustering in patch embeddings (Kömen et al., 2026).
We therefore leave morphology-aware alignment for future work, but will further emphasize the motivation for mean pooling in the revised manuscript.