arXiv:2609.10914eess.IVSep 2026

Manuscript Offprint

arXiv:2609.10914

Seamless Whole Slide Label-Free Virtual Staining

Dou Hoon Kwark, Kianoush Falahkheirkhah, Ji-hun Oh, Shirui Luo, Volodymyr Kindratenko, Rohit Bhargava

Dou Hoon Kwark 1^{1}, Kianoush Falahkheirkhah 1^{1}, Ji-Hun Oh 1^{1}, Shirui Luo 2^{2}, Volodymyr Kindratenko 1,2∗^{1,2*}, and Rohit Bhargava 1∗^{1*}

1^{1} University of Illinois Urbana-Champaign, Urbana, IL, USA

2^{2} National Center for Supercomputing Applications, Urbana, IL, USA

dkwark2@illinois.edu

Abstract. Label-free virtual staining offers a compelling, non-destructive alternative to standard histopathology; however, its clinical adoption is hindered by the computational bottlenecks inherent to processing gigapixel Whole Slide Images (WSIs). Current deep learning approaches require patch-based inference to avoid memory constraints, which disrupts global tissue continuity and introduces tiling artifacts—displaying visible seams and color shifts. To address this, we introduce the Consistency Memory Bank (COMB), a novel label-free virtual staining framework that enforces spatial and channel consistency across tiles without memory bottlenecks. COMB decouples context storage from computation, utilizing a dynamic retrieval mechanism to fetch feature representations from adjacent tiles. This enables a retrieval-based context integration strategy that adopts local padding to resolve spatial discontinuities and neighbor-aware channel attention to stabilize statistical drift. Further optimized with a sliding window schedule to ensure minimal memory overhead, our method demonstrates superior performance over state-of-the-art baselines, achieving significant improvements in both perceptual fidelity and tiling consistency, while suggesting its downstream utility in tumor segmentation. Code is available at https://github.com/dou0000/COMB.

Keywords: Label-free virtual staining · Tiling artifact mitigation

1 Introduction

Pathology diagnosis relies on physical staining to make tissue structures visible under a microscope. While effective, this standard workflow is labor-intensive, inconsistent due to chemical variations, and consumes tissue samples required for downstream molecular assays. Label-free imaging [6] offers a compelling alternative by visualizing tissue structures using their inherent signals, eliminating the need for destructive chemical dyeing process. The advent of virtual staining—using deep learning to translate raw data into histological images—offers a powerful way to optimize pathology workflows across diverse imaging modalities [22,24,7,8,9]

However, clinical adoption faces a major computational hurdle: memory constraints prevent the single holistic inference of gigapixel Whole-Slide Images

∗^{*} Contributed equally

D. H. Kwark et al.

(WSIs). To that end, recent models have been developed to process the image in independent patches. This fragmentation, however, disrupts global tissue continuity, introducing tiling artifacts—spatial and photometric discontinuities that artificially cleave biological structures—which confound the visual continuity required for accurate pathological review.

Prior solutions for these tiling artifacts, widely adopted in virtual H&E-to-IHC staining, rely on Instance Normalization (IN) [28] augmented with global [10] or adjacent statistics [12,13]. While IN works well for standard RGB-to-RGB tasks, it can potentially underperform in label-free generation (e.g., spectral signal-to-RGB). Since it normalizes statistics based on the local statistics (in contrast to Batch Normalization (BN), which relies on learned global statistics), IN can sometimes lead to unstable predictions, particularly in label-free source modalities where signal distributions can be sparse and heterogeneous. Consequently, BN [11] remains the standard for label-free virtual staining to ensure generation quality and stability [17,27].

Despite the stability of BN, mechanisms to enforce channel and spatial consistency across patches with respect to BN remain underdeveloped. The recent CC-WSI-Net [19] attempted to address this by building upon the VSGD-Net architecture [18]—a strong generator integrating ResNet encoders and attention mechanisms—and adding global histogram matching to guide consistency and pixel-adjacency loss. However, this approach has limitations: global constraints often suppress local details [13], and simple pixel-adjacency losses are ineffective when the input domain (e.g., spectral data) lacks direct visual correlation with the output (H&E). Therefore, there is currently no single BN-based framework capable of delivering seamless, artifact-free generation for label-free virtual staining.

In this work, we introduce the COnsistency Memory Bank (COMB), a novel framework designed to address the limitations of patch-based inference in label-free whole-slide virtual staining. COMB dynamically aligns adjacent patches to ensure visual continuity. Specifically, our contributions are as follows: (i) We present a novel seamless whole-slide generation framework tailored specifically for label-free virtual staining. (ii) We introduce a retrieval-based context integration strategy that integrates local padding [1] and neighbor-aware Convolutional Block Attention Module to enforce spatial and channel consistency with minimal memory overhead. (iii) We validate that our method achieves superior performance on virtual staining quality and tiling artifacts compared to state-of-the-art baselines, with demonstrated utility in downstream tumor segmentation.

References (31)