Global Context-aware Representation Learning for Spatially Resolved Transcriptomics

Yunhak Oh, Junseok Lee, Yeongmin Kim, Sangwoo Seo, Namkyeong Lee, Chanyoung Park

Introduction: The Local-Only Limitation

Spatially Resolved Transcriptomics (SRT) provides a powerful lens into tissue architecture by mapping gene expression to specific spatial coordinates. Most current analytical frameworks rely on Graph Neural Networks (GNNs) that emphasize local neighborhoods. This approach assumes that a "spot" is most similar to its immediate neighbors. However, biological continuity—the smooth transition of gene expression across tissue—often renders local neighbors redundant or misleading, especially at functional boundaries.

Figure 1: Comparison of local vs. global feature similarity and clustering performance. Spotscape's global view resolves boundary ambiguities where local-only methods fail.

Methodology: The Spotscape Framework

To overcome the "local view trap," Spotscape introduces a global context-aware architecture. The framework utilizes a Siamese GNN encoder-decoder structure optimized by three primary components:

  1. Similarity Telescope ($L_{SC}$): This module captures relationships between a spot and all other spots within a slice, ensuring global structural consistency through a relation consistency loss.
  2. Similarity Scaling Strategy ($L_{SS}$): Designed for multi-slice integration, this strategy addresses batch effects by aligning the similarity scales of inter-slice and intra-slice spot pairs.
  3. Prototypical Contrastive Learning (PCL): This component uses latent space clustering to identify biological prototypes, pulling similar domains across different slices toward shared centroids.
Figure 2: The Spotscape architecture for single-slice and multi-slice SRT analysis, highlighting the Similarity Telescope and Scaling modules.

Experimental Results and Insights

Spotscape was evaluated on diverse datasets, including the Human DLPFC, MTG, and Mouse Embryo.

Spatial Domain Identification

The model consistently outperformed baselines such as STAGATE and SEDR, achieving superior Adjusted Rand Index (ARI) and Clustering Accuracy (CA). Notably, Spotscape excels at identifying sharp boundaries between brain layers, a task where local-only GNNs typically struggle due to the high similarity of adjacent spots across different functional regions.

Multi-slice Integration and Imputation

By treating batch effects as scaling discrepancies, Spotscape successfully aligned slices from different developmental stages (e.g., Mouse Embryo E11.5 and E12.5). Furthermore, the inclusion of a decoder allows for effective data denoising. Marker genes that are sparse or noisy in raw data become clearly defined, facilitating more accurate biological interpretation.

Conclusion and Future Directions

Spotscape demonstrates that global context is essential for resolving complex tissue architectures in SRT. Future work may involve explicitly learning global graph structures and integrating multi-modal data, such as high-resolution H&E histology images, to further enhance representation learning.

Summary updated

BibTeX
@inproceedings{oh2025global,
  author = {Yunhak Oh and Junseok Lee and Yeongmin Kim and Sangwoo Seo and Namkyeong Lee and Chanyoung Park},
  title = {{Global Context-aware Representation Learning for Spatially Resolved Transcriptomics}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=jeJGH6UDOL},
}
Figure