Towards Scalable Context-Aware Single-Cell Spatial Transcriptomics Prediction from Histology Images

Zijun Gao, Chunbin Gu, Jinxi Xiang, Xiangde Luo, Pheng-Ann Heng

TL;DR

CELLO is a new, scalable framework that predicts gene expression at single-cell resolution directly from standard H&E histology images. By utilizing a single forward pass of a pathology foundation model combined with location-specific grid sampling and a distance-decay attention mechanism, CELLO achieves state-of-the-art accuracy while running 14 times faster than previous cell-level methods.

What Problem Does This Paper Address?

Spatial transcriptomics (ST) allows researchers to see which genes are active in specific locations within a tissue, but the technology is expensive and complex. While many researchers use deep learning to predict these gene expression profiles from cheap, ubiquitous H&E-stained histology slides, most existing methods only work at the "spot" level—averaging the signal of dozens of cells into a single data point.

Moving to single-cell resolution is the "holy grail" for digital pathology, but it presents two major technical hurdles:

  1. Scale and Efficiency: Naive approaches that crop out every individual cell for analysis are computationally ruinous when dealing with whole-slide images containing millions of cells.
  2. Context vs. Morphology: Simply looking at a cell in isolation (cropping) removes the vital "microenvironment" context that influences gene expression. Conversely, looking at large patches can blur the distinct morphological features of individual cells.

Methods

The authors introduce CELLO (CELl-Level gene expression prediction from histOlogy), an end-to-end framework designed for efficiency and context-awareness.

  • Single-Pass Feature Extraction: Instead of processing each cell individually, CELLO runs a single Pathology Foundation Model (PFM)—such as Virchow2—over an entire image patch.
  • Grid Sampling: To get features for every cell, the model uses differentiable bilinear interpolation (grid sampling) to extract location-specific features from the PFM’s feature map based on cell centroids. This preserves the geometric relationship between cells and their surroundings.
  • Distance-Decay Cross-Attention: This is the "secret sauce." The model refines each cell's representation by allowing it to "attend" to nearby image tokens. Crucially, they apply a Gaussian distance-decay bias, meaning a cell pays much more attention to its immediate neighbors than to distant tissue, mimicking how biological microenvironments actually work.
The CELLO workflow: from a single PFM pass to context-aware cell embeddings.

Datasets

The study utilizes the HEST-1k dataset, specifically focusing on 52 public pairs of H&E images and Xenium spatial transcriptomics data.

  • Scope: The data spans 12 different organs (including lung, breast, and bowel) and three health conditions (cancer, diseased, and healthy).
  • Scale: The dataset includes approximately 10 million individual cells.
  • Benchmark: The authors established both In-Distribution (ID) and Out-of-Distribution (OOD) test sets to see how well the model generalizes to organs it hasn't seen during training.

Key Insights and Ideas

  • Local Morphology is King: One of the most surprising findings was that adding global context (via the PFM's CLS token) actually degraded performance. Single-cell gene expression is driven by fine-grained, local morphological cues rather than abstract, slide-level semantics.
  • Foundation Models Matter: The choice of the underlying visual encoder is critical. Modern, large-scale PFMs like Virchow2 significantly outperformed older or smaller models, suggesting that the quality of the morphological representation is a primary bottleneck for molecular prediction.
  • Efficiency Enables Discovery: By amortizing the cost of the foundation model pass across all cells in a patch, CELLO makes single-cell inference practical for whole-slide analysis, which often involves millions of cells.

Key Results

CELLO demonstrated significant improvements over existing baselines like DeepSpot2Cell and UNet3+:

  • Accuracy: In the In-Distribution setting, CELLO improved predictive accuracy by 58.5% over DeepSpot2Cell (measured by Pearson Correlation Coefficient on highly variable genes). In the Out-of-Distribution setting, the improvement was even higher at 71.3%.
  • Speed: CELLO achieved a 14.0x average speed-up in inference time compared to DeepSpot2Cell.
  • Qualitative Fidelity: Visualizations show that CELLO produces much sharper and more spatially accurate gene expression maps, successfully recovering the localization of key markers like KRT8 and DES.
Visual comparison of predicted gene expression maps across different tissues.

Limitations and Future Work

While CELLO is a major step forward, the authors note a few key limitations:

  • Segmentation Dependency: The model requires cell centroids as input, meaning it still depends on an upstream cell segmentation tool. Errors in segmentation can propagate to the gene expression predictions.
  • Data Diversity: While 12 organs were tested, some OOD organs were represented by only a single slide. Future work will involve collecting more paired data to improve cross-organ generalization.
  • Masking: The current model avoids using precise cell boundary masks to remain efficient; however, incorporating refined cell shapes without losing the speed advantage remains an open challenge.

Summary updated

BibTeX
@inproceedings{gao2026towards,
  author = {Zijun Gao and Chunbin Gu and Jinxi Xiang and Xiangde Luo and Pheng-Ann Heng},
  title = {{Towards Scalable Context-Aware Single-Cell Spatial Transcriptomics Prediction from Histology Images}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ZvH7ZrvJgK},
}
Figure