A perspective on developing foundation models for analyzing spatial transcriptomic data

Tianyu Liu, Minsheng Hao, Xinhao Liu, Hongyu ZhaoQuantitative 2025

TL;DR

This paper argues for the development of foundation models (FMs) specifically for spatial transcriptomics (ST) data analysis. It outlines two main approaches to building these FMs (seq-based and knowledge-based) and discusses their potential to accelerate biological discovery and improve reproducibility in the field.

What Problem Does This Paper Address?

Spatial transcriptomics (ST) is a powerful technology that allows researchers to study gene expression within the context of tissue architecture. However, analyzing ST data is complex due to its inherent noise, the integration of spatial and gene expression information, and the high cost of data generation. While foundation models (FMs) have revolutionized fields like natural language processing and multimodal data analysis, a dedicated FM for ST data is still lacking. This paper addresses the need for such FMs, exploring how they can overcome current limitations in ST data analysis, boost research productivity, and facilitate novel biological discoveries.

Methods

The authors propose two primary paradigms for developing FMs for ST analysis:

  • Seq-based FMs: These models are pretrained on large-scale ST datasets. The training objective is typically self-supervised learning, leveraging both gene expression and spatial location information. Examples discussed include NicheCompass, Novae, Nicheformer, STFormer, SpaFormer, and CellPLM, which utilize various architectures like transformers and graph-based encoders to capture spatial relationships and gene expression patterns.
  • Knowledge-based FMs: These FMs leverage existing large language models (LLMs) or large multimodal models (LMMs) that have been pretrained on text-based biological knowledge or biomedical images. These models can be fine-tuned or used directly to incorporate prior knowledge into ST data analysis. Examples include QUST-LLM and Geneverse, which integrate LLMs with ST data processing tools or gene expression patterns.

The paper also highlights the emerging trend of combining these two paradigms, where knowledge can be treated as an additional modality during training, potentially enhancing FM capabilities.

Datasets

The paper does not explicitly list specific datasets used for training or evaluation. However, it emphasizes the need for "high-quality and diverse sequencing-based data and knowledge-based data" as the foundation for developing effective FMs for ST analysis. The authors refer to existing large-scale single-cell transcriptomics datasets and ST datasets in general as the basis for pretraining.

Key Insights and Ideas

  • ST Data's Unique Challenges: ST data presents distinct challenges compared to single-cell RNA sequencing (scRNA-seq) data, including higher noise levels, the critical need to incorporate spatial location, and higher experimental costs, necessitating tailored FM development.
  • Beyond Simple Tasks: A truly valuable FM for ST should go beyond basic tasks like spot-level annotation or clustering. It should aim to identify non-continuous spatial domains, accelerate novel biological discoveries, and provide interpretable insights.
  • Unifying Preprocessing: A key role for FMs could be to standardize and optimize the often subjective preprocessing steps in ST data analysis, ensuring better utilization of data and improving reproducibility.
  • Leveraging Prior Knowledge: Knowledge-based FMs can effectively transfer general biological knowledge from LLMs and LMMs to ST analysis, enhancing performance in tasks like cell-type annotation and perturbation prediction.
  • Synergy of Seq- and Knowledge-based FMs: Combining seq-based and knowledge-based approaches holds significant promise for building more powerful and versatile FMs for ST data.

Key Results

The paper is a perspective piece and does not present new experimental results or quantitative performance metrics. Instead, it discusses the potential of FMs for ST analysis. The authors anticipate that successful FMs will:

  • Boost research productivity.
  • Increase novel biological discoveries.
  • Provide user-friendly access to complex analyses.
  • Improve accuracy in tasks like spatial label identification, spatial composition deconvolution, and gene imputation.
  • Enhance performance metrics such as F1 scores for cell-type annotation and adjusted mutual information (AMI) for spatial niche clustering.

Limitations and Future Work

The authors acknowledge several limitations and outline future directions:

  • Data Collection: The need for high-quality and diverse datasets for both seq-based and knowledge-based FMs is a significant challenge.
  • Pretraining Tasks: Developing appropriate pretraining tasks for ST data, which lacks an inherent sequential structure, remains an open area of research. Temporal and spatial trajectories are suggested as potential avenues.
  • Benchmarking Frameworks: A robust benchmarking framework is needed to evaluate FMs not only on low-level tasks but also on their ability to inspire high-level discoveries.
  • Computational Resources: The significant computational cost of training FMs requires careful planning and consideration.
  • Accessibility: Making FMs more accessible through open-source models and online demos is crucial for wider adoption.

Future work should focus on addressing these challenges to realize the full potential of FMs in advancing spatial transcriptomics research.

Summary updated

BibTeX
@inproceedings{liu2025perspective,
  author = {Tianyu Liu and Minsheng Hao and Xinhao Liu and Hongyu Zhao},
  title = {{A perspective on developing foundation models for analyzing spatial transcriptomic data}},
  booktitle = {Quantitative},
  year = {2025},
  doi = {10.1002/qub2.70010},
}
Figure