atlas

Research map / Detection and segmentation / CNN features

SToFM: a Multi-scale Foundation Model for Spatial Transcriptomics

ICML 2025 · Detection and segmentation › CNN features · approach: Domain-specific segmentation and detection · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes SToFM, a multi-scale spatial transcriptomics foundation model that combines a domain-adapted Geneformer cell encoder with an SE(2) Transformer over sub-slices containing virtual cells, pretrained on the 88M-cell SToCorpus-88M.

Problem

Existing spatial transcriptomics foundation models do not capture and integrate macro-scale tissue morphology, micro-scale cell neighborhood interactions, and gene-scale expression together.

Approach

Split each ST slice into ~1000-cell sub-slices, add Leiden-clustered virtual cells for macro context, encode cells with a domain-adapted Geneformer, and model spatial relations with an SE(2)-invariant Transformer trained with masked cell modeling and pairwise distance recovery.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
integrate gene, micro, and macro scalesSToFM · EmbryoCrossMacro F1: 0.4291 -> 0.4588Helped
add domain adaptation to the cell encoder (ablation)SToFM · EmbryoCrossMacro F1: 0.3745 -> 0.4155Helped
add domain adaptation to the cell encoder (ablation)SToFM · Brain1Macro F1: 0.3853 -> 0.4725Helped
add virtual cells for macro-scale information (ablation)SToFM · EmbryoCrossMacro F1: 0.4291 -> 0.4588Helped
add virtual cells for macro-scale information (ablation)SToFM · Brain1Macro F1: 0.4893 -> 0.4951Helped
add micro-scale cell interactions (ablation)SToFM · EmbryoCrossMacro F1: 0.425 -> 0.459Helped
use the spatial distance matrix (ablation)SToFM · EmbryoCrossMacro F1: 0.413 -> 0.459Helped
increase sub-slice scale from 10 to 1000 (ablation)SToFM · Embryo2Macro F1: 0.7066 -> 0.8014Helped
increase sub-slice scale from 1000 to 2000 (ablation)SToFM · EmbryoCrossMacro F1: 0.4588 -> 0.4554No clear effect
vary Leiden resolution from 1.0 to 0.1, 0.5, or 1.5 (ablation)SToFM · EmbryoCrossMacro F1: 0.4588; 0.4410; 0.4572; 0.4403Mixed
increase second-time cell-encoding sample number from 0 to 12 (ablation)SToFM · Embryo2Macro F1: 0.722 -> 0.758Helped
pretrain with the full dataset rather than 12.5% of SToCorpus-88M (ablation)SToFM · Embryo2Macro F1: 0.758 -> 0.801Helped

Surprising findings

Limitations

Experimental setup

Datasets: SToCorpus-88M human embryo Stereo-seq (HESTA) DLPFC 10x Visium mouse brain Stereo-seq SeekSpace mouse brain mouse liver Stereo-seq human skin 10x Xenium MERFISH mouse brain

Benchmarks: human embryo structure segmentation DLPFC layer segmentation mouse brain cell type annotation mouse liver spatial deconvolution human skin imputation MERFISH zero-shot clustering

Metrics: accuracy macro F1 Pearson correlation RMSE MAE NMI ARI

Baselines: scGPT Geneformer Nicheformer CellPLM

Builds on: Geneformer Uni-Mol CellPLM Leiden clustering

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy