Manuscript Offprint

arXiv:2610.28266

VGL-stGen: Learning a shared multimodal model for lung histology and spatial transcriptomics

Haenara Shin, Dongjoo Lee, Sungwoo Bae, Kwon Joong Na, Daeseung Lee, Hongyoon Choi

Abstract

Learning across histology and spatial transcriptomics requires a model that can connect tissue morphology, gene expression, and cellular identity within a shared framework. We developed VGL-stGen (Vision-Gene Language model–spatial transcriptomics generative), a multimodal large language model adapted from a pretrained medical vision-language model using large-scale paired lung H&E and spatial transcriptomics data together with single-cell references. Training integrates image-expression and expression-cell-type pairs from multiple spatial transcriptomics and single-cell RNA-seq data, enabling complementary supervision across modalities. Gene-conditioned pseudo-labeling further transfers transcriptomic cell-type supervision to histology images. A single deployed VGL-stGen checkpoint supports thirteen evaluated task formulations spanning H&E-based tissue and cell-type classification, gene-expression-based cell typing, gene prediction, and conditional expression completion from combinations of histology, cell identity, and observed gene expression. Task-specific decoding allows the same generative model to produce categorical, gene-list, and structured expression outputs. For expression completion, fixing queried gene identities and autoregressively predicting their expression levels substantially improves structured prediction, while controlled adaptation shows that restricting supervision to the requested expression-level tokens can further improve image-conditioned completion. Image-permutation experiments indicate that correctly paired histology provides additional information beyond observed gene-expression levels.

External classification relies partly on computational references with shared annotation lineage, and some H&E sources were exposed during cancer training or model development. Within these constraints, VGL-stGen demonstrates that a medical vision-language backbone can be adapted with large-scale spatial transcriptomics and histology data into a unified multimodal model capable of performing diverse H&E- and gene-expression-related tasks. This framework provides a foundation for connecting tissue morphology and spatial molecular states through shared generative modeling.

1 Introduction

Recent advances in spatial biology have enabled computational models to learn representations from histology images and spatially resolved gene expression. However, most existing models are designed around specific modalities or prediction tasks, leaving histological morphology, gene expression, and cellular identity largely separated across modeling frameworks. A unified model that can learn the underlying biology shared across these modalities and flexibly reason over different

*Email: haenara.shin@portrai.io.

†^{\dagger}Corresponding author. Email: chy@portrai.io.

combinations of images, genes, and cell states remains underexplored. To address this gap, we developed VGL-stGen, a multimodal large language model trained on large-scale lung and lung cancer spatial transcriptomics data. We assembled a lung training corpus combining paired histology and spatial transcriptomics from a total of 69 samples (47 Xenium samples and 22 Visium samples) in PortraiATLAS with single-cell references and cancer annotations. By integrating these relationships within a shared vision-gene-language framework, VGL-stGen is designed to learn across histological and molecular representations and perform diverse tasks from different combinations of H&E images, gene expression, and cellular information.

Existing image–omics methods use different observations and target representations. ST-Net predicts expression from histology [1], BLEEP retrieves reference expression through contrastive embeddings [2], and GenAR generates expression counts autoregressively [3]. SpaCKLE completes expression using neighbouring spots [4]. OmiCLIP aligns histology with ranked gene text for multiple tasks [5], and SPADE learns aligned histology-expression representations [6]. STPath integrates histology, observed expression and spatial context for generative prediction and spot imputation [7]. GHIST predicts single-cell expression from histology using auxiliary cell-type and neighbourhood-composition tasks [8]. These methods establish the importance of specifying which molecular observations are available at inference and which targets are predicted.

VGL-stGen adapts the pretrained medical vision-language model MedGemma-1.5-4b-it [9] for shared conditional generation across the supported lung tasks. Gene-conditioned pseudo-labels supply image cell-type supervision. The model generates gene lists and uses constrained decoding for categorical labels and queried expression levels. For conditional completion, the input includes 75 observed levels and either histology or a supplied cell type; the output contains levels for 25 named genes. Fixing the query names separates supplied identifiers from predicted values. The distinction motivates a controlled comparison of full-answer supervision with loss masking over the requested level tokens.

We assess image cell typing before and after pseudo-label training, evaluate fixed-name decoding from the deployed weights, and compare expression supervision under matched initial weights, training examples and update budgets. Image permutation tests whether correct pairing contributes when observed gene levels remain available. Task-specific classifiers and full-input MLPs provide reference performance with the corresponding observed inputs. The deployed checkpoint’s experiments establish task-dependent completion effects.

References (44)