StainNFT: Curriculum-Gated Multi-Reward Post-Training for Pathology-Faithful Virtual Staining
shurong yang, Dong Wei, Qiong Peng, Xian Wu, Yefeng Zheng, Liansheng Wang
NeurIPS page · OpenReview · Open on the map
Category: Graphs, OOD Detection & Medical Imaging › Virtual Staining and Molecular Mapping · Type: new method · Keywords: virtual IHC staining, reinforcement learning post-training, curriculum reward gating, fine-grained pathology supervision, expression-aware reweighting, multi-scale block supervision
Areas: Computer Vision & 3D › Medical Visual Computing › Pathology Foundation Models
Summary
StainNFT introduces a curriculum-gated multi-reward post-training framework that improves pathological fidelity in virtual IHC staining by gating fine-grained supervision based on per-sample DAB mask IoU, adding expression-aware reweighting, multi-scale block supervision, and an implicit pathology foundation model reward.
Explained to a 5-year-old
We want to turn simple microscope pictures (H&E) into colorful medical pictures (IHC) that show important proteins. Existing methods are not good at showing tiny details, and using rewards can break the pictures. This paper creates a new way to teach the computer using a step-by-step reward and extra tricks to keep the pictures accurate. The extra tricks include weighting important parts, looking at different sizes, and using a special reward from a pathology model. The result is better pictures that help doctors.
Explained to a 5-year-old, longer
Imagine we have a cheap, black-and-white picture of a tissue slide called H&E. Doctors also need color pictures that show where certain proteins are, called IHC. Making IHC by real chemistry is slow and expensive. So researchers try to create IHC pictures using computers. The computer learns by looking at many examples, but it often misses tiny important spots. When we try to teach the computer using rewards, it can get confused and produce weird pictures. This paper comes up with a smarter teaching plan that only gives rewards when the picture looks good. It also pays more attention to parts of the image that are important. It looks at the image at different sizes to catch details everywhere. It also uses a hidden reward that comes from a model that already knows about pathology. All these ideas together make the computer produce clearer, more accurate medical pictures that doctors can trust.
For a technical reader
The system uses flow-matching based reinforcement learning to refine a pre-trained model for H&E-to-IHC synthesis. A curriculum reward gates supervision based on per-sample DAB mask overlap, while expression-aware reweighting and multi-scale block supervision improve fine-grained detail. An implicit semantic reward from a pathology foundation model further aligns outputs with clinical fidelity. Experiments on seven benchmarks show consistent gains in both perceptual quality and pathology accuracy.
Problem
Virtual staining methods based on supervised fine-tuning often fail to capture fine-grained pathological details because sparse positive regions receive weak gradients. Reinforcement learning approaches that rely on outcome rewards can be corrupted by reward hacking, leading to degraded image quality.
Method
The approach employs a flow-matching based reinforcement learning post-training framework that uses a curriculum reward strategy to gate fine-grained supervision based on per-sample overlap metrics. It incorporates expression-aware reweighting, multi-scale block supervision, and an implicit semantic reward derived from pathology foundation model priors.
Results
The approach achieves consistent improvements over existing methods on seven benchmarks, delivering higher perceptual quality and better pathological fidelity for H&E-to-IHC virtual staining.
Contributions
It introduces a curriculum-gated multi-reward strategy that controls fine-grained supervision, expression-aware reweighting, multi-scale block supervision, and an implicit pathology semantic reward derived from foundation model priors. These components collectively enhance fine-grained pathological fidelity in virtual staining.
Practical relevance
The released code and models enable clinics to adopt fast, pathology-faithful virtual IHC staining without costly chemical procedures.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction