TL;DR
HINGE (HIstology-coNditioned GEneration) successfully bridges the gap between single-cell foundation models and spatial transcriptomics by retrofitting a frozen single-cell model into a histology-conditioned gene expression generator. By introducing a novel expression-space masked diffusion process and lightweight visual modulation, HINGE predicts biologically coherent spatial gene expression directly from H&E images while preserving critical gene-gene regulatory relationships.
What Problem Does This Paper Address?
Spatial transcriptomics (ST) allows researchers to map gene expression within its native tissue architecture, providing crucial insights into disease microenvironments. However, ST is currently bottlenecked by high costs and low throughput. An attractive, cost-effective alternative is predicting spatial gene expression directly from standard, inexpensive Hematoxylin and Eosin (H&E) stained histology images.
While existing machine learning methods attempt this image-to-gene mapping, they face a major hurdle: a single tissue patch does not uniquely determine gene expression due to biological noise and spatial heterogeneity. Generative models (like standard diffusion models) can capture these complex distributions, but they typically treat genes independently, missing the intricate gene-gene dependencies (regulatory networks) that define cell behavior.
Single-cell foundation models (sc-FMs) excel at capturing these gene relationships because they are pre-trained on massive datasets of millions of cells. However, adapting an expression-only sc-FM to accept visual histology inputs is highly non-trivial due to a severe modality gap, a mismatch in training objectives (masked autoencoding vs. continuous noise diffusion), and the risk of catastrophic forgetting during fine-tuning on limited ST data.
Methods
The authors introduce HINGE to retrofit a pre-trained sc-FM (specifically CellFM) into a conditional spatial expression generator without erasing its hard-won biological knowledge.
The framework relies on three core technical innovations:
- Frozen Backbone with SoftAdaLN: To prevent catastrophic forgetting, the core sc-FM backbone remains completely frozen. To inject visual context, the authors introduce SoftAdaLN (Soft Adaptive Layer Normalization)—a lightweight, identity-initialized modulation layer inserted into each transformer block. It blends diffusion timesteps and visual features extracted from state-of-the-art pathology foundation models (UNI and CONCH).
- Expression-Space Masked Diffusion: Standard diffusion models corrupt data with Gaussian noise, creating a distribution mismatch for sc-FMs trained on discrete masking. HINGE resolves this by defining a stochastic masking diffusion process. In the forward pass, gene expressions are progressively masked out (set to a mask token). In the reverse pass, the model learns to predict and fill in these missing entries, aligning perfectly with the sc-FM's pre-training.
- Warm-Start Curriculum: To stabilize early training, HINGE utilizes a curriculum that initially samples only low-mask timesteps (matching the ~20% mask ratio seen during single-cell pre-training) before gradually exposing the model to the full diffusion trajectory.
Datasets
HINGE was evaluated on three distinct human spatial transcriptomics datasets, spanning different tissue types and biological contexts:
- cSCC: Cutaneous squamous cell carcinoma dataset consisting of 12 tissue slices from 4 patients.
- Her2ST: A breast cancer dataset containing 36 slices from 8 individuals.
- Kidney: A diabetic kidney disease dataset containing 23 slices from 22 individuals.
The authors utilized a rigorous leave-one-slice-out cross-validation protocol for evaluation.
Key Insights and Ideas
- Alignment Over Overhaul: Instead of forcing a single-cell model to adapt to continuous Gaussian noise, changing the generative mechanism (via masked diffusion) to match the model's native pre-training language yields significantly better knowledge transfer.
- Identity Initialization Preserves Knowledge: By initializing the visual modulation layers such that they initially act as an identity function ($\eta=0, s(\cdot)=0, \kappa(\cdot)=0$), HINGE ensures that the model starts fine-tuning with its rich single-cell representations completely intact, safely mitigating catastrophic forgetting.
- Complementary Visual Encoders: The ablation studies revealed that concatenating features from two different pathology foundation models (UNI's global context and CONCH's attention-based local features) provided a vastly superior conditioning signal than using either encoder alone.
Key Results
- State-of-the-Art Performance: HINGE consistently outperformed six competitive baselines (both deterministic regression models like TRIPLEX and generative models like Stem and STFlow) across all three datasets in mean Pearson Correlation Coefficients for the top 50 and 200 highly variable genes (PCC-50 and PCC-200).
- Sharper Spatial Patterns: Qualitatively, HINGE successfully reconstructed localized marker gene expressions (such as KRT6A in skin cancer and GNAS in breast cancer) without the severe oversmoothing or blurring characteristic of standard regression techniques.
- Co-expression Fidelity: HINGE accurately reproduced ground-truth gene-gene correlation matrices, proving that it successfully retained the complex regulatory network structures encoded during single-cell pre-training and mapped them appropriately to spatial tissue structures.
Limitations and Future Work
- Vocabulary Constraints: HINGE is bound by the fixed gene vocabulary of the underlying sc-FM, meaning it can only model genes that were present during the foundation model's initial pre-training phase.
- Spot-Level Resolution: Current ST datasets capture a mixture of multiple cells per spot rather than true single-cell resolution. The authors note that explicitly incorporating cell-type deconvolution into the generative pipeline remains an open and promising direction.
- Extension to Other Backbones: While this study specifically retrofitted CellFM, the authors emphasize that the SoftAdaLN and masked diffusion framework is architecture-agnostic and could conceptually be applied to other popular single-cell models like scGPT.
Summary updated