[KongchangAI]
· 2 min read· 1,371 words

BioScore: How a Gene-Informed Benchmark Evaluates the Biological Representations of Pathology Foundation Models

BioScore: How a Gene-Informed Benchmark Evaluates the Biological Representations of Pathology Foundation Models

BioScore uses spatial transcriptomics as a reference to unsupervisedly evaluate whether pathology models understand cell identity.

BioScore is a benchmark for pathology foundation models that uses spatial transcriptomics as a reference to directly measure how well image encoders capture cell identity, beyond task metrics like classification and retrieval. It uses a sparse autoencoder to decompose patch embeddings into clustered sparse features and aligns them with 52 marker-gene-defined cell identities. In experiments with 8 pathology models and 3 natural image models, all pathology models scored higher and split into three tiers internally. The method requires no labels and provides per-identity strengths and blind spots for model selection.

Pathology foundation models are typically evaluated through downstream tasks such as classification and retrieval, but these metrics only reflect whether a model is "usable"—they cannot answer a more fundamental question: does the model truly understand the biology within tissue? The recently proposed BioScore benchmark attempts to fill this gap—it uses spatial transcriptomics data from the same tissue as a reference to quantify how well an image encoder captures cell identity.

BioScore benchmark overview

Why gene-informed evaluation is needed

Most comparisons of existing pathology foundation models remain at the task level. A model with high accuracy on tumor classification may simply have learned to distinguish morphological differences, without necessarily understanding cell types, states, or spatial organization. This "black-box" evaluation leaves model selection without biological grounding and makes it difficult to provide a reliable foundation for subsequent biological discovery.

The starting point of BioScore is straightforward: if an encoder has truly learned biology from images, its features should correspond to cell identities defined by gene expression. Spatial transcriptomics technology happens to provide exactly this kind of paired data—on the same tissue section, there are both morphological images and gene expression profiles for each location.

Spatial transcriptomics refers to a class of methods that measure gene expression while preserving the spatial coordinates of tissue. Traditional transcriptomics (such as bulk RNA sequencing) homogenizes an entire tissue block, losing the information of "which cell is at which location"; spatial transcriptomics, by contrast, places capture spots with positional barcodes on a section (such as the spot array in 10x Visium or the beads in Slide-seq), so that the expression profile of each capture spot can be mapped back to a region on the original image. In this way, the same tissue section simultaneously produces morphological images and per-location expression profiles, and the two are naturally registered. For pathology AI, this means that "image patches" can be paired one-to-one with "the cellular composition at that location as defined by gene expression," thereby constructing a reference signal that requires no manual annotation yet carries true biological labels. Such data currently have limited throughput and relatively high cost, and each capture spot typically contains mixed expression from multiple cells; therefore, evaluation usually aligns by feature patterns or cell identity proportions rather than by single-cell-level exact matching.

How BioScore works

Decomposing features with a sparse autoencoder

The first step of BioScore is to feed the patch embeddings output by the encoder into a sparse autoencoder and decompose them into a set of sparse features. This step is fully unsupervised and requires no cell type labels. These sparse features are then clustered into a fixed number of groups, each representing a potential "feature pattern."

A sparse autoencoder (SAE) is an unsupervised representation decomposition tool: the encoder maps input embeddings to a high-dimensional hidden layer that is forced to be sparse (most units are zero or close to zero), and the decoder reconstructs the original input from that hidden layer. The sparsity constraint forces the model to explain each input using a small combination of "active units," thereby decomposing entangled high-dimensional embeddings into a set of more interpretable, more monosemantic feature directions. In BioScore, the role of the SAE is precisely to decompose the patch embeddings output by the pathology encoder into a number of sparse features, each roughly corresponding to some recurring morphological/biological pattern. Compared with directly using k-means or PCA, SAE allows features to activate in overlapping ways, which better matches the reality that multiple cell states coexist in tissue; its unsupervised nature also ensures that subsequent alignment with cell identities is not "using labels to infer labels," making the evaluation results more convincing.

Aligning with cell identities

The study defined 52 cell identities identified by marker genes. For each identity, BioScore measures which feature group most specifically follows the expression changes of that identity on the tissue section. Because the autoencoder training is unsupervised, if a certain group matches a certain cell identity closely, it indicates that the encoder has represented that biological identity from images alone.

This approach has several practical advantages: it requires no labels, the reference comes from the data itself, and it can produce scores even when the number of sections is very small. More importantly, it is consistent with the ranking results of supervised probes while avoiding annotation costs.

Experimental results: pathology models lead across the board, but internal stratification is clear

The study evaluated 8 pathology foundation models and 3 natural image models. The results show a clear boundary: all pathology models have higher BioScore than all natural image models (0.299–0.371 vs. 0.214–0.232). This indicates that models pretrained on pathology data indeed learn biological representation capabilities that natural image models lack.

Within the pathology models, paired tests divided the 8 models into three tiers. This means that although they were all trained on pathology data, there are substantial differences in their ability to capture cell identities. BioScore's per-identity decomposition can further indicate which cell identities each encoder excels at or misses, providing a more fine-grained basis for model selection.

Implications for pathology AI developers

The value of BioScore lies in shifting evaluation from "task performance" back to "biological understanding." For developers, this means:

  • Model selection can be more targeted. If a downstream task involves specific cell types, per-identity scores can help determine which encoder is more suitable.
  • The unsupervised nature lowers the barrier to evaluation. In scenarios without annotated data, encoders can still be compared in a biologically meaningful way.
  • The introduction of spatial transcriptomics references provides a scalable new paradigm for benchmarking pathology foundation models.

Of course, BioScore currently relies on spatial transcriptomics data, and the cost of acquiring such data remains relatively high. But the direction it points to is clear: evaluation of pathology foundation models needs gene-level references, not just task metrics.

Conclusion

BioScore is not a benchmark that replaces downstream tasks, but a complementary perspective. It reminds us that the "goodness" of a pathology foundation model is reflected not only in classification accuracy but also in whether it reads cell identity from images. As spatial transcriptomics data accumulate, this gene-informed evaluation is expected to become a routine part of pathology model development.

Background

Pathology foundation models refer to large vision encoders pretrained in a self-supervised manner (such as DINO, MAE, or contrastive learning) on massive histopathology whole-slide images or patches; representative works include UNI, CONCH, Virchow, and Prov-GigaPath. Compared with natural image foundation models (CLIP, DINOv2, etc.), their pretraining corpora have strong domain-specific characteristics: staining variation, magnification changes, high repetitiveness of tissue structures, and the absence of semantic categories like those in natural images. It is precisely because the pretraining data are consistent with the target domain that pathology foundation models may encode biological information such as cell types and tissue architecture, which also explains the result in the BioScore experiments that pathology models systematically outperform natural image models. It should be noted that differences in pretraining data scale, source institutions of sections, and self-supervised objectives can all affect an encoder's sensitivity to fine-grained cell identities, which is the main possible source of the tiered differentiation among models that are all pathology models.

One-line Summary

BioScore uses spatial transcriptomics as a reference to unsupervisedly evaluate whether pathology models understand cell identity.

Paragraph Summary

BioScore is an evaluation benchmark for pathology foundation models that uses spatial transcriptomics data as a reference, aiming to go beyond task metrics such as classification and retrieval and directly measure an image encoder's ability to capture cell identity. Its pipeline is as follows: a sparse autoencoder unsupervisedly decomposes patch embeddings into sparse features and clusters them into groups, which are then aligned with 52 cell identities defined by marker genes to see which feature group most specifically follows the expression changes of that identity. The experiments evaluate 8 pathology foundation models and 3 natural image models; all pathology models score higher (0.299–0.371) than natural image models (0.214–0.232), and the pathology models can be divided into three tiers internally. The method requires no labels, can still produce rankings consistent with supervised probes when sections are few, and can identify each encoder's strengths and blind spots per identity, providing a biological basis for model selection.

#BioScore#pathology foundation models#spatial transcriptomics#cell identity#sparse autoencoder#benchmark
Share:

Related articles