SToFM: a Multi-scale Foundation Model for Spatial Transcriptomics

Suyuan Zhao, Yizhen Luo, Ganbo Yang, Yan Zhong, Hao Zhou +1 more
7/15/2025
q-bio.GNcs.AIcs.LG

No official code found. Best implementation: PharMolix/SToFM (53 stars, MIT, last commit 2025-09-02).

Abstract

Spatial Transcriptomics (ST) technologies provide biologists with rich insights into single-cell biology by preserving spatial context of cells. Building foundational models for ST can significantly enhance the analysis of vast and complex data sources, unlocking new perspectives on the intricacies of biological tissues. However, modeling ST data is inherently challenging due to the need to extract multi-scale information from tissue slices containing vast numbers of cells. This process requires integrating macro-scale tissue morphology, micro-scale cellular microenvironment, and gene-scale gene expression profile. To address this challenge, we propose SToFM, a multi-scale Spatial Transcriptomics Foundation Model. SToFM first performs multi-scale information extraction on each ST slice, to construct a set of ST sub-slices that aggregate macro-, micro- and gene-scale information. Then an SE(2) Transformer is used to obtain high-quality cell representations from the sub-slices. Additionally, we construct \textbf{SToCorpus-88M}, the largest high-resolution spatial transcriptomics corpus for pretraining. SToFM achieves outstanding performance on a variety of downstream tasks, such as tissue region semantic segmentation and cell type annotation, demonstrating its comprehensive understanding of ST data through capturing and integrating multi-scale information.

View on arXivView PDF

Code Implementations(1)

PharMolix/SToFMCommunity76%
MIT

Code for "SToFM: a Multi-scale Foundation Model for Spatial Transcriptomics".

537Shell, PythonMay 26, 20251 years agoMIT

Similar Papers

Cite this paper

@article{zhao2025stofm,
  title  = {SToFM: a Multi-scale Foundation Model for Spatial Transcriptomics},
  author = {Suyuan Zhao and Yizhen Luo and Ganbo Yang and Yan Zhong and Hao Zhou and Zaiqing Nie},
  year   = {2025},
  eprint = {2507.11588},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.11588v2},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.11588.svg)](https://codeofpaper.com/paper/2507.11588)

Discussion