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 virtual staining framework that uses a single conditional latent diffusion model to generate up to 18 distinct multiplexed tissue biomarkers from a standard, inexpensive H&E image. By replacing ambiguous text prompts with marker-wise one-hot embeddings and introducing a pixel-level fine-tuning stage, the model achieves state-of-the-art accuracy and enables lightning-fast, single-step inference.

What Problem Does This Paper Address?

In pathology, Hematoxylin and Eosin (H&E) staining is the gold standard for looking at tissue structure, but it lacks the molecular-level detail needed to understand complex diseases like cancer. Multiplex immunofluorescence (mIF) and multiplex immunohistochemistry (mIHC) solve this by visualizing dozens of biomarkers simultaneously on a single tissue slice. However, multiplex imaging is incredibly expensive, slow, and requires specialized equipment.

While "virtual staining" (using AI to generate biomarker images from cheap H&E inputs) has emerged as a solution, previous deep learning approaches hit a scalability wall. Most existing methods require training a completely separate model for every single marker, or they top out at generating only 2 to 3 markers simultaneously. Furthermore, text-conditioned diffusion models struggle to scale because text prompts become ambiguous when dealing with dozens of highly specific biological stains.

Methods

The authors address these limitations by building a Marker-wise Conditioned Diffusion Model on top of a pretrained Stable Diffusion v2 backbone. Their framework operates in two distinct stages:

Overview of the proposed two-stage training framework for virtual multiplex staining.
  1. Stage 1: Marker-wise Conditional Diffusion: Instead of training multiple networks or using text prompts, the authors use a single, shared U-Net architecture. They condition the network on specific biomarkers using a one-hot embedding vector ($c_m$) representing each marker type. This vector undergoes positional encoding and is added directly to the diffusion time embedding. This allows the model to share structural knowledge across all markers while accurately differentiating between them.
  2. Stage 2: Fine-tuning for Color Contrast Fidelity & Single-Step Inference: Standard diffusion models require dozens of iterative denoising steps, making them slow. They also suffer from dataset bias, often predicting overly dark backgrounds. To fix this, the authors freeze the timesteps at $t=T$ and replace random noise with zero noise ($\epsilon=0$). They then fine-tune the U-Net directly in pixel space using a combined $L_1$ and $L_2$ loss function. This effectively distills the model into a deterministic, single-step generator that preserves high color contrast and spatial fidelity.

Datasets

The framework was validated on two public datasets containing paired H&E and multiplexed images:

  • HEMIT: Contains H&E images paired with 3 mIHC markers: DAPI (nuclei), panCK (tumor regions), and CD3 (T cells). The authors curated a clean test set of 292 non-overlapping, signal-rich image pairs for rigorous evaluation.
  • Orion-CRC: A high-plex colorectal cancer dataset consisting of 41 whole slide images (WSIs). Each H&E section is paired with 18 different IF marker channels (including Hoechst, CD45, panCK, SMA, CD3e, Ki-67, etc.), presenting a massive scalability challenge.

Key Insights and Ideas

  • One-Hot beats Text for Biology: While text prompts excel at generating creative artwork, discrete one-hot embeddings provide a much cleaner, more scalable routing signal for neural networks when mapping highly specific, deterministic biological structures.
  • Decoupling Distribution Learning from Optimization: Trying to optimize for color accuracy and generation speed all at once is difficult. By first teaching the model the complex spatial distributions of the markers (Stage 1) and then refining the contrast and step-count in pixel space (Stage 2), the authors achieve both high fidelity and high efficiency.
  • Knowledge Sharing via a Single Model: Training one model on 18 markers allows the network to learn shared tissue properties (like where cells generally sit), drastically reducing the total computational footprint compared to training 18 individual models.

Key Results

The proposed method achieved state-of-the-art performance across both datasets, significantly outperforming baselines like pix2pix, HEMIT, and Marigold.

  • Massive Scalability: The model successfully generated 18 distinct marker types on the Orion-CRC dataset, a massive leap forward from the 2-3 marker limit of prior joint-modeling methods. It achieved the highest SSIM for 13 markers, the best Pearson correlation (R) for 15 markers, and the best PSNR for all 18 markers.
  • Qualitative Clarity: On the HEMIT dataset, the model demonstrated superior localization of tricky immune cells (CD3) and tumor boundaries (panCK) where other models suffered from over-prediction or complete detection failure.
Qualitative comparison on the HEMIT dataset showing clearer localizations.
  • Blazing Fast Inference: Thanks to the single-step distillation in Stage 2, inference time plummeted to just 0.13 seconds per sample, compared to 110.59 seconds for a standard 50-step diffusion process with ensembling. Memory overhead was also drastically reduced.

Limitations and Future Work

Despite the impressive results, the authors note a few remaining hurdles:

  • Sequential Generation Cost: While a single model architecture is shared, generating a full multiplex panel still requires running the model sequentially (or in batches) for each desired marker, meaning computational cost still scales linearly with the number of markers.
  • Lack of Inter-Marker Correlation: The model generates each marker independently based on the H&E input and does not explicitly model how different markers correlate with or influence one another within the same tissue sample.
  • Latent Space Blurring: Because the model operates within the compressed latent space of a VAE without U-Net skip connections to the original image, some fine structural details can occasionally appear slightly blurry.

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