EXPOSE: Explainable and Domain-Robust Embeddings from Pathology Vision Foundation Models using Sparse Autoencoders
Organizations: Institute of Medical Systems Bioinformatics, Center for Biomedical AI (bAIome), Center for Molecular Neurobiology Hamburg (ZMNH), Hamburg Center for Translational Immunology (HCTI), University Medical Center Hamburg-Eppendorf, Hamburg, Germany · Institute of Pathology, University Medical Center Hamburg-Eppendorf, Hamburg, Germany · Institute of Computational Systems Biology, University of Hamburg, Hamburg, Germany · German Center for Child and Adolescent Health (DZKJ), Hamburg, Germany · III. Department of Medicine, University Medical Center Hamburg-Eppendorf, Hamburg, Germany
Abstract
Vision Foundation Models (VFMs) are widely used in computational pathology but remain sensitive to domain shifts arising from variations in staining, tissue preparation, and scanner hardware. A key limitation is that VFM embeddings entangle biological with domain-specific information, hindering cross-domain generalization. We propose Explainable Probing of Cross-Domain Sparse Embeddings (EXPOSE), a framework that uses Sparse Autoencoders (SAEs) as an explainable bottleneck to identify and suppress domain-specific components in VFM embeddings. We train a sparse representation of VFM features, use a linear classifier to identify domain-specific latent dimensions, and mask these features prior to downstream relapse prediction without retraining the backbone model. Experiments on a large prostate cancer dataset with multiple acquisition domains show that SAE features capture both domain- and task-specific information, which are partially disentangled in the latent space. Removing domain-specific features improves cross-domain performance and increases embedding robustness as measured by the Domain Robustness Index (DoRI). Code is available at https://github.com/imsb-uke/expose .
Figures & tables
| Dataset | Base | SAE | SAE | SAE |
|---|---|---|---|---|
| first | 68.20 0.26 | 69.20 0.41 | 69.39 0.35 | 69.23 0.08 |
| scanner | 68.58 0.31 | 69.44 0.39 | 69.75 0.17 | 69.13 0.16 |
| spot | 65.38 0.56 | 65.53 0.76 | 65.83 0.71 | 67.74 0.11 |
| thin | 60.48 1.47 | 57.78 0.48 | 57.80 0.47 | 58.63 0.15 |
| thick | 58.17 0.74 | 58.40 1.48 | 58.44 0.69 | 59.62 0.17 |
| long | 61.67 1.09 | 61.79 1.09 | 62.04 0.58 | 62.67 0.06 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Images | Tissue Core | Slicing Thickness | Staining Time in min (H/E) | Scanner | Mag. |
|---|---|---|---|---|---|---|
| first | 8141 | 1 | 2.5 m | 4:00 / 1:20 | Aperio | 40x |
| scanner | 8141 | 1 | 2.5 m | 4:00 / 1:20 | 3DHistech | 80x |
| spot | 8181 | 2 | 2.5 m | 4:00 / 1:20 | Aperio | 40x |
| thin | 1951 | 1 | 1 m | 4:00 / 1:20 | Aperio | 40x |
| thick | 1950 | 1 | 10 m | 4:00 / 1:20 | Aperio | 40x |
| long | 1951 | 1 | 2.5 m | 40:00 / 10:00 | Aperio | 40x |