# Adaptive Supervised PatchNCE Loss for Learning H&E-to-IHC Stain Translation with Inconsistent Groundtruth Image Pairs

arXiv: https://arxiv.org/abs/2303.06193 · HTML: https://mlsanity.com/paper/2303.06193/

## Key facts

- Cited by 38 papers in the map (data through 14 Oct 2026).
- Builds on 9 of its 14 references that are in the map.
- First posted on arXiv 10 Mar 2023.

## Builds on (most cited first, 9 of 9)

- [Adam: A Method for Stochastic Optimization](https://mlsanity.com/paper/1412.6980/) (2014)
- [Representation Learning with Contrastive Predictive Coding](https://mlsanity.com/paper/1807.03748/) (2018)
- [Image-to-Image Translation with Conditional Adversarial Networks](https://mlsanity.com/paper/1611.07004/) (2016)
- [Contrastive Learning for Unpaired Image-to-Image Translation](https://mlsanity.com/paper/2007.15651/) (2020)
- [Contrast to Divide: Self-Supervised Pre-Training for Learning with Noisy Labels](https://mlsanity.com/paper/2103.13646/) (2021)
- [BCI: Breast Cancer Immunohistochemical Image Generation through Pyramid Pix2pix](https://mlsanity.com/paper/2204.11425/) (2022)
- [Investigating Why Contrastive Learning Benefits Robustness Against Label Noise](https://mlsanity.com/paper/2201.12498/) (2022)
- [Contrastive Learning Improves Model Robustness Under Label Noise](https://mlsanity.com/paper/2104.08984/) (2021)
- [Contrastive Feature Loss for Image Prediction](https://mlsanity.com/paper/2111.06934/) (2021)

## Built on by (most cited first, 30 of 38)

- [Pathological Semantics-Preserving Learning for H&E-to-IHC Virtual Staining](https://mlsanity.com/paper/2407.03655/) (2024)
- [Fr'echet Radiomic Distance (FRD): A Versatile Metric for Comparing Medical Imaging Datasets](https://mlsanity.com/paper/2412.01496/) (2024)
- [StainDiffuser: MultiTask Dual Diffusion Model for Virtual Staining](https://mlsanity.com/paper/2403.11340/) (2024)
- [PixCell: A generative foundation model for digital histopathology images](https://mlsanity.com/paper/2506.05127/) (2025)
- [Breast Cancer Immunohistochemical Image Generation: a Benchmark Dataset and Challenge Review](https://mlsanity.com/paper/2305.03546/) (2023)
- [HEMIT: H&E to Multiplex-immunohistochemistry Image Translation with Dual-Branch Pix2pix Generator](https://mlsanity.com/paper/2403.18501/) (2024)
- [Unpaired Multi-Domain Histopathology Virtual Staining using Dual Path Prompted Inversion](https://mlsanity.com/paper/2412.11106/) (2024)
- [Mix-Domain Contrastive Learning for Unpaired H&E-to-IHC Stain Translation](https://mlsanity.com/paper/2406.11799/) (2024)
- [HistDiST: Histopathological Diffusion-based Stain Transfer](https://mlsanity.com/paper/2505.06793/) (2025)
- [Fundus2Video: Cross-Modal Angiography Video Generation from Static Fundus Photography with Clinical Knowledge Guidance](https://mlsanity.com/paper/2408.15217/) (2024)
- [GANs vs. Diffusion Models for virtual staining with the HER2match dataset](https://mlsanity.com/paper/2506.18484/) (2025)
- [USIGAN: Unbalanced Self-Information Feature Transport for Weakly Paired Image IHC Virtual Staining](https://mlsanity.com/paper/2507.05843/) (2025)
- [Generative AI for Misalignment-Resistant Virtual Staining to Accelerate Histopathology Workflows](https://mlsanity.com/paper/2509.14119/) (2025)
- [Dual-Path Knowledge-Augmented Contrastive Alignment Network for Spatially Resolved Transcriptomics](https://mlsanity.com/paper/2511.17685/) (2025)
- [Advancing H&E-to-IHC Stain Translation in Breast Cancer: A Multi-Magnification and Attention-Based Approach](https://mlsanity.com/paper/2408.01929/) (2024)
- [DeReStainer: H&E to IHC Pathological Image Translation via Decoupled Staining Channels](https://mlsanity.com/paper/2409.00649/) (2024)
- [Fundus to Fluorescein Angiography Video Generation as a Retinal Generative Foundation Model](https://mlsanity.com/paper/2410.13242/) (2024)
- [Cross-channel Perception Learning for H&E-to-IHC Virtual Staining](https://mlsanity.com/paper/2506.07559/) (2025)
- [Score-based Diffusion Model for Unpaired Virtual Histology Staining](https://mlsanity.com/paper/2506.23184/) (2025)
- [Topology-aware Pathological Consistency Matching for Weakly-Paired IHC Virtual Staining](https://mlsanity.com/paper/2601.02806/) (2026)
- [PGVMS: A Prompt-Guided Unified Framework for Virtual Multiplex IHC Staining with Pathological Semantic Learning](https://mlsanity.com/paper/2602.23292/) (2026)
- [A Generative Foundation Model for Multimodal Histopathology](https://mlsanity.com/paper/2604.03635/) (2026)
- [HistDiT: A Structure-Aware Latent Conditional Diffusion Model for High-Fidelity Virtual Staining in Histopathology](https://mlsanity.com/paper/2604.08305/) (2026)
- [Hallucination Detection in Virtually-Stained Histology: A Latent Space Baseline](https://mlsanity.com/paper/2411.15060/) (2024)
- [Adaptive H&E-IHC information fusion staining framework based on feature extra](https://mlsanity.com/paper/2502.20156/) (2025)
- [SCFANet: Style Distribution Constraint Feature Alignment Network For Pathological Staining Translation](https://mlsanity.com/paper/2504.00490/) (2025)
- [IMPLICITSTAINER: Resolution Agnostic Data-Efficient Virtual Staining Using Neural Implicit Functions](https://mlsanity.com/paper/2505.09831/) (2025)
- [Virtual Multiplex Staining for Histological Images using a Marker-wise Conditioned Diffusion Model](https://mlsanity.com/paper/2508.14681/) (2025)
- [Building Trust in Virtual Immunohistochemistry: Automated Assessment of Image Quality](https://mlsanity.com/paper/2511.04615/) (2025)
- [K-Stain: Keypoint-Driven Correspondence for H&E-to-IHC Virtual Staining](https://mlsanity.com/paper/2511.06709/) (2025)

## Abstract (arXiv)

Immunohistochemical (IHC) staining highlights the molecular information critical to diagnostics in tissue samples. However, compared to H&E staining, IHC staining can be much more expensive in terms of both labor and the laboratory equipment required. This motivates recent research that demonstrates that the correlations between the morphological information present in the H&E-stained slides and the molecular information in the IHC-stained slides can be used for H&E-to-IHC stain translation. However, due to a lack of pixel-perfect H&E-IHC groundtruth pairs, most existing methods have resorted to relying on expert annotations. To remedy this situation, we present a new loss function, Adaptive Supervised PatchNCE (ASP), to directly deal with the input to target inconsistencies in a proposed H&E-to-IHC image-to-image translation framework. The ASP loss is built upon a patch-based contrastive learning criterion, named Supervised PatchNCE (SP), and augments it further with weight scheduling to mitigate the negative impact of noisy supervision. Lastly, we introduce the Multi-IHC Stain Translation (MIST) dataset, which contains aligned H&E-IHC patches for 4 different IHC stains critical to breast cancer diagnosis. In our experiment, we demonstrate that our proposed method outperforms existing image-to-image translation methods for stain translation to multiple IHC stains. All of our code and datasets are available at https://github.com/lifangda01/AdaptiveSupervisedPatchNCE.
