[Paper Review] Spatial Transcriptomics as Images for Large-Scale Pretraining
The paper proposes treating spatial transcriptomics data as croppable multi-channel images to enable scalable, image-like pretraining that preserves local spatial context and supports large-scale ST representations.
Spatial Transcriptomics (ST) profiles thousands of gene expression values at discrete spots with precise coordinates on tissue sections, preserving spatial context essential for clinical and pathological studies. With rising sequencing throughput and advancing platforms, the expanding data volumes motivate large-scale ST pretraining. However, the fundamental unit for pretraining, i.e., what constitutes a single training sample, remains ill-posed. Existing choices fall into two camps: (1) treating each spot as an independent sample, which discards spatial dependencies and collapses ST into single-cell transcriptomics; and (2) treating an entire slide as a single sample, which produces prohibitively large inputs and drastically fewer training examples, undermining effective pretraining. To address this gap, we propose treating spatial transcriptomics as croppable images. Specifically, we define a multi-channel image representation with fixed spatial size by cropping patches from raw slides, thereby preserving spatial context while substantially increasing the number of training samples. Along the channel dimension, we define gene subset selection rules to control input dimensionality and improve pretraining stability. Extensive experiments show that the proposed image-like dataset construction for ST pretraining consistently improves downstream performance, outperforming conventional pretraining schemes. Ablation studies verify that both spatial patching and channel design are necessary, establishing a unified, practical paradigm for organizing ST data and enabling large-scale pretraining.
Motivation & Objective
- Clarify the limitations of existing spot-based and slice-based ST pretraining schemes in preserving spatial context vs. sample size.
- Introduce a patch-based multi-channel image representation for ST data with fixed-size crops to scale pretraining.
- Develop an importance-aware gene subset (channel) selection to control input dimensionality and stabilize learning.
- Demonstrate that patch-based ST pretraining improves downstream spatial-domain detection and reconstruction tasks across multiple datasets.
Proposed method
- Represent each ST slice as a croppable 2D grid of spots where each spot’s gene expressions form multi-channel vectors.
- Crop fixed-size h x w patches from the ST grid to create image-like training units.
- Normalize spatial coordinates to a compact lattice and randomly sample patches to increase training samples.
- Select a fixed number m of genes per patch by variance-weighted channel selection to control channel dimensionality.
- Train a masked autoencoder with a ViT backbone on these patches using a masking objective to reconstruct masked gene channels.
- Evaluate with downstream tasks (spatial domain detection, k-NN, MLP classifiers) and a masked region reconstruction task.
Experimental results
Research questions
- RQ1How can ST data be represented to balance spatial context with scalable sample generation for pretraining?
- RQ2Does patch-based, multi-channel image-like pretraining improve downstream ST tasks compared to spot- or slice-based schemes?
- RQ3How does channel (gene) selection influence pretraining stability and downstream performance?
- RQ4What is the impact of patch size and channel count on downstream spatial domain detection and reconstruction tasks?
Key findings
- Patch-based ST pretraining consistently outperforms spot-based and slice-based schemes on spatial domain detection tasks across multiple datasets.
- Compared with spot-based pretraining (scGPT), the proposed method yields substantial average gains in accuracy and ARI (e.g., average improvements of 0.287 in Acc and 0.347 in ARI on reported tasks).
- Compared with the spatially augmented baseline scGPT-spatial, the method provides additional gains in Acc and ARI on average (e.g., Acc gains of roughly 0.059 and ARI gains of 0.086).
- In masked region reconstruction, the proposed method achieves lower MSE/MAE than scGPT-spatial across mask sizes, indicating better spatial and transcriptional representation learning.
- Ablation and ablation-like analyses show that both spatial patching and channel design are necessary for best performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.