Sparse Autoencoders for Expert-Assisted Interpretation of Histopathology Foundation Model Embeddings
Organizations: Czech Technical University, Prague, Czech Republic
Abstract
Histopathology foundation models learn rich embedding representations, but their internal structure remains difficult to inspect. Concept-level interpretability is particularly relevant in computational pathology because pathologists reason through recurring morphological and tissue-level patterns, including tissue architecture, cellular morphology, staining variation, and artifacts. In this work, we investigate whether sparse autoencoders (SAEs) can decompose embeddings from histopathology foundation models into sparse latent features suitable for expert-assisted interpretation. We train vanilla and Batch-TopK SAE variants on NCT-CRC embeddings, using CONCH as the primary foundation model and UNI2-h as an additional robustness evaluation, and characterize the resulting latent features through reconstruction fidelity, sparsity, coherence, label enrichment, and downstream class-signal preservation. The learned sparse representations preserve most downstream tissue-class information, and their latent features retrieve more coherent and label-concentrated patch groups than raw embedding dimensions or PCA components. Discussions with pathology experts further motivated a WSI-level latent visualization workflow that places feature activations into larger tissue context. Overall, the additional UNI2-h evaluation suggests that the observed behavior is not specific to CONCH, supporting the use of sparse autoencoders for expert-assisted analysis of histopathology foundation-model embeddings, while emphasizing that latent features should be treated as candidate concepts requiring pathological assessment rather than automatically validated histopathological concepts.
Figures & tables
| Backbone | NMSE | EV | Measured | Alive (%) | ||
|---|---|---|---|---|---|---|
| CONCH | 512 | 4,096 | ||||
| UNI2-h | 1,536 | 12,288 |
| Backbone | Coherence | Entropy | Raw F1 | Recon. F1 | Latent F1 |
|---|---|---|---|---|---|
| CONCH | 0.8348 | 0.0898 | 0.9497 | 0.9448 | 0.9358 |
| UNI2-h | 0.6052 | 0.1010 | 0.9553 | 0.9573 | 0.9542 |
Appendix figures & tables15 assets
Supplementary material from the paper’s appendix.
Appendix
| SAE | Sparsity | Seed | NMSE | EV | Cosine | measured | Alive % | |
|---|---|---|---|---|---|---|---|---|
| BatchTopK | 1024 | 0 | 0.1073 | 0.800 | 0.946 | 8.74 | 10.4 | |
| BatchTopK | 1024 | 0 | 0.0141 | 0.974 | 0.993 | 64.00 | 25.0 | |
| BatchTopK | 2048 | 0 | 0.1041 | 0.806 | 0.947 | 9.00 | 6.3 | |
| BatchTopK | 2048 | 0 | 0.0612 | 0.886 | 0.969 | 16.96 | 9.3 | |
| BatchTopK | 2048 | 0 | 0.0259 | 0.952 | 0.987 | 33.60 | 11.3 | |
| BatchTopK | 2048 | 0 | 0.0124 | 0.977 | 0.994 | 65.40 | 17.3 |
| Configuration | NMSE | EV | measured | Val. alive fraction |
|---|---|---|---|---|
| 0.0252 0.0003 | 0.9531 0.0005 | 33.93 0.17 | 0.072 0.005 | |
| 0.0117 0.0001 | 0.9782 0.0003 | 65.72 0.26 | 0.131 0.005 |
| NMSE | EV | measured | active | coherence | entropy | |
|---|---|---|---|---|---|---|
| 1024 | 0.0141 | 0.9736 | 64.00 | 329 / 1024 (32.1%) | 0.833 | 0.101 |
| 2048 | 0.0124 | 0.9770 | 65.40 | 450 / 2048 (22.0%) | 0.828 | 0.101 |
| 4096 | 0.0115 | 0.9785 | 66.03 | 685 / 4096 (16.7%) | 0.835 | 0.090 |
| Summary over active features | Raw entropy | Normalized entropy | Class-frequency normalized |
|---|---|---|---|
| Median | 0.256 | 0.116 | 0.122 |
| Mean | 0.550 | 0.250 | 0.252 |
| 25th percentile | 0.000 | 0.000 | 0.000 |
| 75th percentile | 0.807 | 0.367 | 0.381 |
| Method | Metric | Top-16 | Top-32 | Top-64 |
|---|---|---|---|---|
| SAE | Coherence | 0.842 | 0.835 | 0.822 |
| Raw dimensions | Coherence | 0.422 | 0.427 | 0.430 |
| PCA | Coherence | 0.421 | 0.417 | 0.414 |
| Random | Coherence | 0.419 | 0.425 | 0.429 |
| SAE | Entropy | 0.081 | 0.090 | 0.103 |
| Raw dimensions | Entropy | 0.568 | 0.596 | 0.622 |
| Method | Union coherence | Best-tail coherence | Union entropy | Best-tail entropy |
|---|---|---|---|---|
| SAE feature | 0.835 | 0.835 | 0.090 | 0.090 |
| Raw CONCH dim | 0.427 | 0.749 | 0.596 | 0.219 |
| PCA component | 0.417 | 0.473 | 0.819 | 0.711 |
| Random direction | 0.425 | 0.748 | 0.608 | 0.223 |
| per class | SAE/random features | Raw features | SAE selected | Raw selected | Random SAE subset |
|---|---|---|---|---|---|
| 1 | 9 | 9 | 0.858 0.003 | 0.873 0.002 | 0.300 0.111 |
| 3 | 27 | 27 | 0.921 0.002 | 0.927 0.002 | 0.615 0.084 |
| 5 | 45 | 45 | 0.925 0.001 | 0.932 0.002 | 0.738 0.064 |
| 10 | 90 | 89 | 0.936 0.001 | 0.936 0.002 | 0.875 0.029 |
| Parameter | Value |
|---|---|
| WSI source | 5 TCGA-COAD SVS slides |
| Selected SAE | BatchTopK, , target , seed 1 |
| Embedding call | CONCH image encoder, unnormalized output |
| Analysis resolution | /px |
| Encoded patch size | pixels |
| Native WSI footprint / stride | 444–456 px / 444–456 px |
| Method | Coherence | Entropy |
|---|---|---|
| SAE feature | 0.605 | 0.101 |
| Raw UNI2-h dim | 0.497 | 0.232 |
| Random direction | 0.485 | 0.249 |
| PCA component | 0.290 | 0.571 |
Explainable Medical Image Analysis
Explainable Medical Image Analysis develops methods that make medical image predictions understandable, verifiable, and useful for clinical review.
See all 266 papers