Preserving DEG Rankings for Gene Discovery in Histology-Based Spatial Gene Expression Prediction

Kaito Shiku, Kazuya Nishimura, Yasuhiro Kojima, Ryoma Bise

TL;DR

This paper introduces IDER (Image-based Differential Expression Ranking), a new framework for predicting spatial gene expression from histology images that prioritizes ranking genes by their biological relevance rather than just reconstructing spatial patterns. By optimizing for the discovery of differentially expressed genes (DEGs), the authors achieve significantly better alignment with downstream biological analysis and pathway identification compared to standard reconstruction-based models.

What Problem Does This Paper Address?

Predicting spatial transcriptomics (ST) from routine H&E histology images is a major goal in computational pathology, as it could bring molecular insights to massive, image-only clinical cohorts. However, current models suffer from a "misalignment of objectives."

Standard models are trained to minimize Mean Squared Error (MSE) or maximize Pearson Correlation (PCC) for each gene individually. This focuses on the spatial axis—making the predicted map of Gene A look like the real map of Gene A. But in practice, biologists use ST for gene discovery: they want to know which genes are most different between tissue regions (e.g., tumor vs. stroma). If a model predicts the spatial patterns well but fails to rank the most important marker genes at the top of the list, it loses its utility for discovery. The authors argue we need to evaluate and train models along the gene axis.

Methods

The authors propose a shift from spatial reconstruction to differential expression ranking.

  1. Task Definition (IDER): Instead of comparing raw expression values, IDER compares the rankings of genes induced by differential expression statistics (like the Mann-Whitney U statistic) between two tissue regions.
  2. Differentiable U-Statistic: Since ranking and sorting are not naturally differentiable, the authors developed a differentiable surrogate for the Mann-Whitney U statistic using a temperature-scaled sigmoid function. This allows the model to be trained directly to preserve gene rankings.
  3. Morphology-Derived Proxy Contrasts: To train the model without needing expensive manual annotations from pathologists, the authors use K-means clustering on features from a pathology foundation model (CONCH). These clusters serve as "proxy regions" that represent distinct morphological areas, forcing the model to learn which genes characterize different tissue textures.
  4. Hybrid Loss: The final objective function combines the new DEG-ranking loss with a lightweight spatial consistency regularizer to ensure the predicted maps still look physically plausible.
Figure 1: (a) Conventional evaluation measures spatial-profile agreement within each gene across spots. (b) Image-based Differential Expression Ranking (IDER) ranks genes by contrast statistics for a biological or morphology-defined comparison and evaluates whether predicted profiles preserve this ranked list of DEG candidates.

Datasets

The researchers evaluated their method on two major public ST resources:

  • HEST-1K: A large-scale dataset where they focused on Bowel, Ovary, and Lymph Node samples. This was used for "cluster-based" experiments where regions were defined by visual similarity.
  • Her2st: A breast cancer dataset containing expert-provided region annotations (e.g., invasive cancer, immune infiltrate). This served as the "gold standard" to see if a model trained on automated clusters could generalize to real pathological regions.

Key Insights and Ideas

  • Ranking > Reconstruction: For downstream biological discovery, getting the relative importance of genes right is more critical than getting the absolute expression values perfect.
  • The Power of Proxy Labels: You don't need a pathologist to train a discovery-oriented model. Clustering visual features provides a rich enough signal for the model to learn which genes are associated with specific tissue morphologies.
  • Generalization Across Scales: Interestingly, a model trained to distinguish between 10 morphological clusters generalizes remarkably well when asked to distinguish between just 2 or 4 regions (as shown in Figure 2/4), suggesting it captures fundamental image-gene relationships.
  • Plug-and-Play Utility: The IDER objective isn't a new architecture; it's a new way to train any architecture. The authors showed it could be added to existing models like ST-Net or TRIPLEX to instantly boost their discovery performance.

Key Results

The IDER approach consistently outperformed six conventional baselines (including MSE, PCC, and Poisson-based models) across multiple metrics:

  • Ranking Accuracy: On the Her2st dataset, the average nDCG@200 (a metric for ranking quality) jumped from 0.084 (MSE) to 0.247 (Ours).
  • Pathway Discovery: The method achieved significantly higher Jaccard overlap with ground-truth biological pathways. In Lymph Node samples, the overlap score reached 0.571, compared to 0.382 for standard MSE.
  • Robustness: As seen in Figure 4, the model maintained superior performance across different "granularities" of tissue grouping, proving it isn't just overfitting to a specific number of clusters.
Table 1: Comparison of DEG ranking performance in the cluster-based DEG setting against methods optimized with conventional objective functions.

Limitations and Future Work

While IDER excels at ranking, the authors note it is not always the top performer in traditional per-gene spatial PCC (though it remains competitive). This highlights a trade-off: you can optimize for a "pretty map" or a "useful list," and the two don't always perfectly overlap.

Future work could explore more complex contrast definitions beyond simple "one-versus-rest" comparisons and investigate how this ranking-aware training might help in identifying rare cell types that are often smoothed over by standard reconstruction losses.

Summary updated

BibTeX
@inproceedings{shiku2026preserving,
  author = {Kaito Shiku and Kazuya Nishimura and Yasuhiro Kojima and Ryoma Bise},
  title = {{Preserving DEG Rankings for Gene Discovery in Histology-Based Spatial Gene Expression Prediction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Xfv1PJvBIG},
}
Figure