FewRef-5: Fixed-Reference Test-Time Adaptation for Virtual Staining
Abstract
Virtual staining synthesizes special-stain images from routine hematoxylin and eosin (H&E), extending the information available from an existing digital slide. However, a fixed inference rule can leave available real target-stain references unused, limiting query-specific correction of stain appearance at deployment. Test-time adaptation (TTA) provides a mechanism for this reference-guided, query-specific refinement without retraining the generator. We therefore propose FewRef-5, a reference-assisted TTA method for virtual staining built on StainPromptInversion. We extract tissue-masked optical-density means and standard deviations from five real Masson's trichrome (MAS) training patches and average them into a fixed stain target. A scheduled statistic-matching loss introduces this target into per-query visual-prompt optimization alongside our edge/Gram consistency penalties and the inherited reconstruction objectives. The target remains unchanged across queries, avoiding recursive dependence on earlier generated outputs while the pretrained generator stays fixed. On recorded H&E-to-MAS outputs for 1,989 queries, FewRef-5 reduces target-set FID from 183.201 to 166.904 and increases source-referenced SSIM from 0.92787 to 0.94996 relative to our Edge+Gram variant. Source PSNR and MS-SSIM decrease, showing an endpoint trade-off rather than uniformly better reconstruction.
Create a lesson
Metadata
- Comments
- 11 pages, 5 figures
Related papers
Beyond Static Semantics: Instance-Adaptive Vision-Language Alignment for Building Damage Assessment
Shared title terminologycs.CVHang Yin, Jiepan Li, Hongruixuan Chen et al.
Progressive Reliable Supervision for Black-Box Universal Domain Adaptation
Shared title terminologycs.CVJing Li, Zhe Zhang, Huateng Sun et al.
STAR: Counterfactual Dual-World Rollouts and Spatial Target Adaptive Reconstruction for Visual On-Policy Distillation
Shared title terminologycs.CVYi Zou, Zhuang Yan, Yudong Zhang et al.
MAGPIE: Agentic Multi-Reference Image Generation via Executable Scene Construction
Shared title terminologycs.CVYifan Dai, Daili Hua, Bohan Zeng et al.
Which Parameters to Update? An Instance-Specific Adaptation Framework for Real-World Pansharpening
Shared title terminologycs.CVJin-Liang Xiao, Liang-Jian Deng, Yu-Xuan Zhang et al.
Adaptive and Detection-Aware Super-Resolution for Small Object Detection
Shared title terminologycs.CVCezica-Elena Luncanu, Stelian Spînu