Spatial Transcriptomics Analysis of Spatially Dense Gene Expression Prediction

Ruikun Zhang, Yan Yang, Liyuan Pan · DOI

Abstract

Spatial transcriptomics (ST) provides critical insights into tissue biology by mapping gene expression to spatial locations. However, current computational methods for predicting expression from histology images are limited by fixed resolutions and "spot-level" blurring. We present PixNet, a dense prediction framework that treats gene expression as a continuous field. By leveraging pathology foundation models and a novel upsampling architecture, PixNet enables high-fidelity, multi-scale gene expression mapping, significantly outperforming existing methods on both standard and ultra-high-resolution datasets.

Introduction

Predicting gene expression directly from H&E-stained histology slides is a cost-effective alternative to expensive spatial transcriptomics (ST) assays. Traditional models typically employ "spot-level" regression, where a fixed-size tissue region (e.g., 100µm) is mapped to a single expression profile. This approach suffers from significant resolution loss, blurring distinct cellular signals into a single average. Furthermore, these models are often rigid, unable to generalize to different spatial scales or newer, higher-resolution technologies like Visium HD.

Comparison between existing spot-based pipelines and the proposed PixNet dense prediction approach.

PixNet addresses these challenges by shifting the paradigm from discrete regression to dense, pixel-level mapping. By modeling gene expression as a spatially continuous field, the model can predict molecular activity at arbitrary scales—including near single-cell resolution—even when trained on much coarser data.

Methods

The PixNet architecture is designed to capture multi-scale morphological features and translate them into dense transcriptomic maps. It utilizes a high-performance pathology foundation model (UNI2-h) as its backbone encoder to extract rich features from histology slides.

The PixNet architecture featuring the UNI2-h encoder, Separable Attention Fusion Blocks (SAFB), and the dense decoding process.

Dense Decoding and SAFB

The decoder follows a U-Net-style structure, employing Depth-to-Space (D2S) upsampling in deeper layers to increase resolution without sacrificing spatial information. A core component is the Separable Attention Fusion Block (SAFB), which refines and aggregates features across different scales, allowing the model to integrate local cellular details with broader tissue context.

Sparse Supervision

To train on existing ST datasets, which provide data only at discrete spots, PixNet employs a sparse supervision strategy. While the model generates a full dense map, the loss function is calculated only at the specific coordinates where ground-truth data is available. This enables the model to learn a continuous representation from sparse samples.

Results and Discussion

PixNet was evaluated on standard benchmarks (STNet, Her2ST) and ultra-high-resolution Visium HD datasets (Breast and Brain Cancer).

Superior Accuracy and Resolution

On the Breast Cancer Visium HD dataset, PixNet achieved a Pearson Correlation Coefficient (PCC) of 0.325, representing a 43.8% improvement over the previous state-of-the-art method, SGN. Qualitatively, PixNet’s predictions align closely with tissue morphology, such as tumor nest boundaries, whereas previous models often produced fragmented or "blobby" outputs.

Cross-Scale Generalization

A key strength of PixNet is its ability to generalize across resolutions. When trained on 100µm spot data and tested at a 2µm scale, PixNet achieved a PCC of 0.198, a 57.1% improvement over existing methods. This "zero-shot" scaling capability demonstrates that the model learns fundamental relationships between morphology and expression rather than just memorizing spot-level patterns.

Conclusion

PixNet represents a significant advancement in spatial transcriptomics analysis by enabling dense, multi-scale gene expression prediction. By moving beyond fixed-resolution spots, it provides a more flexible and accurate tool for molecular pathology. Future work will focus on reducing the reliance on supervised ST data through self-supervised learning on large-scale histology image datasets.

Summary updated

BibTeX
@inproceedings{zhang2026spatial,
  author = {Ruikun Zhang and Yan Yang and Liyuan Pan},
  title = {{Spatial Transcriptomics Analysis of Spatially Dense Gene Expression Prediction}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=GCKlycziip},
}
Figure