hescape-eval
A Large-Scale Benchmark of Cross-Modal Learning for Histology and Gene Expression in Spatial Transcriptomics — Gindra et al. (2025) (arXiv:2508.01490, 2025)
What this evaluates
Evaluates cross-modal alignment between histology images and spatial gene expression profiles, and tests downstream capabilities in gene mutation classification and direct gene expression prediction from whole-slide images.
Datasets
Metrics
Recall@5 (primary) — range: [0, 1]
- Fraction of relevant gene expression profiles retrieved within the top 5 ranked predictions. Calculated as |retrieved_top5 ∩ relevant| / |relevant|.
F1 score — range: [0, 1]
- Harmonic mean of precision and recall for binary mutation status classification. Computed per biomarker and averaged or reported per class.
Pearson correlation coefficient (PCC) — range: [-1, 1]
- Linear correlation between predicted and actual continuous gene expression values across the test set.
mean squared error (MSE) — range: [0, ∞)
- Average of squared differences between predicted and actual gene expression values.
Input / output format
Input: Histology image patches or whole-slide images paired with spatial gene expression profiles (retrieval); histology images alone (mutation/expression prediction).
Output: Ranked list of gene profiles (retrieval); binary mutation status labels (classification); continuous gene expression values (regression).
Scoring recipe
def recall_at_5(retrieved, relevant, k=5):
return len(set(retrieved[:k]) & set(relevant)) / len(relevant)
def f1_score(y_true, y_pred):
tp = sum((y_true == 1) & (y_pred == 1))
fp = sum((y_true == 0) & (y_pred == 1))
fn = sum((y_true == 1) & (y_pred == 0))
prec = tp / (tp + fp) if (tp + fp) > 0 else 0
rec = tp / (tp + fn) if (tp + fn) > 0 else 0
return 2 * prec * rec / (prec + rec) if (prec + rec) > 0 else 0
def pcc_mse(y_true, y_pred):
pcc = np.corrcoef(y_true, y_pred)[0, 1]
mse = np.mean((y_true - y_pred) ** 2)
return pcc, mse
Common pitfalls
- Batch effects in gene expression data can skew cross-modal alignment and degrade downstream prediction performance.
- Contrastive pretraining may discard morphological features crucial for unimodal tasks like gene expression prediction.
- Performance gains are highly biomarker-specific and may not generalize across all genomic abnormalities.
- Limited spatial transcriptomics samples (e.g., only one Xenium sample per panel for LUAD) restrict pan-cancer generalization claims.
Evidence (verbatim from paper)
Our large-scale pretraining benchmark demonstrates that the gene encoder DRVI emerges as the key determinant of performance improvement across all tissue panels and both image-to-gene (I2G) and gene-to-image (G2I) metrics ([Tab. 2] and Supplementary[Tab. 7]-[Tab. 8]). Notably, DRVI paired with the image encoders Gigapath, H0mini, and UNI consistently achieves the top-performing Recall@5 Scores across datasets.
Citation
@misc{gindra2025hescape,
title={A Large-Scale Benchmark of Cross-Modal Learning for Histology and Gene Expression in Spatial Transcriptomics},
author={Gindra et al. (2025)},
year={2025},
note={arXiv:2508.01490}
}
1---2name: hescape-eval3description: Evaluates cross-modal alignment between histology images and spatial gene expression profiles, and tests downstream capabilities in gene mutation classification and direct gene expression prediction from whole-slide images. Use when the user wants to benchmark on 5K, Multi, ImmOnc, Colon, Breast, Lung, or asks about evaluating this task. Reports Recall@5.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/hescape-eval6 skill_kind: dataset_eval7 source_arxiv: 2508.014908 bibtex_key: gindra2025hescape9 confidence: high10---1112# hescape-eval1314> A Large-Scale Benchmark of Cross-Modal Learning for Histology and Gene Expression in Spatial Transcriptomics — Gindra et al. (2025) (arXiv:2508.01490, 2025)1516## What this evaluates1718Evaluates cross-modal alignment between histology images and spatial gene expression profiles, and tests downstream capabilities in gene mutation classification and direct gene expression prediction from whole-slide images.1920## Datasets2122- **5K** — total ?; splits: train (-1), test (-1); repo https://github.com/peng-lab/hescape23- **Multi** — total ?; splits: train (-1), test (-1); repo https://github.com/peng-lab/hescape24- **ImmOnc** — total ?; splits: train (-1), test (-1); repo https://github.com/peng-lab/hescape25- **Colon** — total ?; splits: train (-1), test (-1); repo https://github.com/peng-lab/hescape26- **Breast** — total ?; splits: train (-1), test (-1); repo https://github.com/peng-lab/hescape27- **Lung** — total ?; splits: train (-1), test (-1); repo https://github.com/peng-lab/hescape2829## Metrics3031- `Recall@5` **(primary)** — range: [0, 1]32 - Fraction of relevant gene expression profiles retrieved within the top 5 ranked predictions. Calculated as |retrieved_top5 ∩ relevant| / |relevant|.33- `F1 score` — range: [0, 1]34 - Harmonic mean of precision and recall for binary mutation status classification. Computed per biomarker and averaged or reported per class.35- `Pearson correlation coefficient (PCC)` — range: [-1, 1]36 - Linear correlation between predicted and actual continuous gene expression values across the test set.37- `mean squared error (MSE)` — range: [0, ∞)38 - Average of squared differences between predicted and actual gene expression values.3940## Input / output format4142**Input**: Histology image patches or whole-slide images paired with spatial gene expression profiles (retrieval); histology images alone (mutation/expression prediction).4344**Output**: Ranked list of gene profiles (retrieval); binary mutation status labels (classification); continuous gene expression values (regression).4546## Scoring recipe4748```python49def recall_at_5(retrieved, relevant, k=5):50 return len(set(retrieved[:k]) & set(relevant)) / len(relevant)5152def f1_score(y_true, y_pred):53 tp = sum((y_true == 1) & (y_pred == 1))54 fp = sum((y_true == 0) & (y_pred == 1))55 fn = sum((y_true == 1) & (y_pred == 0))56 prec = tp / (tp + fp) if (tp + fp) > 0 else 057 rec = tp / (tp + fn) if (tp + fn) > 0 else 058 return 2 * prec * rec / (prec + rec) if (prec + rec) > 0 else 05960def pcc_mse(y_true, y_pred):61 pcc = np.corrcoef(y_true, y_pred)[0, 1]62 mse = np.mean((y_true - y_pred) ** 2)63 return pcc, mse64```6566## Common pitfalls6768- Batch effects in gene expression data can skew cross-modal alignment and degrade downstream prediction performance.69- Contrastive pretraining may discard morphological features crucial for unimodal tasks like gene expression prediction.70- Performance gains are highly biomarker-specific and may not generalize across all genomic abnormalities.71- Limited spatial transcriptomics samples (e.g., only one Xenium sample per panel for LUAD) restrict pan-cancer generalization claims.7273## Evidence (verbatim from paper)7475> Our large-scale pretraining benchmark demonstrates that the gene encoder DRVI emerges as the key determinant of performance improvement across all tissue panels and both image-to-gene (I2G) and gene-to-image (G2I) metrics ([Tab. 2] and Supplementary[Tab. 7]-[Tab. 8]). Notably, DRVI paired with the image encoders Gigapath, H0mini, and UNI consistently achieves the top-performing Recall@5 Scores across datasets.7677## Citation7879```bibtex80@misc{gindra2025hescape,81 title={A Large-Scale Benchmark of Cross-Modal Learning for Histology and Gene Expression in Spatial Transcriptomics},82 author={Gindra et al. (2025)},83 year={2025},84 note={arXiv:2508.01490}85}86```8788- arXiv: 2508.01490