potentialpaper

SheafStain: Sheaf-Theoretic Schr\"odinger Bridge for Spatially and Biologically Coherent Virtual Staining

Hyeongyeol Lim, Hongjun Yoon, Eunjin Jang, Daeky Jeong, Won June Cho, HWAMIN LEE

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. SheafStain: a sheaf-theoretic Schrödinger Bridge framework that treats pathology VFM tokens as sheaf-like sections and penalizes their overlap disagreement for coherent H&E-to-IHC virtual staining (FID 34.5080, TS 0.0292, DAB-r 0.1187 on MIST HER2).

Abstract. Current virtual staining approaches offer the potential for time- and cost-efficient biomarker quantification in cancer diagnostics and prognostics. However, patch-wise inference for gigapixel whole-slide images fails to maintain spatial continuity, yielding artifacts that cause catastrophic mismatches with ground-truth images. Although pathology Vision Foundation Models (VFMs) offer rich representations, their self-attention causes varying global contexts to produce inconsistent embeddings for the same physical region. We formalize and validate this ``context contamination'' as a sheaf-theoretic problem where these embeddings form a presheaf whose sections disagree on overlaps, so no global section restricts to them. To address this, we propose SheafStain, a new approach that reinterprets VFM features as sheaf-like sections for spatially and biologically coherent virtual staining. Specifically, SheafStain integrates class and patch tokens into a Schr"odinger Bridge framework as sheaf-like sections. While the class token anchors biological consistency, patch tokens form a per-position spatial map. A feature space from a single VFM encoder pretrained on Hematoxylin & Eosin and Immunohistochemistry supervises both input conditioning and output stain alignment. Departing from prior work that evaluates on isolated 256×256256 \times 256 patches and either random-crops or resizes the 1024×10241024 \times 1024 ground truth, we translate at 256×256256 \times 256 and evaluate on the stitched 1024×10241024 \times 1024 outputs across HER2, ER, PR, and Ki-67. SheafStain demonstrates promising results against six prior methods while mitigating patch-boundary stitching artifacts. Code is available at \url{https://github.com/deepnoid-ai/SheafStain}.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]—[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:42 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This paper addresses virtual staining in histopathology by identifying "context contamination" in VFM embeddings as a source of patch-boundary inconsistencies and proposing SheafStain, which combines sheaf-theoretic consistency constraints with a Schrödinger Bridge framework to improve spatial and biological coherence in stitched outputs. Reviewers found the problem interesting, the empirical analysis of embedding inconsistency novel, and the experimental evaluation extensive, with gains over prior methods and an evaluation protocol that reflects well deployment by assessing stitched regions rather than isolated patches. However, several concerns remain. For the rebuttal, please focus on clarifying the technical role of the sheaf formulation and the Schrödinger Bridge component, and provide stronger justification for key modeling choices. Please also address the biological importance of the results given the low absolute DAB correlation values, including estimates of the ceiling under weakly paired consecutive-section data and the implications for claims of biological coherence. Additionally, discuss the impact of the method’s computational cost, justify dataset and baseline selection, explain hyperparameter choices, and reconcile the interpretation of metrics where the method underperforms.

Final justification

I have read the authors’ response and the subsequent reviewer discussion. The rebuttal addressed most of the concerns from my initial meta-review, including dataset and baseline selection, hyperparameter choices, the interpretation of the low DAB-correlation values, the impact of weakly paired consecutive-section data, and the evaluation protocol. Two reviewers indicated that their concerns were resolved and maintained positive assessments. The authors disclosed and corrected an error in the DAB color-deconvolution evaluation, re-reporting the affected metrics and explaining its impact on the results. While I commend this transparency and do not believe the correction changes the conclusions, the need for a post-submission fix introduces some uncertainty and slightly reduces my confidence. Reviewer SEWY remained unconvinced after rebuttal, primarily because the density of the presentation and complexity of the sheaf-theoretic formulation made it difficult to verify a central technical contribution within the review period. I consider this a legitimate concern, although no reviewer identified a concrete mathematical flaw. At the same time, the paper presents a solid empirical contribution, including a novel analysis of context contamination in pathology VFMs, a method for improving coherence across stitched regions, a realistic evaluation protocol, and consistently strong results across multiple benchmarks. Balancing these strengths against the remaining concerns, I view the paper as borderline but ultimately on the positive side of the acceptance threshold. I therefore recommend Accept (Poster), with the expectation that the authors significantly improve the clarity and accessibility of the sheaf-theoretic component in the final version.

Area Chair EU3t · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

This paper addresses virtual staining in histopathology by identifying "context contamination" in VFM embeddings as a source of patch-boundary inconsistencies and proposing SheafStain, which combines sheaf-theoretic consistency constraints with a Schrödinger Bridge framework to improve spatial and biological coherence in stitched outputs. Reviewers found the problem interesting, the empirical analysis of embedding inconsistency novel, and the experimental evaluation extensive, with gains over prior methods and an evaluation protocol that reflects well deployment by assessing stitched regions rather than isolated patches. However, several concerns remain. For the rebuttal, please focus on clarifying the technical role of the sheaf formulation and the Schrödinger Bridge component, and provide stronger justification for key modeling choices. Please also address the biological importance of the results given the low absolute DAB correlation values, including estimates of the ceiling under weakly paired consecutive-section data and the implications for claims of biological coherence. Additionally, discuss the impact of the method’s computational cost, justify dataset and baseline selection, explain hyperparameter choices, and reconcile the interpretation of metrics where the method underperforms.

Final justification

I have read the authors’ response and the subsequent reviewer discussion. The rebuttal addressed most of the concerns from my initial meta-review, including dataset and baseline selection, hyperparameter choices, the interpretation of the low DAB-correlation values, the impact of weakly paired consecutive-section data, and the evaluation protocol. Two reviewers indicated that their concerns were resolved and maintained positive assessments. The authors disclosed and corrected an error in the DAB color-deconvolution evaluation, re-reporting the affected metrics and explaining its impact on the results. While I commend this transparency and do not believe the correction changes the conclusions, the need for a post-submission fix introduces some uncertainty and slightly reduces my confidence. Reviewer SEWY remained unconvinced after rebuttal, primarily because the density of the presentation and complexity of the sheaf-theoretic formulation made it difficult to verify a central technical contribution within the review period. I consider this a legitimate concern, although no reviewer identified a concrete mathematical flaw. At the same time, the paper presents a solid empirical contribution, including a novel analysis of context contamination in pathology VFMs, a method for improving coherence across stitched regions, a realistic evaluation protocol, and consistently strong results across multiple benchmarks. Balancing these strengths against the remaining concerns, I view the paper as borderline but ultimately on the positive side of the acceptance threshold. I therefore recommend Accept (Poster), with the expectation that the authors significantly improve the clarity and accessibility of the sheaf-theoretic component in the final version.

1 comment
Area Chair EU3t · CommentOpenReview ↗

Rebuttal discussion

Dear Reviewers

As we approach the end of the author discussion period, I'd appreciate it if you could revisit the authors' rebuttal and update your assessment accordingly. Some of the concerns you initially raised may have been addressed, while others may still require clarification.

To help prepare a fair meta-review, please indicate:

  • Which concerns have been fully addressed.
  • Which concerns remain unresolved or have not been sufficiently answered.
  • Whether the rebuttal has introduced any new issues that should be considered.

Your timely feedback is appreciated and will help ensure a fair evaluation. Thank you!

Best regards Your AC

Reviewer Ri49OpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper addresses three intertwined challenges commonly encountered in existing virtual staining methods: Weakly-paired data, Patch-wise isolation, and Reassembled-region quality degradation, identifies context contamination as the root cause of these issues, and proposes a solution named SheafStain from the perspective of sheaf theory. Extensive experimental validations are conducted in this work, with both quantitative and qualitative comparative experimental results provided to demonstrate that SheafStain can effectively resolve the aforementioned problems.

Strengths and weaknesses

Strengths:

  1. The paper is clearly written with a reasonable structure and detailed experimental descriptions.
  2. Sufficient experimental evaluation metrics are adopted from diverse perspectives, and the proposed method achieves a considerable performance improvement.
  3. Although SheafStain is a combination of existing theories and technologies, it is technically reasonable to apply sheaf theory to address various problems existing in patch stitching.
  4. The discussion of limitations and future work is rational.

Weaknesses:

  1. The rationale for selecting the baselines is unclear.
  2. The reasons for hyperparameter selection are not elaborated.
Questions
  1. Do the three issues summarized in Figure 1 overlap? In particular, both stain-tone drift and chromatin-distribution mismatch lead to patch-boundary discontinuities.
  2. The meaning of the bolded rows in Table 1 is unclear; it is recommended to add a description of the bolded rows in the caption.
  3. Is the ground truth (GT) of the first sample of MIST in Figure 4 an incorrect image? It does not seem to match the corresponding H&E image. In addition, although the visualization demonstrates that SheafStain can eliminate artifacts such as stitching seams, a close inspection reveals certain discrepancies between its outputs and the ground truth. Therefore, how reliable are the images generated by SheafStain?
  4. Although hyperparameter settings are provided in Appendix E, what are the rationales for selecting these parameter values? How do different parameter configurations affect model performance?
Limitations

yes

Final justification

During the Rebuttal stage, the author provided detailed responses to my concerns and supplemented relevant parameter experiments and reasons for parameter settings. The author promised to include these details in the final version. Additionally, I also reviewed the comments of other reviewers and the corresponding responses from the author. Their comments were all reasonable, and there were some aspects that I had not paid attention to, such as low method efficiency and dense concepts.

Overall, this paper has a very good research motivation. Using the Sheaf theory to solve the numerous problems existing in patch stitching is reasonable. The experimental evaluation perspective is diverse, the indicators are sufficient, and the effect improvement is quite significant.

Making minor modifications to the final version based on the reviewers' suggestions also helps to improve the quality of the manuscript.

Formatting concerns

None

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for the close and specific questions. We answer all six points below and state the change we will make in each case.

W1. Rationale for the baseline selection.

You are right that the paper names the six methods without saying why those six. The set follows the architectural families in our related work, one representative from each, plus our own backbone as a control.

pix2pix and CycleGAN are the paired and unpaired GAN pipelines that established cross-stain translation, and most prior work in this area carries them as benchmark models. PSPStain is the pathology-specific GAN designed for H&E to IHC. D-VST is the diffusion transformer line. UNIStainNet is the foundation-model-guided line, and it is the closest prior work to ours because it also conditions on a pathology VFM. UNSB is the Schrödinger Bridge backbone we build on, so it isolates what our components add.

Two further conditions applied. Each method must release source code, since we retrain all of them rather than reuse published results. Published numbers on these datasets come from a different patch size and a different evaluation protocol, so they would not sit on the same scale as ours. Apart from the backbone, each is also one this literature already benchmarks against, whether as a published H&E to IHC method or as the general translation baseline that the BCI and MIST papers themselves include. CC-WSI-Net, which another reviewer raised, targets patch stitching and would have fit the set well, but it does not release code. The paper states that we retrain from publicly available source code, but it does not give the reasoning above. We will add it to the experimental setup, together with the methods we considered and could not include.

W2 and Q4. Rationale for the hyperparameter values, and the effect of different configurations.

The paper lists seven loss weights, and they were not all set in the same way.

λSB\lambda_{\text{SB}}, λNCE\lambda_{\text{NCE}} and λsheaf\lambda_{\text{sheaf}} are all 1 and none of them was varied in any run. The UNSB paper sets its bridge weight to 1, and the UNSB baseline in Table 1 is trained with the same weights we use, so the ablation adds our components without changing the backbone weighting. λsheaf\lambda_{\text{sheaf}} is fixed at 1 by construction, since the sheaf term is the objective the paper is about and therefore carries the unit scale that the auxiliary weights are expressed against.

λstain-align\lambda_{\text{stain-align}} is 1 whenever the term is active. What we set for it is a schedule rather than a magnitude, since the term is off for epochs 1 to 350 and on for the last 50 of 400.

That leaves the auxiliary weights, which we set by a coarse grid over {0.1,0.5,1.0}\lbrace 0.1, 0.5, 1.0\rbrace, one order of magnitude apart. The search ran in two stages: a component ablation to decide which terms belong in the objective at all, which is Table 1, and then the weight grid. One setting is used everywhere in the paper. BCI and all four MIST markers share it with no per-dataset retuning.

On how configurations affect performance, the axis with the largest effect is the pixel sheaf balance α\alpha. With α=1\alpha = 1, all 8 settings land in a narrow band, FID 43.7 to 54.8. With α\alpha below 1, only 7 of 18 settings reach that band and the worst reaches FID 164. Inside the α=1\alpha = 1 region the remaining weights move the result much less. The 26 settings below vary the cocycle, Fourier and α\alpha weights with the DAB weight held at 0.1, and each row reports the per-metric value across those settings rather than one configuration. The grid runs use a shortened 100-epoch schedule for screening, so these values are not the ones the paper reports. The same setting trained for the full 400 epochs reaches FID 36.36 on this block.

Setting FID KID LPIPS DISTS
Selected 46.65 0.0123 0.4816 0.2270
Best in grid 43.71 0.0082 0.4772 0.2261
Median of grid 54.70 0.0195 0.5064 0.2600
Worst in grid 164.00 0.1653 0.6181 0.3255

The selected setting is second of 26 on mean rank over these four metrics and it is not the best on any of them. It is the best on DISTS among the α=1\alpha = 1 settings, and its gap to the grid best is 0.4% on DISTS and 0.9% on LPIPS, inside the range where settings are not distinguishable. The cocycle weight of 0.1 has the lowest mean FID of its three values, 54.8 against 71.9 and 71.5. We read this as the outcome depending on the structure of the objective and on α\alpha, rather than on a precise weighting of the auxiliary terms. We will add the grid, the two-stage procedure, and this reading to the hyperparameter appendix.

Q1. Do the three issues in Figure 1 overlap?

They do, and you are right that stain-tone drift and chromatin-distribution mismatch both surface at patch boundaries. The three are not independent failure modes, and the paper does treat them as one cause with three manifestations. The Figure 1 caption states that independent patch translation induces all three, and Section 1 describes how inter-patch inconsistencies translate directly into stitching artifacts and tone discontinuities in the reassembled region.

What separates them is where they act and what responds to them. Tone drift is a property of a whole patch relative to its neighbors, and it shifts the chromogen readout that biomarker scoring depends on. Chromatin mismatch is a within-patch texture property that changes nuclear appearance. Boundary discontinuity is the geometric signature at the seam, and it is what the Tiling Score measures. A method can reduce the seam and leave the tone wrong, which is why we report them separately.

The caption carries the shared cause in a single word, induces, which is easy to read past. We will make it explicit that (a), (b) and (c) are three ways one failure becomes visible, and name the metric that responds to each.

Q2. Meaning of the bolded rows in Table 1.

Bold in Table 1 marks the final row, which is the complete model, and it does not mark the best value in a column. Table 3 uses bold for the best value. Carrying two meanings on one form of emphasis without saying so is a defect on our side, and the caption should have stated the convention.

We will make Table 1 follow Table 3, so that bold marks the best value in each column and the complete model is identified by its row label instead. Under that convention the final row is best on FID, LPIPS, DISTS and DAB-r, while KID is best at the DAB intensity step and Tiling Score at the pixel sheaf step. The paper already says as much in the text, where we note that TS plateaus after the pixel sheaf loss.

One point about the DAB-r column. A transpose in our color deconvolution meant that column was computed on the wrong stain channel, and the corrected values appear in our response to Reviewer 1. The ordering within the column does not change, so the statement above holds either way.

Q3. The MIST ground truth in Figure 4, and how reliable the outputs are.

On the pair. That row is 4M2103059_22_9.jpg, which appears under the same filename in the val_HE and the val_IHC folder of the MIST HER2 release [A], so it is the pair the dataset itself provides, and the tissue structure agrees between the two. What differs is the color. That field carries almost no chromogen, with strong DAB covering 7.9% of its area, so the IHC image is dominated by a light counterstain while the H&E image is strongly eosinophilic. Side by side the two look unrelated even though they show the same tissue. MIST pairs are also cut from consecutive sections, so they are neighboring slices rather than one physical plane. We will note both points in the caption.

On reliability. Exact agreement with the reference is not the right target here, for the reason just given. The reference is a different physical section, so a pixel-level match is not attainable by any method. We therefore test whether the outputs carry the biological signal, with a protocol that does not depend on appearance. We train a HER2 Low/High classifier on translated outputs alone and evaluate it on real IHC from the BCI test set (Table 2).

Classifier trained on Acc F1 AUROC
D-VST 0.658 0.761 0.650
UNIStainNet 0.724 0.835 0.737
SheafStain 0.766 0.844 0.794

Features that are artifacts of a generator do not transfer to real IHC, while features that encode HER2 grade do, whatever the texture statistics of the synthetic images look like. Under this protocol SheafStain is ahead on all three measures, and its margin over UNIStainNet is 4.2 points of accuracy and 0.057 AUROC. That is the level at which we claim the outputs are usable, and we will make that scope explicit in the paper.

References

[A] F. Li, Z. Hu, W. Chen, and A. Kak. Adaptive supervised PatchNCE loss for learning H&E-to-IHC stain translation with inconsistent groundtruth image pairs. MICCAI, 2023.

Authors · CommentOpenReview ↗

A correction of the grid description with the complete results (W2 and Q4)

Our earlier response gave the weight grid as 26 settings. It is 3×3×3=273\times3\times3 = 27. The α=1\alpha = 1 group therefore holds 9 settings rather than 8. Eight of them fall in the narrow band of FID 43.7 to 54.8. The ninth has cocycle, Fourier and α\alpha all at 1.0 and reaches FID 70.1. The mean FID at cocycle 1.0 is 71.3.

α\alpha is still the axis with the largest effect, now at 8 of 9 against 7 of 18 below. The selected setting is still second of the grid on mean rank over the four metrics and first on DISTS within that group. It is best on none of them.

The complete grid is below, with the selected setting in bold. None of these runs applies the additional reference patches used at inference, and all use the 100-epoch screening schedule.

α\alpha λcocycle\lambda_{\text{cocycle}} λfourier\lambda_{\text{fourier}} FID ↓\downarrow KID (raw) ↓\downarrow LPIPS ↓\downarrow DISTS ↓\downarrow
0.1 0.1 0.1 51.3954 0.0162 0.5382 0.2776
0.1 0.1 0.5 62.7132 0.0284 0.4825 0.2386
0.1 0.1 1.0 49.5539 0.0086 0.5203 0.2624
0.1 0.5 0.1 89.4415 0.0381 0.6008 0.3143
0.1 0.5 0.5 112.6470 0.0590 0.5439 0.2784
0.1 0.5 1.0 50.8993 0.0123 0.4820 0.2323
0.1 1.0 0.1 164.0038 0.1653 0.6181 0.3255
0.1 1.0 0.5 54.7145 0.0190 0.4870 0.2415
0.1 1.0 1.0 63.3100 0.0236 0.4866 0.2452
0.5 0.1 0.1 66.5788 0.0233 0.5143 0.2644
0.5 0.1 0.5 53.9917 0.0204 0.4948 0.2419
0.5 0.1 1.0 54.6853 0.0152 0.4856 0.2377
0.5 0.5 0.1 61.5262 0.0223 0.4860 0.2548
0.5 0.5 0.5 107.9636 0.0680 0.4920 0.2608
0.5 0.5 1.0 78.5008 0.0389 0.4912 0.2586
0.5 1.0 0.1 63.6867 0.0228 0.5540 0.2811
0.5 1.0 0.5 75.8298 0.0296 0.5361 0.2814
0.5 1.0 1.0 45.2142 0.0093 0.4772 0.2261
1.0 0.1 0.1 52.6085 0.0153 0.5327 0.2748
1.0 0.1 0.5 46.6457 0.0123 0.4816 0.2270
1.0 0.1 1.0 54.7589 0.0199 0.4985 0.2418
1.0 0.5 0.1 47.9143 0.0121 0.5311 0.2707
1.0 0.5 0.5 54.2129 0.0160 0.5151 0.2592
1.0 0.5 1.0 43.7119 0.0082 0.4978 0.2458
1.0 1.0 0.1 53.9382 0.0188 0.5475 0.2862
1.0 1.0 0.5 51.1449 0.0145 0.5528 0.2786
1.0 1.0 1.0 70.1446 0.0287 0.5422 0.2811
Reviewer Ri49 · CommentOpenReview ↗

Thank you for your detailed response. My concerns have been adequately addressed. I believe that incorporating these revisions into the final version will improve the quality of the manuscript.

Reviewer SEWYOpenReview ↗
Rating
3/6
Confidence
3/5
Quality
3/4
Clarity
2/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper seeks to address an established but important problem in cell and tissue microscopy called virtual staining—inferring what slides would look like under stains other than the one actually applied. The authors argue that patchwise incoherence arising from the vision transformer architectures are a major performance barrier, and mitigate this by infusing learning with concepts from sheaf theory, a mathematical construction for reconciling local spatial information into a coherent global whole. Experiments and analyses validate the improvements offered by their method.

Strengths and weaknesses

The paper addresses an important problem in biomedical AI by incorporating ideas from an appropriate, deep theoretical framework in mathematics. This is a major strength, if implemented soundly, because it enables deep learning algorithms to leverage frameworks already developed comprehensively in mathematics—compared to many methods which hack together isolated fixes.

On a technical level, the implementation—analysis, modeling, and evaluation—seem sound and impressively comprehensive, at least in broad strokes. The ablation study looks comprehensive.

My main issue with the paper is it is extremely dense and fails to properly introduce or explain many key concepts, making it hard to evaluate many aspects of the paper in detail.

For instance:

  • The paper should explain what virtual staining is and why it is important.
  • The paper’s discussion of sheaves essentially assumes prior familiarity with this complex mathematical concept which is not used in most/any other areas of AI or computer science. Perhaps because of its terseness, its developments do not always seem sound. For instance, it’s unclear why slide image patches are equated with stalks (line 169)—patches seem to be more like open subsets, whereas stalks should be idealized limits at a point.
  • The paper does not clearly explain why their sheaves methodology helps solve their specific problem of virtual staining, rather than, for instance, any WSI modeling or even large-scale computer vision tasks in general.
  • The paper advertises the sophisticated-sounding concept of the Schrodinger Bridge (SB) prominently in the title, and then refers to it by acronym only in Sections 1 and 2, before introducing it in a sentence fragment in Section 3, and then barely mentioning it at all in the rest of the paper. It is not clear whether SB is an overt feature contribution, e.g., it doesn’t to seem to be in the ablation study.

It is hard to evaluate the paper in detail methodologically given the unclarity stemming from the above concerns. But one additional concern is that while the paper acknowledges that its choice of just BCI and MIST for evaluation is a limitation, it does not provide context such as western the are the two most established datasets for this task, what other datasets might exist, why these were chosen among those options, etc.

Questions
  1. What makes the sheaves methodology specifically suitable for virtual staining rather than other WSI or high-res computer vision tasks in general?
  2. How important is the Schrodinger Bridge to the overall methodology, and how do the experiments (e.g., ablation) justify this?
  3. What is the context and justification for choosing BCI and MIST as the evaluation set?
Limitations

More context and justification for choosing BCI and MIST as the evaluation set would be helpful.

Final justification

My main concern after my initial review was that the density of the paper (and some mistakes and unclear writing) made it hard to fully evaluate the soundness of their main technical contribution, the incorporation of sheaf-theoretic methods. In their comments, the authors provided lengthy AI responses and also pointed to further, dense developments in their supplementary materials. I was not able to fully evaluate all of these additional materials in time to be able to vouch for the correctness of their work. Furthermore, I do not recall the other two reviewers engaging much with the sheaf theory work either, so I am concerned that one of the core components of this contribution has not received rigorous peer validation.

Formatting concerns

None

5 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We appreciate the reviewer's engagement with the sheaf framing and the assessment that the implementation and ablation are sound. We accept the clarity criticism. The paper compresses the sheaf material into a few dense paragraphs and defers the definitions to the appendix, which makes the main text hard to follow on a first pass. We answer the three questions below and state what we will change.

On the terminology at line 169 (patches and stalks).

You are right, and we will fix the usage. A patch is an open set UiU_i of the cover, its VFM embedding is a section si=Φ(Ui)∈F(Ui)s_i = \Phi(U_i) \in \mathcal{F}(U_i) over that open set, and a stalk is the direct limit Fx:=lim→⁡x∈UF(U)\mathcal{F}_x := \varinjlim_{x \in U} \mathcal{F}(U) at a point, whose elements are germs. A patch embedding is a section, not a stalk.

Appendix A gives the formal definition and notes that we used the word loosely, and the formal statements involving restriction maps are already written in terms of sections. That qualification belongs where the reader meets the term. We will replace every loose use with "section over UiU_i" in the main text and keep the formal definition in Appendix A as the reference. The model, the losses, and the experiments are unaffected. What changes is the wording.

Q1. Why the sheaf view is suited to virtual staining rather than to WSI modeling in general.

Virtual staining is a setting where a failure of local-to-global consistency has direct and measurable consequences. In a discriminative whole-slide image (WSI) task the same disagreement is pooled away. Here it survives into the output a pathologist reads. The framework is not exclusive to virtual staining, and it applies wherever a WSI is assembled from overlapping patch-level computations, which is the setting our measurements cover. Our claim is the narrower one, and three properties make it so.

The defect is measured, not assumed. VFM embeddings of overlapping patches disagree on their shared region, with cosine similarity between corresponding overlap tokens ranging from 0.63 at 14% overlap to 0.92 at 86% overlap, consistently below 1 across 4,873 images, eight strides, four directions, and both stains (Section 3.2, Appendix I). Of the two sheaf axioms, locality is immediate here, since a section is determined by its token positions. Because the embeddings disagree on overlaps, they fail to satisfy the compatibility required for gluing, and no single global section restricts to them. If such a section existed, its restrictions would agree on every overlap by the definition of the restriction maps, contradicting the observed incompatibility. The Dirichlet energy E(x)>0E(x) > 0 measures the size of that disagreement, and the pixel sheaf and cocycle losses reduce it directly. We will use this phrasing in the paper.

The output is consumed as an assembled image. Disagreement between two patches on their overlap appears as a seam and a tone discontinuity in the stitched region, which is what a pathologist reads.

The readout integrates over the assembled region. Chromogen amount and its spatial distribution are computed on the stitched output, so patches that are individually plausible but mutually inconsistent give the wrong measurement.

The contrast with discriminative WSI tasks is informative. In slide-level classification, patch features are pooled, and pooling is largely invariant to the local disagreements above. The same defect is therefore harmless there and harmful here. Whether it carries to other patch-assembled WSI tasks is open, and we will list it with the WSI-scale validation we already give as future work. This paper asks the narrower question of whether it holds in virtual staining, where the failure is measurable and the output is read as an assembled image. We will state this scope in the paper.

Q2. How important the Schrödinger Bridge is, and how the experiments justify it.

Schrödinger Bridge (SB) is the generative backbone we build on. We do not claim it as a contribution of this work, and the title should not have suggested otherwise without an explanation in the text.

Its role is precise. SB defines the transport from the H&E marginal π0\pi_0 to the IHC marginal π1\pi_1 under entropic regularization,

QSB=arg⁡min⁡Q∈D(π0,π1)KL(Q∥∣Wτ)Q_{\mathrm{SB}} = \arg\min_{Q \in \mathcal{D}(\pi_0,\pi_1)} \mathrm{KL}(Q \|| W^\tau),

and we inherit UNSB's neural realization of it. Our contribution enters as structural regularizers on that same objective,

Q∗∈arg⁡min⁡Q∈D(π0,π1)[KL(Q∥∣Wτ)+∑kλkRk(Q)]Q^{\ast} \in \arg\min_{Q \in \mathcal{D}(\pi_0,\pi_1)} [\mathrm{KL}(Q \|| W^\tau) + \sum_k \lambda_k \mathcal{R}_k(Q)],

where the Rk\mathcal{R}_k are the pixel sheaf and cocycle terms (Appendix B). We also show there that these regularizers act on the coupling and leave the marginals intact.

We use SB because virtual staining observes both marginals. Entropic transport between two observed distributions is a closer fit than starting from a noise prior. This is also the reason UNSB gives for building on SB, namely that the Gaussian prior assumption limits diffusion models on unpaired translation [A]. Our paper states this in Section 2 in a single sentence, and we will move it into the method section.

On the ablation, the first row labeled "Baseline" is UNSB, that is the SB backbone with none of our components, and every later row adds one of our components to it. The ablation therefore measures our contributions against plain SB throughout. FID falls from 227.79 for the backbone alone to 36.36 for the full model, and DAB-r rises from 0.0589 to 0.1209. The DAB values differ from the submitted table because the stain deconvolution in our evaluation code used the transpose of the inverse stain matrix rather than the inverse, so it read the wrong channel. We fixed this and recomputed the DAB metrics for every method. No other metric is affected. The label was uninformative and we will rename it "Baseline (UNSB)".

Q3. Context for choosing BCI and MIST.

The choice follows from what the claim needs to be testable. Our subject is patch assembly under weak pairing, so the data has to supply an IHC reference that corresponds spatially to a region wide enough to contain interior patch boundaries, and it has to come from the consecutive-section regime that produces the weak pairing in the first place. BCI and MIST both ship registered 1024×1024 pairs cut from consecutive sections, which our protocol divides into 16 patches with 24 interior seams. BCI gives one HER2 partition with an official train and test split. MIST gives four markers (HER2, ER, PR, Ki-67), which lets us check whether the method transfers across biomarkers instead of fitting one. They are also the standard evaluation sets for this task, which is why we retrain every method on them ourselves rather than carry over published numbers.

Two public alternatives are worth naming. HER2match [B] is same-section and better registered, but the weak pairing is a property of the task itself. Only one stain can be applied to a given section, so an H&E field and its IHC counterpart come from different sections, and the re-staining protocols that avoid this bring their own tissue damage and registration drift, as Section 1 notes. Evaluating on a same-section benchmark would remove the condition the method is built to handle, and it would also change the scanner and the acquisition domain. IHC4BC [C] meets both conditions. It is public, covers the same four markers, and comes from the same consecutive-section regime. We kept this study on the two sets the compared methods already report on, so that our retrained numbers can be checked against published ones, and adding a third means retraining all seven methods on a release of about 90,000 pairs from 240 slide pairs. We will name IHC4BC in the first limitation as the concrete next step.

On introducing virtual staining and the sheaf vocabulary.

We agree with your comment, and this is the change we expect to help most. The introduction does motivate the problem in its opening sentences, since IHC is central to biomarker diagnostics, only one stain can be applied to a given section, and this imposes resource and turnaround costs. What it never does is state plainly what virtual staining is, namely predicting the appearance of an IHC stain from an H&E image of the same tissue. We will add that sentence, and a worked example of the vocabulary on one concrete pair of overlapping patches, so that a reader without prior exposure to sheaves can follow Section 3.2 without going to the appendix.

Here are the changes in one place.

We will state plainly what virtual staining is and work the sheaf vocabulary through one concrete pair of overlapping patches. We will use "section over UiU_i" in the main text and keep the formal definition in Appendix A. We will move the reason for building on a Schrödinger Bridge into the method section, rename the ablation baseline to "Baseline (UNSB)", and name IHC4BC in the first limitation as the next dataset. You write that the density made the work hard to evaluate in detail, and these are the edits that should close that gap.

References

[A] B. Kim, G. Kwon, K. Kim, J. C. Ye. Unpaired image-to-image translation via neural Schrodinger bridge. ICLR, 2024.

[B] P. Klöckner et al. GANs vs. diffusion models for virtual staining with the HER2match dataset. Deep Generative Models, 2025.

[C] A. Akbarnejad, N. Ray, P. J. Barnes, G. Bigras. Predicting Ki67, ER, PR, and HER2 statuses from H&E-stained breast cancer images. arXiv preprint arXiv:2308.01982, 2023.

Authors · CommentOpenReview ↗

A worked example on one pair of overlapping patches.

In our response we said a worked example would be the change most likely to help. Rather than leave that as a promise, we take one pair of adjacent patches and work each term of the sheaf vocabulary through it. We do this at a 192 px offset between two 224×224224\times224 patches, one of the eight strides measured in Appendix I.

The pair. Let U1U_1 be the patch anchored at pixel (0,0)(0,0) and U2U_2 the patch anchored at (192,0)(192, 0). They meet in a strip U12=U1∩U2U_{12} = U_1 \cap U_2 that is 32 px wide and spans the full height. The frozen VFM tokenizes each 224×224224\times224 patch into a 14×1414\times14 grid, so one token covers a 16×1616\times16 px cell and the strip is exactly 2 token columns wide: 28 of the 196 tokens, or 14.3% of the patch.

The assignment and its sections. To a patch UU we assign F(U)\mathcal{F}(U), the space of 14×1414\times14 spatially indexed token embeddings the VFM can produce on it, each token in R1536\mathbb{R}^{1536}. The embedding it actually produces, si:=Φ(Ui)∈F(Ui)s_i := \Phi(U_i) \in \mathcal{F}(U_i), is what we call a section over UiU_i.

Restriction maps. ρU1→U12\rho_{U_1 \to U_{12}} selects the tokens whose 16×1616\times16 cells lie inside the strip, which for U1U_1 is its rightmost 2 columns. ρU2→U12\rho_{U_2 \to U_{12}} selects the leftmost 2 columns of s2s_2. Both land in the same 28-token space F(U12)\mathcal{F}(U_{12}). The operation is positional indexing, so restricting in one step and restricting through an intermediate region return the same tokens, which we verified with a maximum difference of 0.

Locality on this pair. Locality asks that a section over U1∪U2U_1{\cup}U_2 be determined by what it restricts to on U1U_1 and on U2U_2. Two sections that agree on both are equal, since restriction is the same positional indexing and the two patches cover every position of the union. Locality holds exactly.

Gluing on this pair. Gluing asks the strip to have one value. Both s1s_1 and s2s_2 describe it, so compatibility requires ρU1→U12(s1)=ρU2→U12(s2)\rho_{U_1 \to U_{12}}(s_1) = \rho_{U_2 \to U_{12}}(s_2). That is 28 token pairs, each pair describing the same 16×1616\times16 px cell of tissue, read once as the right edge of U1U_1 and once as the left edge of U2U_2. Averaged over 4,873 BCI H&E images, the mean cosine between the two readings is 0.626, well below the 1.0 the axiom requires. The cosine stays under that bound at every one of the eight strides. This is the 0.63 quoted in Section 3.2.

Context contamination. Self-attention makes every token a function of the entire patch, so the 28 tokens carry the context they were read in. The same tissue at the right edge of one patch and the left edge of the next is embedded twice, under two different contexts.

The constraint SheafStain imposes. Restriction composes, so the assignment is a presheaf, and locality holds as shown above. The two readings of the strip disagree, so these sections fail to satisfy the compatibility required for gluing. No single section over U1∪U2U_1{\cup}U_2 restricts to both. The Dirichlet energy E(x)>0E(x) > 0 quantifies that disagreement across every such strip in the cover. SheafStain leaves the VFM frozen and acts on the generator: the pixel sheaf loss (Eq. 4) requires two generated patches to agree on their shared overlap, in pixel space rather than in embedding space.

U1U_1 U2U_2 U12U_{12}
anchor (px) (0,0)(0,0) (192,0)(192,0) (192,0)(192,0)
size (px) 224×224224\times224 224×224224\times224 32×22432\times224
tokens 14×14=19614\times14 = 196 14×14=19614\times14 = 196 2×14=282\times14 = 28
selected tokens (ρ\rho) rightmost 2 columns leftmost 2 columns all columns

We will place this example directly in Section 3.2, so the section can be read without turning to Appendix A.

Authors · CommentOpenReview ↗

On sheaf theory in machine learning

You noted that sheaf theory is not used in most or any other areas of AI or computer science. Section 2 has a short paragraph on this, and the fact that it did not come through is part of the density problem you identified. Cellular sheaves have been in deep learning for a few years now, mostly on graphs. Neural Sheaf Diffusion [D] equips graphs with learnable restriction maps and shows they mitigate oversmoothing and heterophily, Sheaf Hypergraph Networks [E] extend this to hypergraphs, and Cooperative Sheaf Neural Networks [F] continue the line at ICLR this year. A recent survey [G] covers the area. All of them operate on discrete graph structures, which is why we describe our setting as the first application to image generation. We will make that paragraph easier to find and link it from Section 3.2, so a reader meets the prior work before the formalism.

References

[D] C. Bodnar et al. Neural sheaf diffusion: A topological perspective on heterophily and oversmoothing in GNNs. NeurIPS, 2022.

[E] I. Duta, G. Cassarà, F. Silvestri, P. Liò. Sheaf hypergraph networks. NeurIPS, 2023.

[F] A. Ribeiro et al. Cooperative sheaf neural networks. ICLR, 2026.

[G] A. Ayzenberg, T. Gebhart, G. Magai, G. Solomadin. Sheaf theory: from deep geometry to deep learning. arXiv preprint arXiv:2502.15476, 2025.

Reviewer s8YpOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes SheafStain, a virtual staining method that translates H&E histopathology images to IHC stains (HER2, ER, PR, Ki-67) while mitigating patch-boundary stitching artifacts. The authors states the observation that Vision Foundation Model (VFM) embeddings of overlapping patches yield inconsistent representations for the same spatial region termed "context contamination". Their solution injects VFM-derived spatial conditioning (a per-position token map M and a neighborhood CLS token) into an unpaired Neural Schrodinger Bridge (UNSB) generator and adds two overlap-consistency regularizers, one a pixel sheaf loss and a co-cycle gluing loss. Evaluation at stitched 1024×1024 resolution on BCI and MIST benchmarks shows improvements in FID, KID, DISTS, Tiling Score, and DAB Pearson correlation over six prior methods, alongside a downstream HER2 Low/High classification task demonstrating preserved clinical signal.

Strengths and weaknesses

Strengths

Well-identified practical problem, as this work addresses the central challenge that every patch-wise virtual staining pipeline faces, independently generated 256×256 patches exhibit tone drift, boundary discontinuities, and chromatin-distribution mismatches when reassembled. The paper clearly motivates why this matters clinically and provides a concrete mechanism explaining why VFM-conditioned generators inherit this inconsistency. Rigorous empirical verification of the presheaf structure is also important and the analysis in Section 3.2 is thorough and convincing. Measuring cosine similarity across 8 strides, 4 directions, and 4,873 images with per-position breakdown in table 6 and the inverted-U pattern (figure 8), firmly establishes that the gluing axiom fails for ViT-based VFMs. The near-identical H&E/IHC gap is a particularly nice observation validating cross-stain VFM usage. In addition, evaluation protocol advancement with the decision to translate at 256×256 but evaluate at stitched 1024×1024 is a genuine methodological contribution. Prior works (pix2pix, CycleGAN, UNSB, and even D-VST's original paper) evaluate on isolated patches or resize ground truth, masking the very artifacts that determine clinical usability.

Weaknesses

With very low absolute DAB-r across all methods, the best DAB Pearson correlation achieved is 0.074 (MIST ER). Most values range from 0.02–0.05, indicating near-zero spatial correlation between predicted and ground-truth chromogen patterns. While SheafStain leads consistently, this means no method (including SheafStain) meaningfully localizes biomarker staining at correct cell positions. The authors partially explains this to weak pairing with consecutive sections, which is fair, but it limits claims about biological coherence in the title. Secondly, the prohibitive computational cost, at ~18 seconds per 1024×1024 image , SheafStain is ~100× slower than PSPStain and ~430× slower than pix2pix. For gigapixel WSIs containing hundreds to thousands of such regions, this translates to hours per slide even on data-center GPUs. The authors acknowledge this, but for the clinical deployment the paper repeatedly motivates, this overhead is a serious practical limitation. PSNR/SSIM inconsistency and metric cherry-picking concern. SheafStain does not achieve best PSNR or SSIM on any (dataset, stain) block. The authors dismiss these metrics as penalizing pixel-level deviation under weak pairing, which is a reasonable argument but LPIPS and DISTS also require paired ground truth and share some of this limitation. The selective emphasis on metrics where SheafStain excels, while dismissing those where it underperforms, weakens the evaluation's objectivity. And lastly, limited evaluation scale relative to claims as the paper's framing emphasizes WSI-level artifacts and clinical deployment, but validation stops at 1024×1024. The limitations section acknowledges this but the mismatch between rhetorical ambition and experimental scale is notable. Even evaluating at 4096×4096 or 8192×8192 still far from WSI would substantially strengthen the claims. And missing comparisons with closely related work. CC-WSI-Net (Liu et al., 2024) directly targets seamless WSI synthesis with content/color consistency modules and is cited but not compared against experimentally. Given that SheafStain builds on UNSB and targets the same problem as CC-WSI-Net, experimental comparison with at least one of such papers would strengthen the paper.

Questions

One thing I would like to have more clarity on is the absolute DAB r-values are very low (0.02–0.07). Was it investigated what the theoretical ceiling for DAB-r might be given the consecutive-section weak pairing?

Limitations

The authors discuss three limitations, first one about the validation restricted to BCI and MIST, second on the evaluation at 1024×1024 rather than full WSI scale, and last one on the unverified cross-organ generalization. These are honestly stated and each is paired with planned future work. However, the computational cost limitation is not explicitly listed here despite being arguably the most significant barrier to the clinical deployment that motivates the paper.

Final justification

All my concerns were adequately addressed.

Formatting concerns

N/A

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the thorough and constructive review, and for recognizing the practical importance of the problem, the presheaf analysis in Section 3.2, and the stitched-region evaluation protocol.

Correction (applies to all DAB-based metrics).

In preparing this response we found an error in our DAB color deconvolution. The DAB metrics require projecting the optical-density image onto stain concentrations with the inverse of the H-DAB stain matrix M. Our code computed od @ inv(M).T instead of od @ inv(M), so the channel we read as DAB was not DAB. On a unit-concentration pure DAB input that channel responds -0.69, and on a pure hematoxylin input it responds +1.31. The maps we reported were therefore hematoxylin-dominated with an inverted DAB response.

The fix removes the transpose from one line of the evaluation code, identically for all seven methods, with no retraining, no change to the generated images, and no change to the evaluation data or splits. Only the DAB-derived metrics change, and FID, KID, LPIPS, DISTS, PSNR, SSIM and TS are untouched. DAB-r rises in all 35 (dataset, stain, method) entries, the other DAB metrics move in both directions, and FOD decreases in most of them. The ranking changes in one of the five blocks, since the best DAB-r on BCI is now UNIStainNet.

Corrected values at 1024×1024. Best in bold, second-best in italics.

BCI (HER2 only)

Method DAB-r↑ DAB-KL↓ DAB-JSD↓ mIOD↓ FOD↓
pix2pix 0.0559 0.8688 0.1085 0.0838 0.0866
CycleGAN 0.0668 2.7118 0.3006 0.1479 0.1954
PSPStain 0.0317 1.9180 0.2276 0.1174 0.1679
D-VST 0.0736 0.8404 0.1346 0.1172 0.1003
UNIStainNet 0.1267 1.1834 0.1591 0.0946 0.1280
UNSB 0.0589 1.0434 0.2164 0.1674 0.2227
SheafStain (Ours) 0.1209 1.2226 0.1255 0.0615 0.1149

MIST HER2

Method DAB-r↑ DAB-KL↓ DAB-JSD↓ mIOD↓ FOD↓
pix2pix 0.0866 1.2894 0.1286 0.2195 0.1877
CycleGAN 0.0681 0.9302 0.1401 0.2525 0.2057
PSPStain 0.0841 0.6306 0.1109 0.1676 0.1964
D-VST 0.0356 0.4840 0.1025 0.1964 0.1837
UNIStainNet 0.0606 1.2083 0.2222 0.4749 0.2613
UNSB 0.0310 0.8462 0.1452 0.2648 0.2137
SheafStain (Ours) 0.1187 0.3447 0.0704 0.0714 0.1650

MIST ER

Method DAB-r↑ DAB-KL↓ DAB-JSD↓ mIOD↓ FOD↓
pix2pix 0.0551 1.9522 0.1686 0.2991 0.2119
CycleGAN 0.0884 0.8162 0.1386 0.2728 0.2355
PSPStain 0.0906 0.5176 0.0999 0.1963 0.1852
D-VST 0.0554 0.4522 0.1072 0.2526 0.2226
UNIStainNet 0.0497 1.2837 0.1288 0.2801 0.2170
UNSB 0.0790 0.8176 0.1305 0.2698 0.2341
SheafStain (Ours) 0.1248 0.3890 0.0794 0.0794 0.1692

MIST PR

Method DAB-r↑ DAB-KL↓ DAB-JSD↓ mIOD↓ FOD↓
pix2pix 0.0656 1.6081 0.1523 0.3132 0.1937
CycleGAN 0.0823 0.6455 0.1347 0.2945 0.2219
PSPStain 0.0905 0.4411 0.0900 0.2205 0.1783
D-VST 0.0502 0.4854 0.1170 0.2741 0.2229
UNIStainNet 0.0429 3.0349 0.1885 0.3395 0.3417
UNSB 0.0544 1.1273 0.1546 0.3181 0.2527
SheafStain (Ours) 0.1184 0.3572 0.0772 0.0954 0.1676

MIST Ki-67

Method DAB-r↑ DAB-KL↓ DAB-JSD↓ mIOD↓ FOD↓
pix2pix 0.0257 0.7639 0.1202 0.1490 0.2067
CycleGAN 0.0423 0.7734 0.1323 0.1384 0.2412
PSPStain 0.0340 0.5525 0.1052 0.1135 0.2134
D-VST 0.0235 0.4586 0.1036 0.1267 0.2191
UNIStainNet 0.0200 0.6261 0.1339 0.1163 0.2735
UNSB 0.0326 0.6734 0.1299 0.1400 0.2585
SheafStain (Ours) 0.0493 0.5217 0.1001 0.0750 0.2072

SheafStain has the best DAB-r on four of five (dataset, stain) blocks, all four MIST markers, and is second on BCI. On MIST HER2, ER and PR it is best on all five metrics. On MIST Ki-67 it is best on DAB-r, DAB-JSD and mIOD, and second on DAB-KL and FOD. On BCI it is best on mIOD and second on DAB-r and DAB-JSD.

Ablation on BCI. Only DAB-r changes. FID, KID, LPIPS, DISTS and TS are unchanged.

Step DAB-r (submitted) DAB-r (corrected)
Baseline (UNSB) 0.0028 0.0589
+ Spatial Cond. 0.0211 0.0823
+ Pixel Sheaf 0.0101 0.1059
+ Cocycle 0.0084 0.1091
+ Fourier Edge 0.0255 0.1190
+ DAB Intensity 0.0247 0.1183
+ Cross-stain Align. (Ours) 0.0267 0.1209

The correction also clarifies the component analysis. Under the corrected values DAB-r rises across the sheaf-related steps, most notably at the pixel sheaf and cocycle terms where the submitted numbers dipped. The sheaf objectives therefore improve biomarker localization on their own, and the Fourier edge term adds a further gain. We will revise the ablation result accordingly.

W1 and Question (low DAB-r, and the theoretical ceiling under weak pairing).

We agree, and we investigated the ceiling directly. Because H&E and IHC are cut from two different tissue sections [A], the reference is spatially and biologically offset from the input, which bounds DAB-r for any model. On the full evaluation splits we correlate each ground-truth DAB map with a displaced copy of itself. At the BCI resolution of 0.46 µm/px [A]:

Displacement 0.9 µm 3.7 µm 7.4 µm 14.7 µm 29.4 µm
Attainable DAB-r 0.89 0.57 0.40 0.27 0.19

A calibrated elastic warp of the same mean magnitude gives comparable values (0.46 at 7.4 µm and 0.33 at 14.7 µm) and is insensitive to the warp smoothness. Consecutive sections retain a median registration residual of 6.5 to 24.1 µm even after non-rigid registration [B], so a perfect but misaligned predictor is capped at roughly 0.21 to 0.43. The metric is intrinsically compressed, since a displacement of one micron already reduces it to about 0.89. Observed values fall below even this geometric bound because the two sections also differ biologically, which registration cannot recover. This is why no method exceeds about 0.13.

We therefore make the biological-coherence claim precise and support it with evidence that is insensitive to this misalignment. SheafStain leads DAB-r on four of five blocks and leads all five biomarker metrics on three of the four MIST blocks. On downstream HER2 Low/High classification on real BCI data it leads accuracy, F1 and AUROC, exceeding the strongest prior method by 4.2 points of accuracy and 0.057 AUROC. We will add this ceiling analysis and scope the coherence claim accordingly.

W2 (computational cost).

You are right. On the latency-quality trade-off in Appendix L, SheafStain sits at the high-quality end of the non-dominated Pareto frontier, so no faster method reaches its FID or DAB-r there. The per-image cost splits into the VFM forward (about 90 percent) and the generator (about 10 percent). The VFM forward is a swappable component: the backbone comparison below shows Virchow2 matching quality at lower cost. The many per-patch calls come from giving each patch its own neighborhood context, which is what the sheaf objective operates on, so this compute is the source of the FID, TS, and DAB-r gains. Virtual staining runs offline as a batch preprocessing step, so the hours per slide are set against the turnaround of the IHC assay it replaces. The measurements below use the protocol and GPU of Appendix L on MIST HER2.

VFM backbone VFM params TFLOPs/img Latency FID DAB-r
Prov-GigaPath ViT-G (default) 1135 M 44.7 17.6 s 34.51 0.1187
UNI2-h ViT-H 681 M 35.0 14.0 s 65.14 0.0843
Virchow2 ViT-H 631 M 32.9 13.4 s 33.60 0.1239

W3 (PSNR/SSIM and metric objectivity).

This is a reasonable concern. What separates the full-reference metrics is their sensitivity to spatial misalignment. PSNR and SSIM are pixel-aligned and degrade under sub-cellular displacement, the same mechanism that produces the DAB-r ceiling above. DISTS is constructed to be relatively insensitive to geometric transformations such as translation and dilation [C], and LPIPS is likewise more tolerant, while FID and KID use no pairing at all. We report PSNR and SSIM for every block in the paper and will keep them there.

W4 (evaluation scale stops at 1024).

We agree that larger-scale evaluation would strengthen the WSI motivation. We evaluate at 1024 because it already exposes the inter-patch inconsistency the method targets, with 16 patches and 24 internal boundaries. BCI and MIST are released as paired 1024 regions and do not provide larger contiguous paired context. The same-section dataset HER2match [D] is one candidate for scaling up, but re-staining changes the pairing regime the method targets, and it is a different acquisition domain with a different scanner, so a fair evaluation would require retraining on that domain. We will list this and other public cohorts as concrete future work.

W5 (CC-WSI-Net not compared).

Thank you for the pointer. CC-WSI-Net does not release public code, so we cannot reproduce it under our controlled 256-to-1024 stitched protocol. The paper introduces it in related work but does not contrast it with ours. We will state the difference, that it repairs stitching after the fact while we constrain the overlaps during generation.

Limitations (computational cost not listed).

We will add computational cost as a fourth limitation alongside the three already stated.

References

[A] S. Liu et al. BCI: Breast cancer immunohistochemical image generation through pyramid pix2pix. CVPRW, 2022.

[B] J. Lotz et al. Comparison of consecutive and restained sections for image registration in histopathology. JMI, 2023.

[C] K. Ding et al. Image quality assessment: unifying structure and texture similarity. TPAMI, 2022.

[D] P. Klöckner et al. GANs vs. diffusion models for virtual staining with the HER2match dataset. Deep Generative Models, 2025.

Comments on the paper

2 comments
Authors · CommentOpenReview ↗

Official Comment to all reviewers and the AC: summary (Part 2/2)

3. Dataset, baseline and hyperparameter choices (Reviewers Ri49, SEWY, s8Yp)

We selected previous works as baselines with the following conditions: (1) one representative from each methodology used for virtual staining, and (2) public source code, since comparing the results required retraining every method on the same data. UNSB is both a baseline and our starting point, so the comparison isolates what our components add. CC-WSI-Net was not selected because of the second condition. The paper states that we retrain from publicly available source code without giving this reasoning, and we will add it to the experimental setup together with the methods we considered and could not include.

The data has to give an IHC reference over a region wide enough to contain interior patch boundaries, and it has to come from consecutive sections, which is what makes the pairing weak. BCI and MIST meet these criteria. We considered two public alternatives. IHC4BC meets both conditions, and we kept this study on the two sets the compared methods already report on so that our retrained numbers can be checked against published ones. Adding a third means retraining all seven methods on about 90,000 pairs from 240 slide pairs, and we will name IHC4BC in the first limitation as the concrete next step. HER2match is same-section, which removes the condition the method is built to handle, and it comes from a different scanner and acquisition domain. We will list it with other public cohorts as future work on evaluation scale.

The weights were set in two stages: a component ablation to decide which terms belong in the objective, which is Table 1, and then the weight grid over the auxiliary terms. The principal weights were fixed rather than searched. One setting is used everywhere in the paper, and BCI and all four MIST markers share it with no per-dataset re-tuning. We will add the grid and the two-stage procedure to the hyperparameter appendix.

4. The DAB-rr ceiling, what our results support, and the metrics where we do not lead (Reviewers s8Yp, Ri49)

We estimated the ceiling directly. Because H&E and IHC come from two different sections, the reference is spatially and biologically offset from the input, which bounds DAB-rr for any model. Correlating each ground-truth DAB map with a displaced copy of itself, and taking the registration residuals reported for consecutive sections, a perfect but misaligned predictor is capped at roughly 0.21 to 0.43.

That ceiling applies to every method, so the comparison across methods stays the quantity that carries information. SheafStain has the best DAB-rr on all four MIST markers and is second on BCI. DAB-rr measures the biomarker signal directly and runs into that ceiling. A downstream task measures it indirectly, and because it never compares an H&E image with its IHC counterpart, the ceiling does not apply. BCI supplies the grade labels with the image pairs, so we trained a HER2 Low/High classifier on translated outputs alone and evaluated it on real BCI IHC slides. SheafStain leads accuracy, F1 and AUROC, by 4.2 points of accuracy and 0.057 AUROC over the strongest prior method. That is the level at which we claim the outputs are usable, and we will make that scope explicit in the paper.

On the metrics where we do not lead, what separates the full-reference measures is their sensitivity to spatial misalignment. PSNR and SSIM are pixel-aligned and degrade under sub-cellular displacement, the same mechanism that produces the ceiling above. DISTS is constructed to be relatively insensitive to geometric transformations such as translation and dilation, and LPIPS is likewise more tolerant, while FID and KID use no pairing at all.

5. Computational cost and limitations (Reviewer s8Yp)

Virtual staining runs offline as a batch preprocessing step, so the hours per slide are set against the turnaround of the IHC assay it replaces. The per-image cost splits into the pathology VFM forward at about 90 percent and the generator at about 10 percent. The pathology VFM is a swappable component, and our backbone comparison shows Virchow2 matching quality at lower cost. On the latency-quality trade-off in Appendix L, SheafStain sits at the high-quality end of the non-dominated Pareto frontier, so no faster method reaches its FID or DAB-rr there. Across BCI and the four MIST markers, its FID is 30 to 46 percent below the runner-up and its KID is 2.6 to 8.8 times lower. We will add computational cost as a fourth limitation alongside the three already stated.

The reviewers' questions and the AC's meta-review have pointed to what our original submission left out and have made the paper more precise, particularly in the experimental setup, the results and our analysis. We will work these points into the revision. Once again, we appreciate the time all the reviewers and the AC spent on our paper.

Authors · CommentOpenReview ↗

Official Comment to all reviewers and the AC: summary (Part 1/2)

We appreciate the time the reviewers and the AC have given this paper. The meta-review set out clearly what our response needed to cover. This summary comes in two parts. Part 1 covers the corrections we made during the discussion period, together with the sheaf and Schrödinger Bridge components. The remaining points are in the comment titled "Official Comment to all reviewers and the AC: summary (Part 2/2)".

1. Corrections

We reported two corrections ourselves during the discussion period. The corrected DAB tables are given in our response to Reviewer s8Yp.

The first is in our DAB color deconvolution. One line of the evaluation code applied the transpose of the inverse stain matrix, so the channel we read as DAB was not DAB. The fix removes that transpose from one line, identically for all seven methods, with no retraining, no change to the generated images, and no change to the evaluation data or splits. The DAB terms in the training objective use a separate implementation and are not affected. FID, KID, LPIPS, DISTS, PSNR, SSIM and TS are untouched. The ranking changes in one of the five dataset and stain combinations, since the best DAB-rr on BCI is now UNIStainNet.

The second is in our description of the weight grid. We gave it as 26 settings when it is 3×3×3=273\times3\times3 = 27. Adding the missing cell updates two supporting statistics. We had written that the α=1\alpha = 1 contrast is 8 of 8 and that the group spans FID 43.7 to 54.8. With the missing cell the contrast is 8 of 9 and the group spans FID 43.7 to 70.1. The reading is unchanged. α\alpha remains the axis with the largest effect, and the selected setting remains second of the grid on mean rank over the four metrics and best on none of them. The full grid is in our comment to Reviewer Ri49.

2. The sheaf formulation and the Schrödinger Bridge component (Reviewer SEWY)

In our method, we cut a large image into overlapping patches and pass each one through a frozen VFM. The region where patches overlap should get the same representation from every patch that covers it.

But each patch also covers an area of its own outside that region, and the self-attention mechanism lets every token draw on the whole patch. So the same region gets a different representation in each patch, and we take our constraint from sheaf theory. We measured the mismatch across all 4,873 BCI images. We cut each 1024×10241024\times1024 image into 224×224224\times224 patches at eight different strides and compared the overlap tokens of neighboring patches with cosine similarity.

The observed cosine similarity increased with the size of the overlap. As one example, the VFM tokens scored 0.63 at 14% overlap and 0.82 at 64%. But at no stride or direction did the similarity reach 1.0, the value that identical representations would give. We leave the VFM frozen and put the sheaf constraint on the generator instead, so the patches it produces have to agree where they overlap.

Appendix I carries the full results table, and Section 3.2 makes the same point in notation. But that section assumes familiarity with a framework that is rarely used in machine learning, and we accept that its terseness leaves everyone else dependent on Appendix A. We will revise the paper accordingly by modifying the main text to minimize confusion and increase clarity. A worked example on one pair of overlapping patches (posted in response to Reviewer SEWY) will be added to Section 3.2, and the dense mathematical explanation will be left to Appendix A.

Regarding the Schrödinger Bridge, we do not claim it as a contribution. Virtual staining takes H&E as the source and IHC as the target, so it is close to image-to-image translation. Connecting those two distributions fits the task better than a diffusion path that starts from random noise. Because most virtual staining datasets are curated from consecutive sections of the same tissue, H&E and IHC slides are weakly paired, so we built on UNSB, the unpaired form of the bridge. We will move this reasoning from its single sentence in Section 2 into the method section for clarity.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…