Virtual Multiplex Staining for Histological Images Using a Marker-Wise Conditioned Diffusion Model

Hyun-Jic Oh, Junsik Kim, Zhiyi Shi, Yichen Wu, Yu-An Chen, Peter K. Sorger, Hanspeter Pfister, Won-Ki Jeong

TL;DR

This paper introduces a novel two-stage diffusion model for "virtual multiplex staining," generating high-resolution images of multiple biomarkers from standard H&E stained histology slides. This approach significantly lowers the barrier to entry for complex multiplex imaging, enabling broader adoption and retrospective analysis of existing H&E datasets.

What Problem Does This Paper Address?

Histopathology relies heavily on Hematoxylin and Eosin (H&E) staining for initial tissue examination. However, H&E provides limited molecular information. Multiplex immunofluorescence (mIF) and immunohistochemistry (mIHC) overcome this by visualizing multiple biomarkers simultaneously, offering deeper insights into tissue microenvironments, crucial for advanced disease research and diagnostics. The catch? Multiplex imaging is complex, expensive, and requires specialized protocols, hindering its widespread use. Furthermore, vast archives of H&E images lack corresponding multiplex data, limiting their utility for multi-modal analysis. Existing "virtual staining" methods often struggle with scalability (requiring separate models per marker) or limited marker output (2-3 markers). This paper aims to bridge the gap by enabling the generation of a large number of multiplex markers from a single H&E image using a unified model.

Methods

The core of the proposed solution is a two-stage conditional diffusion model built upon the Latent Diffusion Model (LDM) architecture, specifically leveraging the Stable Diffusion (SD) backbone.

Stage 1: Marker-wise Conditional Diffusion Model * Marker-wise Conditioning: Instead of text prompts, the model uses a one-hot encoded vector for each marker type. This provides a distinct and scalable signal for generating specific markers. The H&E image latent representation is replicated and concatenated with this marker embedding before being fed into the diffusion U-Net. * Shared Architecture: A single U-Net model is trained to generate all marker types, enabling knowledge sharing between markers and reducing computational overhead compared to per-marker models. * Loss Function: A marker-specific L2 loss is used to train the U-Net for noise prediction.

Stage 2: Fine-tuning for Color Contrast Fidelity and Inference Speed * Single-Step Inference: The model is fine-tuned for single-step sampling, drastically reducing inference time. This is achieved by fixing the diffusion timestep and replacing random noise with zero noise. * Pixel-Level Loss: A combined L1 and L2 pixel-level loss function is employed. This directly addresses the challenge of varying color contrasts and pixel value distributions across different marker stains, significantly improving color fidelity.

Datasets

The authors evaluated their framework on two publicly available datasets:

  • HEMIT (Bian et al., 2024): This dataset provides paired H&E and three mIHC markers: DAPI (nuclei), pan-cytokeratin (panCK, tumor regions), and CD3 (T cells). It consists of 5,292 image pairs.
  • Orion-CRC (Lin et al., 2023): This dataset is more extensive, featuring 18 IF marker channels paired with H&E stained sections from colon cancer whole slide images (WSIs).

Key Insights and Ideas

  • Scalability through One-Hot Encoding: Using one-hot vectors for marker conditioning proves far more scalable than text-based prompts, especially when dealing with a large number of markers (e.g., 18 in Orion-CRC). Text-based methods falter significantly in such scenarios.
  • The Power of Two Stages: Separating the generation of multiplex images from the refinement of color fidelity and inference speed is crucial. The first stage establishes the core generation capability, while the second stage optimizes for practical deployment and visual quality.
  • Pixel-Level Fine-tuning is Key for Color: The fine-tuning stage, particularly the pixel-level loss, is essential for achieving accurate and vibrant color representation, overcoming inherent biases in the training data.
  • Bridging the H&E-Multiplex Gap: This work demonstrates a practical pathway to leverage existing H&E archives for multiplex-level insights, opening doors for retrospective studies and large-scale analyses that were previously infeasible.

Key Results

  • High Accuracy Across Markers: The proposed method achieved state-of-the-art performance on both datasets, outperforming baselines like pix2pix, pix2pixHD, HEMIT, Parmar et al., and Marigold.
  • On HEMIT, it achieved the highest average SSIM, R, and PSNR.
  • On Orion-CRC, it showed significant improvements, achieving the highest SSIM for 13, R for 15, and PSNR for all 18 markers.
  • Generating Up to 18 Markers: A significant achievement is the ability to generate up to 18 distinct marker types from a single H&E image using a unified model, a substantial leap from previous methods limited to 2-3 markers.
  • Drastic Inference Speedup: The fine-tuning stage enables single-step inference, reducing runtime and memory requirements significantly, making it practical for large-scale applications.
  • Improved Color Fidelity: Qualitative comparisons (Figure 5) clearly show that the fine-tuned model produces images with superior color fidelity and localization accuracy compared to the non-fine-tuned version.

Limitations and Future Work

  • Computational Cost for Many Markers: While inference is single-step, the computational cost still scales with the number of markers, which remains a challenge for extremely high-dimensional applications.
  • Inter-Marker Correlation Modeling: The current framework does not explicitly model inter-marker correlations, which could potentially further improve image fidelity.
  • Future Directions: The authors suggest future work focusing on enhancing structural detail, explicitly modeling inter-marker correlations, and evaluating the clinical impact of their virtual multiplex staining approach in real-world pathology settings.

Summary updated

BibTeX
@inproceedings{oh2026virtual,
  author = {Hyun-Jic Oh and Junsik Kim and Zhiyi Shi and Yichen Wu and Yu-An Chen and Peter K. Sorger and Hanspeter Pfister and Won-Ki Jeong},
  title = {{Virtual Multiplex Staining for Histological Images Using a Marker-Wise Conditioned Diffusion Model}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i10.37764},
}
Figure