FEAST: Fully Connected Expressive Attention for Spatial Transcriptomics

Taejin Jeong, Joohyeok Kim, Jinyeong Kim, Chanyoung Kim, Seong Jae Hwang

TL;DR

FEAST is a novel attention-based deep learning framework that predicts spatial gene expression directly from standard, cost-effective tissue images. By modeling tissues as fully connected graphs with a unique "negative-aware" attention mechanism and an off-grid image sampling strategy, FEAST captures both excitatory and inhibitory cell interactions while recovering critical morphological details missed by previous methods.

What Problem Does This Paper Address?

Spatial Transcriptomics (ST) is a groundbreaking technology that maps gene expression within its exact spatial context in a tissue sample. This is incredibly useful for understanding complex diseases like cancer, where the cellular neighborhood dictates tumor behavior. However, ST is prohibitively expensive and complex to perform routinely.

To make this data accessible, researchers have turned to deep learning to predict spatial gene expression directly from cheap, ubiquitous Hematoxylin and Eosin (H&E)-stained whole slide images (WSIs).

Figure 1. Conceptual overview of our proposed framework, illustrating how it addresses key challenges of prior ST methods. Existing approaches are limited by sparse graphs that miss potential interactions, standard positive-only relationships in attention that omit inhibitory interactions, and sparse information that leads to information loss in off-grid regions. Our framework overcomes these limitations by employing a fully connected graph to consider all-pairs interactions, introducing a novel negative-aware attention to explicitly model both positive and inhibitory relationships, and utilizing pseudo-spots to capture and leverage off-grid information.

As shown in Figure 1, existing approaches suffer from three major flaws:

  1. Sparse Graph Limitations: They typically use Graph Neural Networks (GNNs) with pre-defined sparse graphs, connecting only immediate neighbors and ignoring long-range tissue interactions.
  2. Positive-Only Attention: Standard attention mechanisms only yield positive weights (0 to 1), which fail to capture biological inhibition—where one cell type actively suppresses gene expression in another.
  3. Information Loss: Extracting image patches on a rigid grid leaves gaps and truncates continuous biological structures.

Methods

FEAST (Fully connected Expressive Attention for Spatial Transcriptomics) introduces three core architectural innovations to solve these issues:

  • Fully Connected Graph via Self-Attention: Instead of relying on rigid, pre-defined edges, FEAST leverages the self-attention mechanism to allow every single tissue spot to dynamically interact with every other spot across the entire slide. It incorporates a static positional bias (scaled by distance) so the model still respects spatial proximity.
  • Negative-Aware Attention: To capture inhibitory biological relationships, FEAST splits the attention calculation into positive (excitatory) and negative (inhibitory) streams. It mathematically inverts the raw attention scores to isolate negative correlations, applies a temperature-scaled softmax to sharpen the focus on strong inhibitions, and subtracts the negative weights from the positive ones.
  • Off-Grid Sampling & Hierarchical Attention: To recover lost context between grid lines, FEAST samples "pseudo-spots" from intermediate locations. To prevent the computational cost from exploding quadratically ($O(N^2)$), it processes these spots through a two-stage hierarchical attention block: first, a Local $k$-NN Attention allows original spots to absorb context from neighboring pseudo-spots; second, a Global Self-Attention step is performed exclusively on the original spots.
Figure 2. The overall architecture of FEAST. The framework first extracts features and spot distance (Bh) from the input WSI. The features are then processed through L stacked hierarchical attention layers. Each layer consists of two stages: (1) a FEAST Block applied to local k-nearest neighbors (including pseudo-spots) to absorb spatial context, followed by (2) a second FEAST Block applied to the original spots for global self-attention. The final representations are passed to an MLP head for gene expression prediction.

Datasets

The authors evaluated FEAST using an 8-fold cross-validation protocol on three public spatial transcriptomics benchmarks:

  • ST-Net: A breast cancer dataset consisting of 68 samples from 23 patients.
  • Her2ST: A HER2-positive breast cancer dataset containing 36 samples from 8 patients.
  • SCC: A skin squamous cell carcinoma dataset containing 12 samples from 4 patients.

For all datasets, the models were trained to predict the expression profiles of the top 250 most expressed genes, which were pre-smoothed using Spatial Pattern Combined Smoothing (SPCS).

Key Insights and Ideas

  • Biology is Inhibitory: In standard deep learning, a low attention weight simply means two tokens are irrelevant. In biological systems, however, cells actively suppress each other (e.g., immune checkpoint pathways). Allowing attention weights to go negative directly mirrors this biological reality, drastically improving both prediction accuracy and model interpretability.
  • Grids are Artificial Boundaries: Fixed-size square patch extraction creates artificial "gaps" and truncates continuous biological structures (like tumor boundaries). Off-grid pseudo-spots act as a data-driven way to restore morphological continuity.
  • Hierarchical Routing Saves Compute: You don't need every pseudo-spot to talk to every other spot globally. Restricting pseudo-spots to local $k$-NN attention and reserving global attention for the primary spots provides the benefits of dense sampling without the quadratic computational penalty.

Key Results

FEAST achieved state-of-the-art performance, outperforming seven baseline models (including popular frameworks like MERGE, TRIPLEX, and HisToGene) in 7 out of 9 evaluation metrics across the three datasets.

Quantitative Performance

  • Her2ST Dataset: FEAST achieved a Mean Squared Error (MSE) of 0.5761 and a Pearson Correlation Coefficient (PCC) of 0.5524, significantly outperforming the previous best model, MERGE (MSE: 0.6422, PCC: 0.5037).
  • ST-Net Dataset: FEAST reached a remarkably high PCC of 0.7155 and reduced the MSE to 0.1177.

Qualitative Performance

When visualizing the predicted gene expression heatmaps for cancer-relevant genes like FASN and GNAS, FEAST avoided the blurry, over-smoothed outputs characteristic of GNN baselines. Instead, it successfully captured sharp boundaries and fine-grained spatial patterns that closely matched the ground-truth biological data.

Limitations and Future Work

  • Hyperparameter Sensitivity: The model's performance depends heavily on the choice of $k$ in the local attention step. The authors found that $k=32$ was optimal, but performance degraded if $k$ was set too high or too low.
  • Frozen Feature Extractor: FEAST relies on a frozen, pre-trained foundation model (UNI2-h) to extract visual features from the tissue patches. Fine-tuning this extractor end-to-end with the attention mechanism could yield even higher accuracy but would require massive computational resources.
  • Downstream Validation: While the negative-aware attention maps are biologically plausible, future work is needed to experimentally validate whether the newly discovered negative attention links correspond to actual, novel inhibitory pathways in the tumor microenvironment.

Summary updated

BibTeX
@inproceedings{jeong2026feast,
  author = {Taejin Jeong and Joohyeok Kim and Jinyeong Kim and Chanyoung Kim and Seong Jae Hwang},
  title = {{FEAST: Fully Connected Expressive Attention for Spatial Transcriptomics}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=j30Q3TA0i6},
}
Figure