Sparse Autoencoders for Expert-Assisted Interpretation of Histopathology Foundation Model Embeddings

Šimon Šmída, Wanda BenesovaarXiv 2026 · arXiv

TL;DR

This paper applies Sparse Autoencoders (SAEs) to histopathology foundation models, successfully decomposing dense, opaque embeddings into sparse, human-interpretable "candidate concepts." By integrating quantitative metrics with a whole-slide visualization workflow, the authors provide a bridge between high-dimensional machine learning representations and the morphological reasoning used by expert pathologists.

What Problem Does This Paper Address?

Foundation models (FMs) like CONCH and UNI have revolutionized computational pathology by providing powerful, general-purpose embeddings for tissue patches. However, these embeddings are "black boxes"—dense vectors where information about cell morphology, tissue architecture, and artifacts is tangled across hundreds of dimensions.

While existing interpretability methods like saliency maps can show where a model is looking, they rarely explain what histological structures are being represented. Pathologists reason using semantic abstractions (e.g., "immune infiltration" or "stromal structure"), and there is a significant gap between these clinical concepts and the raw numerical output of foundation models. This paper aims to bridge that gap by finding a more interpretable basis for these representation spaces.

Methods

The authors employ Sparse Autoencoders (SAEs), a technique gaining traction in the "mechanistic interpretability" community. The goal is to learn an overcomplete dictionary of features that can reconstruct the original dense embeddings using only a small number of active components.

Key technical choices include:

  • Architectures: They compared "Vanilla" SAEs (using an $L_1$ penalty for sparsity) against BatchTopK SAEs, which explicitly constrain sparsity by keeping only the top $k$ activations in a training batch.
  • Foundation Models: The primary analysis was performed on CONCH (a vision-language model), with UNI2-h (a vision-only model) used to ensure the findings weren't specific to one architecture.
  • Interpretability Workflow: The authors proposed a three-pronged approach to evaluate "candidate concepts":
  • Quantitative Characterization: Measuring feature coherence and label enrichment.
  • Top-Activating Patches: Visualizing the image patches that most strongly trigger a specific latent feature.
  • WSI-level Activation Maps: Projecting feature activations back onto Whole-Slide Images (WSIs) to provide spatial context.
Figure 1: Expert-assisted interpretation of histopathology foundation-model embeddings with sparse autoencoders. (A) Sparse representation learning. Dense patch embeddings are decomposed into sparse latent features using a sparse autoencoder. (B) Expert-assisted latent interpretation. Individual latent features are analyzed through complementary forms of evidence, including quantitative characterization, top-activating patches, and WSI-level activation maps. Together these provide evidence for a candidate concept, which can then be assessed and validated by pathology experts.

Datasets

  • NCT-CRC-HE-100K: A dataset of 100,000 H&E stained colorectal cancer tissue patches across nine classes (e.g., adipose, lymphocytes, tumor epithelium). This was used for training and quantitative evaluation.
  • TCGA-COAD: Five whole-slide images from the The Cancer Genome Atlas Colon Adenocarcinoma cohort were used to demonstrate the WSI-level visualization workflow.

Key Insights and Ideas

  • BatchTopK Wins the Tradeoff: BatchTopK SAEs provided a superior reconstruction-sparsity frontier compared to Vanilla $L_1$ models. They achieved higher fidelity (lower error) while maintaining a sparser representation.
  • SAEs vs. PCA/Raw Dimensions: SAE latent features are significantly more "coherent" than raw embedding dimensions or PCA components. While PCA produces dense, orthogonal directions, SAEs recover localized, non-negative features that align much better with specific tissue types.
  • Spatial Context is King: Discussions with pathologists revealed that looking at isolated "top-activating patches" isn't enough. Experts need to see how a feature "deploys" across a whole slide (e.g., seeing if a "lymphocyte" feature actually maps to known regions of immune infiltration) to trust it as a valid biological concept.
  • Candidate vs. Validated Concepts: The authors emphasize that SAE features should be treated as candidate concepts. Just because a feature is mathematically sparse and visually consistent doesn't mean it represents a ground-truth biological process; it requires expert assessment to be "validated."

Key Results

  • High Fidelity: The best BatchTopK model (4096 dimensions, ~65 active features) achieved a validation Normalized Mean Squared Error (NMSE) of 0.0117 and an explained variance of 0.978.
  • Superior Coherence: SAE features achieved a mean coherence (cosine similarity of top patches) of 0.835, nearly double that of raw embedding dimensions (0.427) and PCA components (0.417).
  • Signal Preservation: Despite the extreme sparsity, SAE representations preserved most downstream information. A linear probe trained on SAE latents achieved a macro-F1 of 0.933, very close to the 0.948 achieved by the full, dense CONCH embeddings.
  • Low Dictionary Utilization: Interestingly, only about 16.7% of the learned dictionary features were "alive" (activated at least once) on the NCT-CRC dataset, suggesting the model learns a broad range of features, many of which may be specific to other tissue types or artifacts not present in this specific data.
The reconstruction-sparsity tradeoff, showing BatchTopK forming a better frontier than Vanilla L1.

Limitations and Future Work

The authors acknowledge several limitations:

  • Dataset Scope: The study primarily focused on one main dataset (NCT-CRC). Future work should test if these candidate concepts remain stable across different organs and preparation protocols.
  • Correlational Nature: The current analysis shows that features correlate with concepts, but it doesn't prove they cause the model's behavior. The authors suggest "latent interventions" (manually toggling features) as a path toward causal interpretability.
  • Pathologist Evaluation: While the workflow was motivated by expert feedback, a systematic, large-scale study of how pathologists interact with these tools is still needed.

Summary updated

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.
BibTeX
@misc{smida2026sparse,
  author = {Šimon Šmída and Wanda Benesova},
  title = {{Sparse Autoencoders for Expert-Assisted Interpretation of Histopathology Foundation Model Embeddings}},
  year = {2026},
  eprint = {2610.40905},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.40905},
}
Figure