eess.IVApr 9, 2026

HistDiT: A Structure-Aware Latent Conditional Diffusion Model for High-Fidelity Virtual Staining in Histopathology

Authors: Aasim Bin Saleem, Amr Ahmed, Ardhendu Behera, Hafeezullah Amin, Iman Yi Liao, Mahmoud Khattab, Pan Jia Wern, Haslina Makmur

Organizations: Edge Hill University, Ormskirk, L39 4QP, United Kingdom · University of Nottingham Malaysia, 43500 Semenyih, Malaysia · University of Southampton Malaysia, 79100 Iskandar Puteri, Malaysia · Cancer Research Malaysia, , 47500 Subang Jaya, Malaysia

Abstract

Immunohistochemistry (IHC) is essential for assessing specific immune biomarkers like Human Epidermal growth-factor Receptor 2 (HER2) in breast cancer. However, the traditional protocols of obtaining IHC stains are resource-intensive, time-consuming, and prone to structural damages. Virtual staining has emerged as a scalable alternative, but it faces significant challenges in preserving fine-grained cellular structures while accurately translating biochemical expressions. Current state-of-the-art methods still rely on Generative Adversarial Networks (GANs) or standard convolutional U-Net diffusion models that often struggle with "structure and staining trade-offs". The generated samples are either structurally relevant but blurry, or texturally realistic but have artifacts that compromise their diagnostic use. In this paper, we introduce HistDiT, a novel latent conditional Diffusion Transformer (DiT) architecture that establishes a new benchmark for visual fidelity in virtual histological staining. The novelty introduced in this work is, a) the Dual-Stream Conditioning strategy that explicitly maintains a balance between spatial constraints via VAE-encoded latents and semantic phenotype guidance via UNI embeddings; b) the multi-objective loss function that contributes to sharper images with clear morphological structure; and c) the use of the Structural Correlation Metric (SCM) to focus on the core morphological structure for precise assessment of sample quality. Consequently, our model outperforms existing baselines, as demonstrated through rigorous quantitative and qualitative evaluations.

Figures & tables

Explore similar work

CardsList
  1. UNIStainNet: Foundation-Model-Guided Virtual Staining of H&E to IHC

    Mar 13, 2026Jillur Rahman Saurav, Thuong Le Hoai Pham, Pritam Mukherjee +3Virtual StainingComputational Pathology

  2. Semi-Supervised Virtual Staining via Morphology Preservation and Histopathological Realism Constraints

    Sep 1, 2026Baoshun Wang, Weiping Lin, Linwu Wang +3Computational PathologyImage-to-Image Translation

  3. HAPS: Rethinking Image Similarity for Virtual Staining

    May 19, 2026Fedor Gubanov, Svetlana Illarionova, Vlad Kozlovskiy +6Computational PathologyMedical Image Analysis