arXiv:2611.01141cs.CVOct 2026

Manuscript Offprint

arXiv:2611.01141

GESTALT: Fast, Generalizable Histopathology Image Synthesis from Gene Expression with Pretrained Pathology Foundation Models

Felix Ho, Alexandros Graikos, Dimitris Samaras

Abstract

Spatial transcriptomics measures gene expression while preserving where each cell sits in the tissue. The inverse, what a given transcriptomic state looks like, is less explored but equally useful: it lets researchers visualize the morphological consequence of a molecular state and interpret a spatial assay's molecular calls against real tissue structure. GeneFlow, the current state of the art on the Xenium gene expression-to-image benchmark, trains a model from scratch, incurring a high cost on every new target dataset it is applied to. We instead propose GESTALT, which reformulates gene expression-to-image synthesis as predicting a pathology foundation model's image embedding. A lightweight gene-token transformer predicts this embedding from multi-cell gene expression, and a frozen or LoRA-adapted diffusion decoder (PixCell) renders it as an image. Because this visual knowledge is reused rather than relearned, GESTALT trains in a fraction of the time. In both multi-cell and single-cell settings, our method outperforms the SoTA on perceptual metrics across all three Xenium datasets. Beyond improved image quality, GESTALT natively synthesizes at 1024×10241024 \times 1024, and is evaluated in three generalization settings: zero-shot transfer across gene panels and datasets, held-out patients and disease states, and transfer across studies and tissue sources. Coupled with a statistical model of spatial expression, GESTALT also provides, to our knowledge, the first paired synthesis of cell-resolved transcriptomic fields and tissue images with explicit control over cell type, density, and composition. Code is available at https://github.com/trongnhandev1011/Gestalt.

1. Introduction

Spatial transcriptomics platforms such as 10x Xenium and Visium measure gene expression while preserving the spatial context of the tissue [3, 25]. A substantial body of lit-

erature aims to address the prediction of expression from an H&E image [8, 33, 34]. The opposite direction, generating the tissue image that corresponds to a given transcriptomic state, has received considerably less attention despite comparable utility [27]. Cancer is a natural setting in which to study it, since molecular alterations manifest as diverse and clinically consequential histological patterns.

The current state of the art in Xenium expression-to-image synthesis is GeneFlow [27], which jointly trains an RNA encoder and a conditional rectified flow [16] generative model for each dataset. Adapting it to a new gene panel therefore requires retraining both the conditioning and generation pipelines, without reusing any components that may share information across datasets.

At the same time, pathology foundation models (FMs) [2, 18, 19, 35] can produce general-purpose representations of H&E tissue that can be used for both discriminative and, more recently, generative tasks. Generative models have been trained to synthesize tissue conditioned on foundation model H&E embeddings [7, 29, 31], and taken together, a foundation and a generative model provide an image representation and a renderer that can be reused rather than learned anew for each target task.

Therefore, instead of training a gene expression-to-image generative model from scratch, we propose to formulate expression-to-image synthesis as a two-stage process: we first learn to map gene expressions to pathology foundation model image embeddings, a supervised regression problem that is decoupled from generating tissue images. Once this mapping is learned, we can utilize a pre-trained decoder that renders tissue tiles from such embeddings, which can be used with little to no adaptation.

Following this formulation, we introduce GESTALT (Gene Expression Synthesis of Tissue Appearance via Latent Transfer), a lightweight gene-token transformer for predicting pathology FM tile embeddings from cell-resolved spatial gene expression, paired with a pre-trained generative model to synthesize H&E tiles from such embeddings. GESTALT exceeds GeneFlow in terms of generated image quality on its benchmark datasets (Sec. 4.2), while also adapting to each target dataset in a fraction of the time (Sec. 4.5).

Generalization is critical for a gene expression-to-image model, since spatial transcriptomics cohorts vary in gene panel, patient, disease state, study, and institution. We test whether the learned molecular-to-morphological mapping survives these shifts through zero-shot transfer across gene panels and datasets, held-out patients and disease states, and transfer across studies and tissue sources. We also test whether expression is a meaningful control space by varying cell type, density, and composition in statistically generated expression fields, enabling targeted paired-data synthesis without treating uncertain image-derived expression as ground truth [30].

Our contributions can be summarized as:

  • A new formulation for gene expression-to-image synthesis. We generate images from gene expression by predicting a pathology FM's image embedding. A lightweight gene-token transformer predicts this embedding from the cells in a tile, and a pretrained decoder turns it into an image.

  • Improvement over the SoTA at a fraction of the cost. By reusing the FM and decoder, we outperform the current state-of-the-art on three Xenium panels, improving FID by 21–32 points, while also requiring substantially fewer trainable parameters and training time.

  • Generalization and scaling. We showcase zero-shot transfer across gene panels and datasets, studies, and tissue sources, and generalization to held-out patients and disease states. Additionally, we can easily swap the FM or decoder to change the tile embedding space we operate in, or enable 1024×10241024 \times 1024 gene-to-image synthesis.

• Controllable paired synthesis. Coupled with a statistical model of spatial expression, GESTALT provides, to our knowledge, the first paired synthesis of cell-resolved transcriptomic fields and tissue images, with explicit control over cell type, density, and composition.

References (32)