arXiv:2610.28579q-bio.QMOct 2026

Manuscript Offprint

arXiv:2610.28579

Spatially Informed and Direction Sensitive Representation Learning for Spatial Transcriptomics

Azim Dehghani Amirabad, Ali Khodabandeh Yalabadi, Artem Moskalev, Yun-Ching Chen, Mehdi Pirooznia, Scott Oloff, Rui Liao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Cellular states are shaped by both intrinsic gene expression programs and the spatial microenvironment in which cells reside. Spatial transcriptomics makes this context measurable, but effective representation learning requires capturing both spatially informative molecular signals and intercellular organization. Existing approaches address these challenges only partially: conventional gene selection can overlook spatially structured signals, while methods for encoding cell–cell relationships often either reduce a cell’s microenvironment to proximity alone, discarding direction, or rely on absolute coordinates tied to an arbitrary tissue frame. Consequently, cells with similar neighbor distances but distinct spatial organization may receive overly similar representations, despite experiencing different biological contexts that shape their cellular states. We introduce Tessera, a spatial representation learning framework that addresses both molecular selection and cellular context. Tessera combines spatially informed gene selection with a geometric inductive bias that contextualizes each cell within its local tissue environment. By modeling relative cell–cell relationships, Tessera is translation-invariant while preserving direction, allowing neighboring cells to contribute differently according to their spatial context and cellular state. Across held-out tissues and technologies, Tessera outperforms existing spatial foundation models in representation quality and generalizes zero-shot to contexts up to 16×16\times larger than those seen during training.

1 Introduction

Spatial transcriptomics (ST) measures gene expression while preserving the physical organization of cells within tissue, enabling cellular states to be studied in their native spatial context [29, 30]. Because cellular phenotypes are shaped by neighboring cells, local signaling, and tissue organization, spatial context is an integral component of cellular state. This is particularly relevant to drug discovery, where therapeutic targets, mechanisms of action, and treatment response can depend on the tissue context in which molecular programs arise [20, 5]. Learning transferable representations that jointly capture cellular state and spatial context could therefore support context-aware target discovery, biomarker identification, and patient stratification across tissues and disease settings [2].

Recent foundation models have demonstrated the value of large-scale representation learning for single-cell transcriptomics [7, 10], motivating their extension to spatial omics [28, 34, 4]. Spatial data introduce two complementary challenges for representation learning: (i) selecting spatially informative genes to represent each cell, and (ii) leveraging intercellular spatial relationships to capture cellular states within their native tissue context. Existing gene-selection strategies capture only part of the information needed for the first challenge. Highly expressed genes can be dominated

∗^{*}Equal contribution

†^{\dagger}Corresponding author: Rui Liao (RLiao2@its.jnj.com)

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: AI for Drug Discovery: Bridging the Translation Gap.

Figure

Figure 1: TESSERA learns spatially contextualized cell representations in two stages. Spatially informed ranking (SIR) selects spatially informative genes to represent cells, encoded by a pretrained scRNA-seq foundation model. The resulting cell embeddings are then contextualized by a geometry-aware aggregator with 2D-RoPE, letting neighbors contribute according to their relative distance and direction while remaining translation-invariant. Learning proceeds by masking cells and reconstructing masked cell expression from their spatial neighborhood.

by broadly expressed housekeeping programs [24, 11], HVGs prioritize expression variability without explicitly accounting for spatial organization [25], and SVGs emphasize tissue-level spatial patterns without considering the cell-specific informativeness of each gene [27, 6, 15].

The second challenge is to encode the spatial context that shapes cellular state. A cell’s microenvironment is inherently relational: neighboring cells influence its state through their spatial organization relative to the cell of interest, rather than through absolute slide coordinates. Existing approaches represent this context using neighborhood or graph structure, pairwise distances, or absolute positional information [32, 34, 4]. Each captures only part of the underlying tissue geometry: neighborhood-based encodings discretize continuous spatial relationships, pairwise distance preserves proximity but discards direction, and absolute coordinates retain direction but depend on an arbitrary tissue frame. Yet tissue organization can be directionally structured [13, 4], so equally distant cells may provide distinct biological context. This motivates representing the full relative displacement between cells, preserving both distance and direction while remaining independent of absolute position.

To address these complementary gaps, we introduce Tessera, a spatial representation learning framework that jointly models spatially informative gene expression and the relative organization of surrounding cells. For each cell, Tessera constructs a spatially informed top gene set k by combining cell specific expression signals with tissue level spatial expression patterns, and encodes the resulting cell profile with a pretrained scRNA-seq foundation model [7]. The resulting cell embeddings are then contextualized through displacement-relative spatial attention, instantiated with two-dimensional RoPE [26]. This imposes a geometric inductive bias that preserves both distance and direction, allowing the model to distinguish similarly distant cells that provide different biological contexts rather than treating them as equivalent based on proximity alone. The resulting spatial representation is biologically grounded and highly transferable, consistently improving expression imputation across held-out tissues and technologies and generalizing zero-shot to spatial contexts up to 16×16\times larger than those seen during training.

Our main contributions are: (i) a spatially informed gene-ranking strategy that integrates cell-level and tissue-level measures of spatial gene informativeness; and (ii) direction-sensitive spatial attention that is translation-invariant while preserving relative distance, direction, and physical spatial scale.

References (32)