Manuscript Offprint

arXiv:2610.22756

Input- and Feature-Space Correction for Cross-Hospital IHC Grading

Jongwoon Lee, Jhair Gallardo, Christopher Kanan

Abstract

Pathology foundation models (FMs) are trained predominantly on hematoxylin and eosin (H&E) images but are increasingly used as frozen feature extractors for immunohistochemistry (IHC), where cross-hospital differences can impair grading. However, systematic comparisons of correction methods for cross-hospital IHC grading remain limited. To address this gap, we benchmark label-free transformations applied to input images before frozen-FM encoding and to features after frozen-FM encoding using UNI and Virchow2, three IHC markers, and six directed cross-hospital transfers, yielding 12 settings. Among the evaluated input-space methods, our proposed method FIX achieved the largest macro-F1 improvement over no correction, outperforming well-known stain normalization techniques. Among feature-space methods, a simple feature-wise standardization achieved the best improvement over no correction, outperforming CORAL. Under patient-averaged tile-level evaluation, combining FIX with feature-wise standardization improved macro-F1 and quadratic weighted kappa (QWK) by 0.181 and 0.208, respectively, and reduced ordinal error by 0.209 relative to no correction. These results show that input- and feature-space transformations can provide complementary benefits for cross-hospital IHC grading with frozen pathology FMs.

1 Introduction

IHC visualizes the tissue expression of specific proteins and supports biomarker assessment in precision oncology. HER2 IHC grading, for example, contributes directly to treatment selection [Wolff et al., 2023, Modi et al., 2022]. Although deep learning may improve the accuracy and consistency of IHC assessment [Wu et al., 2023], a model trained at one institution can lose performance at another because of differences in tissue processing, staining protocols, and scanners. These site-specific differences persist in both digital pathology images and their learned representations [Tellez et al., 2019, Vahadane et al., 2016, Howard et al., 2021, Huang et al., 2025, Thiringer et al., 2026].

This problem is particularly relevant to pathology FMs because these models are trained predominantly on H&E images while increasingly used as frozen feature extractors for IHC. Consequently, a classifier trained for IHC grading on frozen-FM embeddings from one institution may encounter substantial input and feature shifts when transferred to another institution. To address this problem, label-free corrections can act at different stages of the pipeline. Input-space methods modify images before FM encoding, where established examples include Reinhard color transfer and Macenko stain normalization [Reinhard et al., 2001, Macenko et al., 2009]. Feature-space methods instead modify the features after FM encoding, including methods such as moment alignment and covariance alignment [Sun et al., 2016, Li et al., 2018]. However, these approaches have been developed and evaluated primarily for H&E images, and their relative performance remains unclear for cross-institutional IHC grading.

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: AI at Scale for Clinical Impact (ASCI): Cancer Pathology Foundation Models.

We address this gap through a controlled comparison of label-free input- and feature-space corrections for cross-institutional IHC grading with frozen pathology FMs. The evaluated input-space methods include Reinhard normalization, Macenko normalization, PCA projection, and our proposed component-wise input correction method that we call FIX. The feature-space methods include mean shift (MS), feature-wise standardization (FS), and CORAL. We evaluate these methods using UNI [Chen et al., 2024] and Virchow2 [Zimmermann et al., 2024] across 3 IHC markers and 6 directed cross-institutional transfers, yielding 12 settings. We also evaluate combinations of input- and feature-space methods to determine whether corrections on opposite sides of the frozen encoder provide complementary benefits.

Our contributions are threefold:

• We provide a controlled comparison of label-free input- and feature-space transformations for cross-institutional IHC grading with frozen pathology FMs.

• We introduce FIX, an input-space transformation based on source-patch PCA basis and component-wise input correction. Among the evaluated standalone input-space methods, FIX achieved the largest mean macro-F1 improvement.

• We show that input- and feature-space transformations can provide complementary benefits, where FIX + FS achieved the highest mean performance among the evaluated combinations.

References (27)