SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.03644 · 2026

Spatial Transcriptomics-Guided Alignment Enhances Molecular Profiling in Pathology Foundation Model

Zhenhui Li, Zhe Wang, Hongyi Wang, Yu Wang, Chenglong Zhao, Xiuming Zhang, Hao Chen, Ling Liang, Xi Wang, Feng Gao, Wenbin Li, Can Yang, and 10 more

arXiv · PDF

Code that ran

1 of 1 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 0 failures of our instrument; 0 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2606.03644.json · badge: /api/ran/2606.03644.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
mahmoodlab/clam community
Papers with Code archive
1 ran · 0 no recorded run
FunctionStatusWhere it lives
CLAM_SB Ran
ran on a synthesized input · constructed an object; no result was computed
mahmoodlab/clam/models/model_clam.py
pointer only (licence: GPL-3.0) · get_code("6863543230f0c307")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, mahmoodlab/clam, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Also present in other papers' code

Of 1 samples lifted from this paper's linked repositories, 1 carry a function identity and 0 do not. Of the 1 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 1 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Comprehensive molecular profiling is essential for modern precision oncology but remains hindered by prohibitive costs, specimen exhaustion, and protracted turnaround times. While pathology foundation models (PFMs) have demonstrated potential for inferring molecular phenotypes from routine hematoxylin and eosin (H&E) whole-slide images (WSIs), current architectures primarily rely on vision-centric self-supervised learning or vision-language alignment, lacking the spatially resolved molecular supervision required to connect subtle morphological features with underlying genomic alterations. Spatial transcriptomics (ST) emerges as a transformative technology that enables transcriptomic quantification within intact tissue sections, thereby preserving the precise spatial link between histology and molecular profiles. In this study, we present a Spatial Transcriptomics-guided Alignment framework for Molecular Profiling (STAMP), which endows PFMs with intrinsic molecular awareness. To support this paradigm, we curated HumanST-1k, a human ST dataset spanning diverse anatomical organs and sequencing platforms. This atlas yields 1.8 million pairs of H&E patches and corresponding transcriptomic profiles, providing a corpus that links histological structures with their molecular states. To mitigate the technical noise inherent to raw transcriptomics, STAMP applies a pathway-informed alignment strategy that aggregates transcriptomic data into biologically functional pathways, which are subsequently integrated into PFMs via parameter-efficient fine-tuning. This alignment enriches the representation space of PFMs and unlocks their capacity to resolve sub-visual molecular signatures. The clinical utility of these augmented representations was validated through a multi-tier evaluation framework. At the microenvironmental level, STAMP facilitates the prediction of spatial gene expression and recognition of tumor function domains. Expanding to clinical scenarios, we evaluated STAMP across 18 clinical markers, spanning 5 tumor types, 13 centers, 67 cohorts, 18,636 patients, and 37,229 slides. STAMP consistently enhances the predictive performance of PFMs on diagnostic immunohistochemical biomarkers, actionable driver mutations, immunotherapy response indicators, and molecular prognostic signatures. Beyond retrospective internal and external evaluations, we confirm its real-world diagnostic value by demonstrating clinical utility in prospective observational cohorts. By transforming time-consuming and labor-intensive molecular assays into rapid H&E-based computational phenotyping, STAMP conserves resources for comprehensive personalized profiling while prioritizing critical testing to accelerate therapeutic interventions. development. By learning the relationship between tissue morphology and molecular profiles from large-scale ST datasets, we can recalibrate the representation space of existing PFMs, endowing them the molecular awareness required for robust downstream clinical inference. To achieve this, we introduce the Spatial Transcriptomics-guided Alignment framework for Molecular Profiling (STAMP). We first built HumanST-1k, a curated dataset of paired H&E images and ST profiles collected from multiple public repositories, encompassing a wide range of anatomical sites, sequencing platforms, and spatial resolutions. Recognizing that raw spatial gene expression data is frequently sparse and highly susceptible to technical dropouts, STAMP avoids direct, unstable mapping from individual genes to image patches. Instead, it employs a biologically informed, pathway-guided alignment strategy that aggregates high-dimensional transcriptomic profiles into established biological pathways 27 . This design reduces computational dimensionality, mitigates overfitting to sparse single-gene distributions, and leverages biological redundancy to buffer against platform-specific artifacts. Using parameter-efficient fine-tuning 28,29 , STAMP efficiently integrates these spatial molecular insights into underlying PFMs, enriching their representation space with latent morpho-molecular relationships. We evaluated STAMP across multi-center clinical cohorts on a comprehensive biomarker panel across multiple cancer types. First, at the microenvironmental level, we demonstrate that STAMP facilitates the prediction of spatial gene expression across 8 cancer types. We further show that the ST-guided representations enable the recognition of spatially resolved functional domains. When deploying STAMP for clinical scenarios, we evaluated its performance across 18 clinically relevant markers, including diagnostic immunohistochemical biomarkers, actionable driver mutations, immunotherapy response indicators, and molecular prognostic signatures. Across 5 tumor types, 13 centers, 67 cohorts, 18,636 patients, and 37,229 slides, STAMP consistently enhances the predictive performance of underlying PFMs. Beyond retrospective internal and external validations, we confirmed its real-world translational value by deploying STAMP within prospective observational cohorts. By establishing conservative and reliable confidence thresholds, STAMP enables a triage workflow that reduces unnecessary confirmatory testing, thereby streamlining clinical workflows. Together, these results show that ST-guided alignment captures latent morphology-molecular relationships, offering a scalable and cost-effective pathway for computational phenotyping in precision oncology. To construct a data foundation capable of supporting large-scale morpho-molecular alignment, we aggregated paired WSIs and ST profiles from multiple public repositories (Figure 1a). Given the high potential for data redundancy across decentralized databases, we implemented a strict duplicate-removal protocol using MD5 checksum verification, culminating in the establishment of the HumanST-1k dataset. There are 1,004 unique human ST samples in this atlas, spanning 30 organ/tissue types and 4 spatial sequencing platforms (Figure 1b). Each sample consists of a high-resolution H&E WSI co-registered with a spatially resolved transcriptomic profile. By integrating transcriptomic profiles from diverse sequencing platforms, we ensured that the resulting model prioritizes the learning of biologically conserved features over platform-specific technical artifacts. To prevent data leakage, this atlas was partitioned into distinct pre-training (915 samples) and held-out evaluation sets (89 samples). A stringent spot-level quality control filter was applied to the pre-training split, excluding any spots with fewer than 100 detected pathway-related genes. This curation yielded a final training corpus of approximately 1.8 million paired H&E patches and spatially resolved transcriptomic profiles (Figure 1c). Building on this corpus, we developed the STAMP framework to align histological features with molecular states (Figure 1d). In this framework, we adopted Virchow2 14, 30 , one of the vision-centric and state-of-the-art PFMs 31 , as the base visual encoder. To implement our biologically informed, pathway-guided alignment strategy, high-dimensional transcriptomic profiles are first grouped into biologically meaningful pathway representations 32 , and then a dedicated pathway encoder is used to extract functional representations. This molecular context is integrated into the visual domain via parameter-efficient fine-tuning, specifically low-rank adaptation (LoRA) 28 , applied to the Virchow2 backbone. The model is optimized using a combination of a contrastive loss 18 that aligns global morpho-molecular embeddings and a reconstruction loss that decodes pathway activity from visual features. This joint optimization effectively injects molecular awareness into the visual representations, enabling the model to capture latent morpho-molecular relationships that are critical for downstream clinical inference. To systematically validate the clinical utility of STAMP, we architected a hierarchical, multi-tier evaluation framework escalating from fundamental molecular mapping to real-world clinical triage. We first evaluated the prediction of spatially resolved gene expression to verify that ST-guided pretraining embedded granular, pixel-to-transcript associative capabilities Ground Truth

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2606.03644")
get_code_for_paper("2606.03644")
have("2606.03644")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2606.03644.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2606.03644.svg)](https://syntology.ai/paper/2606.03644)

Connect an agent — have() is free.