Abstract
Computer Vision has proven to be a powerful tool for analyzing Spatial Transcriptomics (ST) data. However, current models that predict spatially resolved gene expression from histopathology images suffer from significant limitations due to data dropout. Most existing approaches rely on single-cell RNA sequencing references, making them dependent on alignment quality and external datasets while also risking batch effects and inherited dropout. In this paper, we address these limitations by introducing LGDiST, the first reference-free latent gene diffusion model for ST data dropout. We show that LGDiST outperforms the previous state-of-the-art in gene expression completion, with an average Mean Squared Error that is 18% lower across 26 datasets. Furthermore, we demonstrate that completing ST data with LGDiST improves gene expression prediction performance on six state-of-the-art methods up to 10% in MSE. A key innovation of LGDiST is using context genes previously considered uninformative to build a rich and biologically meaningful genetic latent space. Our experiments show that removing key components of LGDiST, such as the context genes, the ST latent space, and the neighbor conditioning, leads to considerable drops in performance. These findings underscore that the full architecture of LGDiST achieves substantially better performance than any of its isolated components.
Introduction
Spatial Transcriptomics (ST) is a transformative technology that enables researchers to map gene activity within the spatial context of tissue samples. By providing both the "what" and the "where" of gene expression, ST offers unprecedented insights into tissue architecture and disease pathology. However, sequencing-based ST platforms, such as 10x Genomics Visium, are plagued by a phenomenon known as data dropout. This stochastic failure to detect transcripts results in sparse, noisy datasets where many gene expression values are missing or zeroed out, even when the genes are biologically active.
Existing strategies to mitigate dropout generally fall into two categories. Reference-based methods utilize external single-cell RNA sequencing (scRNA-seq) data to impute missing values. While effective, these methods are costly, require complex cross-modality alignment, and are susceptible to "batch effects"—systematic errors introduced when merging disparate datasets. Conversely, reference-free methods attempt to recover missing data using only the internal information of the ST sample. While more flexible, current reference-free approaches often discard genes with low spatial autocorrelation, thereby ignoring valuable biological context.
Methodology
LGDiST (Latent Gene Diffusion for Spatial Transcriptomics) addresses these challenges through a novel, reference-free generative framework. The architecture operates in two distinct stages to reconstruct missing gene expression values by leveraging both local spatial neighborhoods and a broad set of genetic features.
1. Genomics-Based Latent Space
The first stage involves training a specialized AutoEncoder (AE) to map high-dimensional gene expression data into a compact latent representation. Unlike traditional methods that focus solely on "Highly Spatially Associated Genes" (HSAGs), LGDiST incorporates Context Genes (CGs). These genes, often dismissed as uninformative noise due to their lack of clear spatial patterns, are used here to provide a rich biological background that aids in the reconstruction of more spatially active genes.
2. Latent Gene Diffusion
The second stage utilizes a Diffusion Transformer (DiT) trained to denoise the latent representations. The model focuses on a central spot and its immediate 1-hop neighborhood (six neighbors in a hexagonal grid). By performing diffusion within the learned latent space rather than on raw gene counts, the model more efficiently captures the complex, non-linear biological relationships inherent in the data. During inference, the model predicts the missing values for the central spot, effectively "completing" the expression map.
Experimental Results
The authors evaluated LGDiST using 26 sequencing-based ST datasets from the SpaRED database, focusing on 1,024 genes per dataset. The results demonstrate that LGDiST sets a new benchmark for reference-free ST data completion.
Superior Completion Performance
LGDiST achieved an average Mean Squared Error (MSE) that is 18% lower than the previous state-of-the-art method, SpaCKLE, across all 26 datasets. Qualitative analysis shows that LGDiST reconstructions are more faithful to the ground truth patterns compared to competing models. Furthermore, LGDiST demonstrated remarkable robustness; in stress tests where up to 80% of the data was synthetically masked, the model maintained a stable, low error rate, whereas other models' performance degraded significantly.
Impact on Downstream Analysis
Beyond data completion, LGDiST serves as a powerful pre-processing tool. When six popular gene expression prediction models (including STNet and BLEEP) were trained on data completed by LGDiST, their performance improved by up to 10% in MSE. This suggests that LGDiST effectively "cleans" the data, allowing downstream models to learn more accurate biological representations.
Discussion and Conclusion
A critical finding of this research is the importance of spatial context and latent modeling. Ablation studies revealed that removing neighborhood conditioning increased the MSE by 230%, and training the diffusion model on raw expression values instead of the latent space increased error by 62%. These results confirm that the integration of spatial neighborhoods and a learned genomic latent space is essential for accurate ST completion.
While LGDiST represents a significant advancement, it is not without limitations. The diffusion-based architecture is computationally intensive (3.22 GFLOPs), and the model can sometimes underestimate the full range of gene expression, compressing predictions toward the median. Future work will focus on adapting the model for non-hexagonal spatial geometries and higher-resolution imaging-based ST technologies. In conclusion, LGDiST provides a robust, reference-free solution to the dropout problem, significantly enhancing the utility of spatial transcriptomics for biological discovery.
Summary updated