Manuscript Offprint
arXiv:2611.01141GESTALT: Fast, Generalizable Histopathology Image Synthesis from Gene Expression with Pretrained Pathology Foundation Models
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 , 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 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.
Expression-to-image generation. GeneFlow [27] is our closest directly comparable method, mapping single- or multi-cell expression to paired histology with an attention-based RNA encoder and a conditional UNet trained by rectified flow. Since its encoder and generator are trained jointly per dataset, adaptation requires retraining the generative model. GESTALT instead separates a lightweight gene-to-embedding mapper from a pretrained decoder, reused directly or adapted with LoRA. GE2Hist [1] also generates local histology from single-cell expression, but conditions on one central cell whose profile is derived from Visium HD. ST2HE [17] generates virtual H&E from tiles of DAPI morphology overlaid with transcript locations, rather than expression alone. Concurrent methods use other inputs. STMDiT [26], also built on PixCell, conditions on a slide-level UNI2-h embedding together with a Visium spot profile. SPATIA [14] uses a control cell image and a transition descriptor. MuPD [29] conditions on bulk-RNA pathway scores rather than cell-resolved expression. Our input is the measured expression and coordinates of every Xenium cell in the field; differences in platform, conditioning, and evaluation protocol prevent a matched comparison.
Cross-modal prediction and alignment. Image-to-expression methods include SPiRiT [33], which uses a vision transformer over Xenium-matched tiles; GHIST [8], which incorporates cell, neighborhood, and nuclear cues; and STEM [34], which models uncertainty with conditional diffusion. They address the reverse direction and are not directly comparable to ours.
Other methods align transcriptomics and histology in a shared space. OmiCLIP [4] aligns gene descriptions with images for retrieval, STORM [28] learns through masked multimodal reconstruction, and H&Enium [9] projects pathology and transcriptomic FM embeddings. None of them generate images from the aligned embedding. We instead render predicted embeddings and evaluate the resulting images.
3. Method
3.1. Gene expressions to image embeddings
Given a spatial expression field, GESTALT first predicts the embedding that a pathology FM assigns to the corresponding tissue tile. A pretrained decoder then renders the predicted embedding into an H&E image. The mapper preserves the hierarchical structure of the input by encoding

Figure 1. GESTALT. Each cell is encoded along the gene axis and pooled into one token, cells are mixed only with their nearest neighbors, and a query readout produces the tile vector . A de-standardization head maps into a frozen FM's embedding space, which PixCell renders. Only the purple components are trained; training regresses onto the FM's embedding of the same tile (Eq. (6))
genes within each cell before modeling interactions across nearby cells. Figure 1 summarizes the complete pipeline.
Notation. A tile comprises segmented cells. Each cell is given by its centroid and its sparse expression , where indexes a gene in the panel's vocabulary and is that gene's standardized count. The mapper is trained to map the set to a single tile image embedding . We present it as a composition of three stages, : a per-cell gene encoder, a cross-cell -NN attention stack, and a de-standardization head, each discussed below. We use hidden width and cross-cell blocks.
Per-cell gene encoding. A gene and its count form one token, , with a learned gene embedding and a small MLP on the count. These tokens self-attend along the gene axis within cell only, and a learned query pools them into one cell token, giving the first stage
with . is single-query attention rather than a mean, allowing each gene's contribution to be learned rather than fixed at . Pooling is within a cell, leaving cell tokens for the spatial stage below.
Cross-cell attention over a sparse -NN graph. A linear position embedding is added to each cell token, giving . Cells then exchange information through stacked pre-norm graph-attention (GAT) blocks after which a single learned query pools the refined cell tokens into the tile token, giving the second stage :
where is the pooled tile token. Each cell attends only to itself and a -nearest-neighbor set built from cell coordinates once per forward pass,
Restricting attention to the nearest focuses each cell's summary on its local microenvironment. The attention logit between and neighbor receives a learned pairwise bias on their relative offset,
where is the per-head width (), so closeness and direction modulate a neighbor's contribution even among the retained neighbors. () is the single hyperparameter controlling each cell's effective receptive field; we use for all main experiments.
Predicting an image embedding. A de-standardization head maps the pooled tile token z of Eq. (2) to the target embedding domain and undoes the standardization applied to the training targets,
with and the per-dimension mean and standard deviation of the training targets. is the embedding a frozen pathology FM would assign to the tile's real image.
Training. The mapping function is trained end-to-end by directly regressing real image embeddings as
with and . The first term is a squared error standardized per dimension by the same as Eq. (5), so no coordinate dominates by scale; the second constrains the direction of ; the third keeps its norm from drifting away from the target's. Predicting an embedding rather than pixels inherits PixCell's decoder architecture, resolution and sampling algorithm for free: only has to land in a space PixCell already renders. Unlike prior work that contrastively aligns expression and image modalities (OmiCLIP [4], STORM [28], H&Enium [9]), we never train for cross-modal alignment; the mapper projects gene expressions into UNi2-h's space by direct supervision alone. A frozen or LoRA-adapted decoder then renders , so with fixed, the modeling burden falls on .
3.2. Decoder adaptation
PixCell [31] is a latent diffusion transformer conditioned on a foundation-model image embedding. We adapt it with LoRA [12], applying adapters in all 28 transformer blocks to the QKV and output projections of self- and cross-attention and to both feed-forward matrices. This includes the cross-attention through which the conditioning enters. We use rank r=32 and , with zero initialization so that adaptation starts from the pretrained decoder. This adds 26.8M trainable parameters, 3.9% of PixCell's 691.9M parameters. The adapters are optimized for 8000 steps using PixCell's diffusion denoising objective [31], separately from the gene-to-embedding projection.
Training the mapper and decoder adapter separately makes their errors attributable. Alongside image metrics, we report embCOS between and the real , and oracle image metrics obtained by rendering . The oracle-to-ground-truth gap measures renderer error, while the mapper-to-oracle gap measures the effect of replacing with . We report both because they need not move together. Section S1 expands on this comparison.
3.3. Scaling to resolution
The base PixCell model synthesizes tiles at resolution. We can also utilize PixCell-1024, which is conditioned on a grid of embeddings, one per 256px subregion. GESTALT is used to predict all sixteen embeddings in a single forward pass over the field, and neither the gene encoder nor the graph-attention stack changes. A field is presented as one set of cells whose coordinates are normalized to over the full 1024px extent, so the k-NN graph of Eq. (3) spans the union of the sixteen sub-regions: a cell near a sub-region boundary attends to neighbors on the other side of it, and spatial context crosses boundaries before any sub-region is read out.
The readout is the only component that changes. The single pooling query of Eq. (2) is replaced by sixteen queries with learned content and fixed positions at the sub-region centers,
(7)
where , , and is an edge network of the same form as the backbone's. The head of Eq. (5) is then applied to each , giving .
Keeping each query local. Each query should describe its own sub-region, so that every part of the field is rendered from the cells beneath it. The learned bias alone puts only 38–51% of a query's attention there, blending neighboring sub-regions together, so we penalize attention to distant cells,
with in normalized units (one unit is 512px) and a learnable per-head weight initialized at 50. Each query then draws 88–92% from its own sub-region, while the backbone still mixes cells across sub-region boundaries.
4. Experiments
4.1. Setup
Metrics. We report FID, SSIM, and FeatDist (paired Inception-2048 distance) following GeneFlow [27]. Two further diagnostics help identify the errors introduced by our two-stage process: embCOS, the cosine similarity between the predicted and real embedding , and oracle FID, obtained by giving the same decoder the real embedding. Unless otherwise stated, we use , UNi2-h, and rank-32 LoRA. PixCell is pretrained on PanCan-30M [31]. Its documented sources are TCGA, CPTAC, GTEx, SBU, an
| FID ↓ | SSIM ↑ | FeatDist ↓ | embCOS ↑ | |
|---|---|---|---|---|
| GeneFlow [27] (multi-cell, reported, 40×) | ||||
| XeniumC1 | 47.95 | 0.28 | 14.50 | - |
| XeniumC2 | 45.50 | 0.40 | 15.61 | - |
| XeniumP1 | 34.31 | 0.23 | 13.41 | - |
| Ours (LoRA, 40×) | ||||
| XeniumC1 | 15.75 | 0.350 | 12.66 | 0.838 |
| XeniumC2 | 18.03 | 0.396 | 12.47 | 0.860 |
| XeniumP1 | 13.15 | 0.283 | 12.52 | 0.807 |
| Oracle (real embedding, 40×), decoder reference | ||||
| XeniumC1 | 14.27 | 0.353 | 11.94 | - |
| XeniumC2 | 14.75 | 0.400 | 11.69 | - |
| XeniumP1 | 11.54 | 0.287 | 11.73 | - |
Table 1. In-distribution comparison against GeneFlow's reported numbers at its native 40× (0.25 µm/px). GESTALT and oracle rows report means over seeds 7, 42 and 13. Standard deviations and native 20× results are in Sec. S2.
ovarian cancer cohort, and NLST, none of which appear among our Xenium and NCBI/GEO cohorts.
4.2. Xenium C1, C2 and P1
Datasets. We use the three Xenium melanoma FFPE samples GeneFlow [27] reports on, Xenium<sub>C1</sub> (282 genes, 100.6k cells), Xenium<sub>C2</sub> (382 genes, C1's panel nested inside, 78.7k cells) and Xenium<sub>P1</sub> (5006-gene Prime panel, 98.0k cells), using its released data and code. We compare against GeneFlow's published results and restrict superiority claims to these benchmarks, since GeneFlow does not report our HEST protocols.
In-distribution. Train and test tiles come from the same dataset, using a random 80/20 tile split as in GeneFlow's released code. Both sides are evaluated at the native 40× (0.25 µm/px), and we retrain the mapper and its LoRA adapter at this resolution.
Table 1 shows that GESTALT improves FID by 21 to 32 points across the three panels, FeatDist on all three, and SSIM on two of the three. The mapper is 1.5 to 3.3 FID above the oracle reference and predicts the real embedding at a cosine of 0.81 to 0.86. The relatively small prediction-to-oracle gaps indicate that much of the remaining error is already present when the decoder receives the real embedding. On Xenium<sub>C2</sub>, the oracle SSIM is 0.400, matching GeneFlow's 0.40 at its reported precision, while our predicted-embedding result reaches 0.396. Qualitative comparisons across the three panels are shown in Figure 2.
GeneFlow further evaluates on single-cell conditioning, where a window is centered on one cell and conditioned only on its expression. In Sec. S2 we show that GESTALT also improves perceptual metrics in the single-cell setting.
| Direction | GeneFlow | GESTALT | Oracle | ||
|---|---|---|---|---|---|
| FID | FeatDist | FID | FeatDist | FID | |
| C1 → C2 | 112.25 | 17.18 | 62.71 | 16.23 | 15.24 |
| C2 → C1 | 146.78 | 18.36 | 138.65 | 18.08 | 25.65 |
| C2 → P1 | 148.15 | 17.59 | 89.18 | 16.47 | 19.54 |
| P1 → C2 | 127.79 | 17.27 | 75.24 | 15.62 | 15.04 |
| C1 → P1 | 79.86 | 15.80 | 56.62 | 16.53 | 11.52 |
| P1 → C1 | 89.16 | 16.11 | 112.05 | 17.37 | 18.95 |
Table 2. Cross-dataset generalization, all six directions across C1, C2, P1, matching GeneFlow's Table 4 protocol: the shared 126-gene subset, native 40× on both sides. Oracle FID varies with the source as well as the target because the LoRA is fitted on the source.
Cross-dataset generalization. GeneFlow also trains on one Xenium panel and evaluates zero-shot on another, restricting both sides to the 126 genes the three panels share. We repeat that test at GeneFlow's native 40×, training on one of C1/C2/P1 and evaluating on another, all six directions, with the mapper and its LoRA fitted only on the source. GESTALT attains a better FID on five of six directions, by more than 50 points on two, and FeatDist on four (Table 2).
4.3. HEST Xenium
The preceding in-distribution benchmark holds out tiles while allowing the same slide to appear in training. The cross-dataset benchmark holds out the target C1/C2/P1 slide and tests transfer across gene panels, but does not establish separation by patient, disease state, study, or institution. We therefore construct slide-disjoint HEST-Xenium evaluations to test transfer beyond the original benchmark.
We evaluate lung and breast from HEST-1k [13], resampled to 20× (0.5 µm/px). Lung results are summarized below. Cross-study breast transfer attains FID 97–106 against oracle FID 28–41, with 80–92% top-50 gene-importance agreement across held-out slides; full results appear in Sec. S7.
Lung: disease-matched slide holdouts. We train on 13 diseased lung slides and evaluate on two held-out diseased sections, NCBI882 and NCBI861 (Table 3). GESTALT reaches FIDs of 38.22 and 59.37, within 9.6 and 14.3 of the oracle, and SSIM within 0.006 of the oracle on both sections. A mapper trained only on other slides thus transfers to held-out sections without any section-specific training, with FID close to the oracle's.
Lung: cross-condition generalization. We further train on all 15 diseased slides and hold out two healthy patients, NCBI884 and NCBI875, so that both patient identity and disease state are unseen. Even in this harder setting,

Figure 2. Qualitative in-distribution comparison across Xenium C1, C2 and P1 at native 40×. Rows are held-out tiles spanning sparse to moderate cell density: real tile (GT), frozen decoder (No-LoRA), adapted decoder (LoRA).
| FID ↓ | SSIM ↑ | FeatDist ↓ | |
|---|---|---|---|
| NCBI882 (held-out diseased section) | |||
| GESTALT | 38.22 | 0.162 | 12.69 |
| Oracle | 28.64 | 0.168 | 11.23 |
| NCBI861 (held-out diseased section) | |||
| GESTALT | 59.37 | 0.176 | 13.07 |
| Oracle | 45.09 | 0.180 | 11.62 |
Table 3. Disease-matched slide holdouts, HEST lung. Trained on 13 diseased slides and evaluated on two held-out diseased sections, NCBI882 and NCBI861, excluded from all training. Oracle rows decode the real image embedding.
GESTALT still transfers to both patients (Table S5), although the transfer is slide-specific: on NCBI884 the FID of 45.86 stays within 15.8 of the oracle's 30.07, while on NCBI875 the gap widens to 42.6 (89.65 against 47.08).
4.4. Magnification and resolution
The same pipeline supports decoding at different magnifications and field sizes:
20× magnification: We train the corresponding mapper and adapter at 20× (0.5 μm/px), PixCell's native magnification, and report the results in Sec. S2.
Larger-region synthesis at 1024×1024: GeneFlow, like most gene-to-image methods, is trained and reported at 256×256. GESTALT instead synthesizes a field sixteen times larger through the grid readout of Sec. 3.3, using a separately trained mapper. We report Crop FID and CLIP FID [10, 31] in Table 4, with full-region examples in Figure 3. To our knowledge, no prior expression-to-image method operates at this resolution, so there is no direct baseline. Section S3 analyses the readout's locality and sweeps its decay.
| Pred vs. GT | Oracle vs. GT | |||
|---|---|---|---|---|
| Crop FID | CLIP FID | Crop FID | CLIP FID | |
| XeniumC1 | 71.59 | 5.29 | 59.12 | 3.62 |
| XeniumC2 | 50.87 | 3.33 | 39.20 | 2.08 |
| XeniumP1 | 49.87 | 2.98 | 47.92 | 2.91 |
Table 4. GESTALT-1024 on C1/C2/P1, scored with Crop FID and CLIP FID via Clean-FID [20], the protocol PixCell reports for its high-resolution model.
4.5. Cost
Table 5 compares trainable parameters and wall-clock. In GeneFlow's released code, the encoder is rebuilt for each panel and adds 27k parameters per gene, primarily to predict both factors of a rank-50 gene-gene relation matrix. For GESTALT, only the gene-embedding table E grows with the panel.
The parameter counts remain unchanged at 1024×1024, where mapper training and decoder adaptation take 90–142 and 34 minutes, respectively, or 124–176 minutes in total. A 1024×1024 decode takes 4.8s against 1.7s for one 256×256 tile, so it costs about 5.7× less per unit area.
Both stages ran on one 48GB GPU, peaking at 3.4GB for mapper training and 6.4GB for decoder adaptation. Gene-Flow reports ~12h on an H100 and up to 78GB at batch size 96, without a per-panel breakdown, so Table 5 repeats its time for C1, C2, and P1. On its released UNet, a 640 × 640 training step costs 7.1× more than at 256 × 256. A fitted scaling model projects approximately 20× the training time at 1024 × 1024, or about ten days at its reported rate. This is an extrapolation, not a direct training run.
5. Controllable tissue synthesis
Jointly measuring histology and spatial expression is expen-

Figure 3. Full 1024 × 1024 region synthesis on Xenium C1, C2 and P1. Each pair is a held-out field and its prediction, produced by a single joint decoding pass over all sixteen 256 × 256 sub-regions with no tiling seams or blending. Scores in Table 4.
| Method | Params (M) | Wall-clock256² / 1024² | ||
|---|---|---|---|---|
| C1 | C2 | P1 | ||
| GeneFlow [27] | 51.0 | 53.7 | 178.5 | ~12h / – |
| GESTALTMapper | 7.7 | 7.7 | 9.5 | 55–80 / 90–142 min |
| Decoder LoRA | 26.8 | 26.8 | 26.8 | 34 / 34 min |
| Total | 34.5 | 34.5 | 36.3 | 89–114 / 124–176 min |
Table 5. Adaptation cost per Xenium panel. GESTALT wall-clock is reported as 256²/1024²; parameter counts are unchanged across resolutions. GeneFlow’s parameter counts are taken from its released code and its ~12h time is self-reported, while ours are measured on one 48GB GPU.
sive. One alternative is to infer expression from H&E [8, 33, 34], but current methods recover only part of the molecular signal. In a benchmark of seven methods, the top-performing models predict most genes with average Pearson correlations of 0.1–0.3; predictability increases with spatial autocorrelation and expression magnitude and decreases with sparsity [30].
An alternative is to generate expression first and then render its corresponding tissue. Existing simulators such as scDesign3, scCube and sCCIgen produce plausible spatial expression fields [22–24], but not paired tissue images. GESTALT provides this renderer, allowing synthetic cell-resolved fields to be paired with generated tissue images. We demonstrate this capability with a compact statistical expression model, although another simulator could be used in its place.
A statistical expression model. A synthetic field must represent variation between fields, spatial correlation among nearby cells, and realistic expression sparsity. We model these properties using a shared field state, spatially correlated cell residuals, and a detected-gene-count model.
The generator works in two stages. After reducing cells of one type to 100 principal components, it represents each real tile by the mean of its cells. For a synthetic field, it draws a shared tile state s from a Gaussian mixture fitted to
these means, then draws each cell state around it:
Here is cell 's position, is the residual covariance in PCA space, and is a spatial range fitted from the data. The number of mixture components is chosen over 1–20 by the Bayesian information criterion (BIC). This is a random-effects model with an exponential covariance function [5]. The number of cells is drawn from the observed type-specific distribution, and their positions follow a hard-core point process [6], whose minimum separation adapts to that count. After mapping back to gene space, the number of detected genes is regressed on the cell state to preserve realistic sparsity.
The mixture components produce the different appearances. BIC selects 16 components for C1 melanoma and 10 for C1 keratinocytes, against 3 for C2 keratinocytes and 2 for C2 T cells. A single state reproduces a type's mean expression but not the variation between its fields.
Synthesis by cell type. Figure 4 shows a synthetic field and its generated image for melanoma on P1, T cells on C2 and fibroblasts on C1, each beside a real tile of the same type. Each field is drawn from its type's expression model alone, with no measured expression or image as input, and is rendered by the same mapper and decoder used throughout.
Limitations. Synthetic fields are less variable than real tissue. On C1 melanoma, the mean pairwise cosine among 40 predicted field embeddings is 0.82, compared with 0.66 among 40 real tiles of the same type. Replacing sampled states with those measured from real tiles leaves this value unchanged, so the missing variation comes from structure within each field, which the Gaussian model does not capture. Section S9 varies cell density and cell-type proportion; generated CellViT nucleus counts preserve the requested density ordering.

Figure 4. Synthesis by cell type. Each expression map precedes its image. The top row shows measured expression and H&E from a held-out tile; the bottom shows an independently drawn synthetic field of the same type and its generated image. Color shows each cell's score on the type-specific first principal component, using a scale shared across rows. Reference tiles have the median cell count and field state for their type. The rows are not paired, and no ground truth exists for the synthetic fields.
6. Ablations
Ablations on the in-distribution C1/C2/P1 splits are less informative because train and test tiles may share slide-specific appearance, making weak variants look competitive. We therefore perform the main ablations under the cross-condition HEST lung setting of Sec. 4.3, on the healthy holdouts NCBI884 and NCBI875 (Table S5).
Does expression conditioning matter? Keeping the decoder fixed, we replace the predicted embedding with a constant, a seeded permutation of the predictions, or the average real FM embedding of the ten training tiles with the most similar expression. On both healthy holdouts, GESTALT outperforms the constant and permutation controls on both paired metrics, and the retrieval control on all three image metrics. Permutation preserves the generated image set and therefore leaves FID unchanged, while degrading SSIM and FeatDist. This shows that the results depend on tile-specific expression rather than PixCell alone or retrieval of similar training examples (Sec. S4).
Which mapper components matter? On the same holdouts, we ablate the positional embedding, graph-attention blocks, spatial pathway, and per-cell encoder. Removing either positional encoding or graph attention worsens FID and FeatDist on both patients, while replacing the full spatial pathway with mean pooling degrades FID further. Overall, GESTALT leads four of six comparisons and remains close to the best baseline on the other two, while achieving the best FeatDist on both patients. Full results are in Sec. S4.
Choice of foundation model. The mapper can target different FM embedding spaces by changing its output dimension and decoder conditioning. Replacing UNI2-h with
CONCH, UNI-v1, and Virchow2 supports the mapper's portability across embedding spaces. We use UNI2-h because it is PixCell's native space (Sec. S6).
GESTALT hyperparameters. We report a post-hoc sensitivity analysis over around the fixed setting (Sec. S5). We also analyze the readout decay on the held-out 1024px fields. Initializing at 50 gives the best CLIP FID on all three datasets and is used for the reported 1024px results (Sec. S3).
Additional results. The supplement also covers single-cell conditioning (Sec. S2), gene influence (Sec. S8) and qualitative galleries (Sec. S10).
7. Conclusion
Our experiments show that spatial gene expression can be mapped to pathology foundation-model representations for efficient histology synthesis across gene panels, image encoders, and resolutions. Separating molecular prediction from rendering allows mapper and decoder errors to be analyzed separately, while statistically generated expression enables paired synthetic expression-image generation. Our generalization experiments show that the formulation remains informative across multiple shifts, though performance degrades under harder cohort changes. Expression-conditioned histology synthesis remains an open problem, but these results establish foundation-model embedding prediction as a viable path toward further advances in molecular encoding, spatial modeling, and rendering.
Acknowledgements
This research was supported by National Science Foundation (NSF) grants IIS-2123920, IIS-2212046.
References
[1] Hongmin Cai, Boan Ji, Shangyan Cai, Yi Liao, Jiazhou Chen, and Weitian Huang. GE2Hist: Generating histology images from single-cell gene expression via cross-modal generative network. In Medical Image Computing and Computer Assisted Intervention (MICCAI), pages 240–250. Springer Nature Switzerland, 2025. 2
[2] Richard J. Chen, Tong Ding, Ming Y. Lu, Drew F. K. Williamson, et al. Towards a general-purpose foundation model for computational pathology. Nature Medicine, 30(3):850–862, 2024. 1, 2
[3] Tsai-Ying Chen, Li You, Jose Angelito U Hardillo, and Miao-Ping Chien. Spatial transcriptomic technologies. Cells, 12(16):2042, 2023. 1
[4] Weiqing Chen, Pengzhi Zhang, Tu N. Tran, Yiwei Xiao, Shengyu Li, Vrutant V. Shah, Hao Cheng, Kristopher W. Brannan, Keith Youker, Li Lai, Longhou Fang, Yu Yang, Nhat-Tu Le, Jun-ichi Abe, Shu-Hsia Chen, Qin Ma, Ken Chen, Qianqian Song, John P. Cooke, and Guangyu Wang. A visual-omics foundation model to bridge histopathology with spatial transcriptomics. Nature Methods, 22:1568–1582, 2025. 2, 4
[5] Noel A. C. Cressie. Statistics for Spatial Data. Wiley, revised edition, 1993. 7
[6] Peter J. Diggle. Statistical Analysis of Spatial and Spatio-Temporal Point Patterns. Chapman and Hall/CRC, third edition, 2013. 7
[7] Thomas Duboudin, Xavier Fontaine, Etienne Andrier, Lionel Guillou, Alexandre Filiot, Thalyssa Baiocco-Rodrigues, Antoine Olivier, Alberto Romagnoni, John Klein, and Jean-Baptiste Schiratti. CytoSyn: a foundation diffusion model for histopathology-tech report. arXiv preprint arXiv:2603.18089, 2026. 1
[8] Xiaohang Fu, Yue Cao, Beilei Bian, Chuhan Wang, Dinny Graham, Nirmala Pathmanathan, Ellis Patrick, Jinman Kim, and Jean Yee Hwa Yang. Spatial gene expression at single-cell resolution from histology using deep learning with GHIST. Nature Methods, 22:1900–1910, 2025. 1, 2, 7
[9] Marc Glettig, Tim Ehrensperger, Josephine Yates, and Valentina Boeva. H&Enium, applying foundation models to computational pathology and spatial transcriptomics to learn an aligned latent space. bioRxiv preprint 2025.07.22.665986, 2025. 2, 4
[10] Alexandros Graikos, Srikar Yellapragada, Minh-Quan Le, Saarthak Kapse, Prateek Prasanna, Joel Saltz, and Dimitris Samaras. Learned representation-guided diffusion models for large-image generation. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 8532–8542. IEEE, 2024. 2, 6
[11] Fabian Hörst, Moritz Rempe, Lukas Heine, Constantin Seibold, Julius Keyl, Giulia Baldini, Selma Ugurel, Jens Siveke, Barbara Grünwald, Jan Egger, and Jens Kleesiek. CellViT: Vision transformers for precise cell segmentation and classification. Medical Image Analysis, 94:103143, 2024. 15
[12] Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen.
LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations (ICLR), 2022. 4
[13] Guillaume Jaume, Paul Doucet, Andrew H. Song, Ming Y. Lu, Cristina Almagro-Pérez, Sophia J. Wagner, Anurag J. Vaidya, Richard J. Chen, Drew F. K. Williamson, Ahrong Kim, and Faisal Mahmood. HEST-1k: A dataset for spatial transcriptomics and histology image analysis. In Advances in Neural Information Processing Systems, 2024. 5, 14
[14] Zhenglun Kong, Mufan Qiu, John Boesen, Xiang Lin, Suk-won Yun, Tianlong Chen, Manolis Kellis, and Marinka Zitnik. SPATIA: Multimodal generation and prediction of spatial cell phenotypes. In International Conference on Machine Learning (ICML), 2026. 2
[15] Khang Le, Ha Thach, Anh M. Vu, Trang T. K. Vo, Han H. Huynh, David Yang, Minh H. N. Le, Thanh-Huy Nguyen, Akash Awasthi, Chandra Mohan, Zhu Han, and Hien Van Nguyen. ConStruct: Structural distillation of foundation models for prototype-based weakly supervised histopathology segmentation. In Proceedings of the 9th International Conference on Medical Imaging with Deep Learning (MIDL), pages 2893–2905. PMLR, 2026. 2
[16] Xingchao Liu, Chengyue Gong, and Qiang Liu. Flow straight and fast: Learning to generate and transfer data with rectified flow. In The Eleventh International Conference on Learning Representations, 2023. 1
[17] Zhentao Liu, Arun Das, Wen Meng, Yu-Chiao Chiu, Shou-Jiang Gao, and Yufei Huang. ST2HE: enhancing spatial transcriptomics interpretability via virtual staining for histological annotation. Briefings in Bioinformatics, 27(3):bbag326, 2026. 2
[18] Ming Y. Lu, Bowen Chen, Andrew Zhang, Drew F. K. Williamson, et al. A visual-language foundation model for computational pathology. Nature Medicine, 30(3):863–874, 2024. 1, 2
[19] MahmoodLab. UNI2-h model card. https://huggingface.co/MahmoodLab/UNI2-h, 2025. 1, 2
[20] Gaurav Parmar, Richard Zhang, and Jun-Yan Zhu. On aliased resizing and surprising subtleties in GAN evaluation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11410–11420, 2022. 6
[21] Ha-Hieu Pham, Nguyen Lan Vi Vu, Thanh-Huy Nguyen, Ulas Bagci, Min Xu, Trung-Nghia Le, and Huy-Hieu Pham. Learning disentangled stain and structural representations for semi-supervised histopathology segmentation. In Proceedings of the MICCAI Workshop on Computational Pathology, pages 278–287. PMLR, 2026. 2
[22] Jingyang Qian, Hudong Bao, Xin Shao, Yin Fang, Jie Liao, Zhuo Chen, Chengyu Li, Wenbo Guo, Yining Hu, Anyao Li, Yue Yao, Xiaohui Fan, and Yiyu Cheng. Simulating multiple variability in spatially resolved transcriptomics with scCube. Nature Communications, 15:5021, 2024. 7
[23] Dongyuan Song, Qingyang Wang, Guanao Yan, Tianyang Liu, Tianyi Sun, and Jingyi Jessica Li. scDesign3 generates realistic in silico data for multimodal single-cell and spatial omics. Nature Biotechnology, 42:247–252, 2024.
[24] Xiaoyu Song, Joselyn C. Chavez-Fuentes, Weiping Ma, Weijia Fu, Sujung Crystal Shin, Pei Wang, and Guo-Cheng Yuan. sCCIgen: a high-fidelity spatially resolved transcriptomics data simulator for cell-cell interaction studies. Genome Biology, 26:354, 2025. 7
[25] Luyi Tian, Fei Chen, and Evan Z Macosko. The expanding vistas of spatial transcriptomics. Nature biotechnology, 41(6):773–782, 2023. 1
[26] Pantelis R Vlachas, Kalin Nonchev, Viktor H Koelzer, and Gunnar Rätsch. Transcriptomics-conditioned virtual tissue synthesis via diffusion transformers. In ICML Workshop on Structured Data for Health (SD4H), 2026. 2
[27] Mengbo Wang, Shourya Verma, Aditya Malusare, Luopin Wang, Yiyang Lu, Vaneet Aggarwal, Mario Sola, Ananth Grama, and Nadia Atallah Lanman. GeneFlow: Translation of single-cell gene expression to histopathological images via rectified flow. In Advances in Neural Information Processing Systems (NeurIPS), 2025. 1, 2, 4, 5, 7, 11, 12, 14, 15
[28] Jinxi Xiang, Siyu Hou, Yuchen Li, Ryan Quinton, Xiaoming Zhang, Feyisope Eweje, Xiangde Luo, Yijiang Chen, Zhe Li, Colin Bergstrom, Ted Kim, Sierra Willens, Francesca Maria Olguin, Matthew Abikenari, Andrew Heider, Sanjeeth Rajaram, Joel Neal, Maximilian Diehn, Xiang Zhou, and Ruijiang Li. A multimodal foundation model of spatial transcriptomics and histology for biological discovery and clinical prediction. arXiv preprint arXiv:2604.03630, 2026. 2, 4
[29] Jinxi Xiang, Mingjie Li, Siyu Hou, Yijiang Chen, Xiangde Luo, Yuanfeng Ji, Xiang Zhou, Ehsan Adeli, Akshay Chaudhari, Curtis P. Langlotz, Kilian M. Pohl, and Ruijiang Li. A generative foundation model for multimodal histopathology. arXiv preprint arXiv:2604.03635, 2026. 1, 2
[30] Jacky Xie, Xiao Tan, Yuanhao Jiang, Hao Nguyen, Nan Ye, and Quan Nguyen. Performance of deep learning methods for spatial gene expression prediction from histology images: a comprehensive assessment. Bioinformatics Advances, 6(1): vbag202, 2026. 2, 7
[31] Srikar Yellapragada, Alexandros Graikos, Zilinghan Li, Kostas Triaridis, Varun Belagali, Tarak Nath Nandi, Karen Bai, Beatrice S. Knudsen, Tahsin Kurc, Rajarsi R. Gupta, Prateek Prasanna, Ravi K. Madduri, Joel Saltz, and Dimitris Samaras. PixCell: A generative foundation model for digital histopathology images. arXiv preprint arXiv:2506.05127, 2025. 1, 2, 4, 6
[32] Srikar Yellapragada, Alexandros Graikos, Kostas Triaridis, Prateek Prasanna, Rajarsi Gupta, Joel Saltz, and Dimitris Samaras. ZoomLDM: Latent diffusion model for multi-scale image generation. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 23453–23463. IEEE, 2025. 2
[33] Yue Zhao, Elaheh Alizadeh, Hash Brown Taha, Yang Liu, Ming Xu, J. Matthew Mahoney, and Sheng Li. Inferring single-cell spatial gene expression with tissue morphology via explainable deep learning. bioRxiv preprint 2024.06.12.598686, 2025. 1, 2, 7
[34] Sichen Zhu, Yuchen Zhu, Molei Tao, and Peng Qiu. Diffusion generative modeling for spatially resolved gene ex-
pression inference from histology images. In International Conference on Learning Representations (ICLR), 2025. 1, 2, 7
[35] Eric Zimmermann, Eugene Vorontsov, Julian Viret, Adam Casson, Michal Zelechowski, George Shaikovski, Neil Tenenholtz, James Hall, David Klimstra, Razik Yousfi, Thomas Fuchs, Nicolo Fusi, Siqi Liu, and Kristen Severson. Virchow2: Scaling self-supervised mixed magnification models in pathology. arXiv preprint arXiv:2408.00738, 2024. 1, 2
GESTALT: Fast, Generalizable Histopathology Image Synthesis from Gene Expression with Pretrained Pathology Foundation Models
Supplementary Material
S1. Separating mapper and renderer error
The adapter never uses expression or mapper predictions: it is fitted only on real pairs from the training split. Held-out tiles are excluded; in zero-shot experiments, all evaluation slides are excluded from both mapper and adapter training.
For a held-out tile , the same decoder renders our prediction and the oracle . Oracle metrics show the error left with the real embedding; the prediction-to-oracle gap shows the additional effect of using . embCOS = measures this difference before decoding.
As the test setting gets harder, the main source of error moves from the decoder to the mapper. From in-distribution C1/C2/P1 to cross-condition lung and cross-study breast, the FID gap increases from 1.5–3.3 to 15.8–42.6 and 62.5–76.8, while embCOS falls from 0.81–0.86 to 0.66–0.73 and 0.40–0.48. Thus, much of the remaining in-distribution error is already present at the decoder, while embedding transfer becomes limiting under distribution shift. The trend is descriptive because the protocols also differ in dataset, resolution and evaluation size.
S2. Xenium C1, C2 and P1
S2.1. Repeated-run results at native 40×
The main paper reports means over three independently trained mappers and LoRAs. Table S3 gives the corresponding standard deviations on the same fixed held-out tiles alongside GeneFlow’s published results.
The reported gain is stable across independent runs: FID standard deviation is only 0.08–0.17, against a 21–32 point improvement over GeneFlow. The comparison is therefore not driven by one run.
S2.2. Single-cell conditioning
GeneFlow [27] evaluates two settings. Multi-cell conditioning uses every cell in a fixed tissue window. Single-cell conditioning centers a window on one cell and uses only that cell’s expression. The main paper compares against GeneFlow’s multi-cell numbers (Table 1). Table S1 reports the single-cell setting, both sides at native 40×. The advantage is not specific to multi-cell conditioning: in the single-cell setting, GESTALT lowers mean FID by 2.6–24.9 and mean FeatDist by 0.9–3.1 on all three, while improving mean SSIM on 2/3.
| FID ↓ | SSIM ↑ | FeatDist ↓ | |
|---|---|---|---|
| GeneFlow [27] (single-cell, reported) | |||
| XeniumC1 | 20.73±8.45 | 0.24±0.04 | 14.90±2.55 |
| XeniumC2 | 42.61±4.50 | 0.35±0.06 | 15.65±2.28 |
| XeniumP1 | 27.43±5.91 | 0.17±0.03 | 14.53±2.15 |
| GESTALT (ours, LoRA, single-cell) | |||
| XeniumC1 | 18.16±2.54 | 0.3202±0.0003 | 13.38±0.09 |
| XeniumC2 | 17.74±2.41 | 0.3263±0.0019 | 12.52±0.05 |
| XeniumP1 | 20.01±1.20 | 0.2284±0.0010 | 13.63±0.08 |
Table S1. Single-cell conditioning, both sides at native 40×. GESTALT reports mean ± s.d. over three independently trained mapper and decoder LoRA runs on the same fixed full holdout; GeneFlow values are as reported. GESTALT improves FID and FeatDist on all three datasets and SSIM on two of three, the exception being SSIM on Xenium<sub>C2</sub>. Every held-out cell is evaluated in each GESTALT run, 20 113 / 15 748 / 19 584 for C1 / C2 / P1.
S2.3. Native 20× results
Table S2 reports our in-distribution results at PixCell’s native 20× resolution (0.5 µm/px). The main paper uses 40× to match GeneFlow’s evaluation. The pipeline therefore also works at PixCell’s native resolution. These results are not directly comparable with the 40× since the mapper and adapter are trained separately at each resolution.
Figure S1 shows that frozen PixCell produces plausible H&E appearance but often mismatches tissue extent and nuclear morphology; LoRA better follows the ground truth.
| FID ↓ | SSIM ↑ | FeatDist ↓ | |
|---|---|---|---|
| XeniumC1 | 28.7 | 0.22 | 12.6 |
| XeniumC2 | 29.8 | 0.26 | 12.0 |
| XeniumP1 | 24.3 | 0.19 | 12.1 |
Table S2. In-distribution results for the LoRA-adapted pipeline at PixCell’s native 20×. The mapper and adapter are trained at this resolution, so these values are not directly compared with the separately trained 40× runs.
S3. The 1024×1024 grid readout
We complement the main-paper definition of the grid readout by testing whether its sixteen queries remain local while the shared backbone communicates across sub-region boundaries.
The distance penalty makes the readout local (Figure S2): at , attention within a query’s own sub-region rises from 41.4% to 90.3% on C1, 50.9% to 91.5% on C2 and 38.1% to 88.4% on P1. Increasing to 100 reaches only 88–95%, so locality is already near saturation at 50. The penalty affects only the readout; the shared backbone continues to pass context across boundaries.

Figure S1. Effect of decoder adaptation at native 20×. Each dataset shows two held-out tiles spanning lower to higher cell density. Columns compare the ground truth, the mapper prediction rendered by frozen PixCell (No-LoRA), and the same prediction rendered by the adapted decoder (LoRA). Adaptation improves agreement in tissue extent and nuclear morphology.
| Dataset | Conditioning | FID ↓ | SSIM ↑ | FeatDist ↓ | embCOS ↑ |
|---|---|---|---|---|---|
| XeniumC1 | GeneFlow | 47.95±7.38 | 0.28±0.10 | 14.50±2.80 | - |
| Ours | 15.75±0.08 | 0.3500±0.0004 | 12.66±0.01 | 0.838±0.001 | |
| Oracle | 14.27±0.06 | 0.3525±0.0005 | 11.94±0.01 | - | |
| XeniumC2 | GeneFlow | 45.50±4.10 | 0.40±0.09 | 15.61±2.26 | - |
| Ours | 18.03±0.11 | 0.3964±0.0005 | 12.47±0.07 | 0.860±0.001 | |
| Oracle | 14.75±0.04 | 0.3996±0.0006 | 11.69±0.05 | - | |
| XeniumP1 | GeneFlow | 34.31±5.65 | 0.23±0.11 | 13.41±2.19 | - |
| Ours | 13.15±0.17 | 0.2829±0.0007 | 12.52±0.02 | 0.807±0.001 | |
| Oracle | 11.54±0.18 | 0.2870±0.0004 | 11.73±0.03 | - |
Table S3. In-distribution results at native 40×. GESTALT and oracle rows report mean ± s.d. over three independent runs on the same fixed held-out split; GeneFlow [27] values are reproduced as reported. Each GESTALT run independently initializes and trains the mapper and decoder LoRA and sets the diffusion sampling noise.

Figure S2. Readout attention of a single query over a held-out C1 field, with its sub-region outlined. The γ=50 penalty raises this query's in-region attention from 37% (left) to 97% (right). These are values for one query, not dataset means; the per-dataset means over all sixteen queries are given in the text of this section.
Choosing the readout decay. Table S4 sweeps the initial value of the learnable γ, the hyperparameter introduced by the grid readout; γ=0 disables the penalty. Either positive penalty improves both metrics over γ=0 on all three datasets (Table S4). We use γ=50 because it gives the best CLIP FID among the swept settings on all three and the best Crop FID on C2 and P1; γ=100 leads only Crop FID on C1.
The failure mode is visible in Figure S3: without the
penalty, the sixteen outputs become too similar and over-write pale or empty regions; either positive setting restores regional variation.
| Crop FID ↓ | CLIP FID ↓ | ||
|---|---|---|---|
| XeniumC1 | γ=0 | 75.96 | 8.54 |
| γ=50 | 71.59 | 5.29 | |
| γ=100 | 66.37 | 5.84 | |
| Oracle | 59.12 | 3.62 | |
| XeniumC2 | γ=0 | 63.93 | 5.70 |
| γ=50 | 50.87 | 3.33 | |
| γ=100 | 60.81 | 3.51 | |
| Oracle | 39.20 | 2.08 | |
| XeniumP1 | γ=0 | 56.75 | 4.13 |
| γ=50 | 49.87 | 2.98 | |
| γ=100 | 51.40 | 3.37 | |
| Oracle | 47.92 | 2.91 |
Table S4. Readout decay sweep on all fully covered held-out fields. Settings share the adapter, seed and sampler noise, so they differ only in the readout penalty.
Xenium C2

Figure S3. Readout decay on held-out 1024×1024 fields. Columns compare the ground truth with ; grid lines mark the sixteen readout regions. With , regional variation collapses and pale or empty areas fill with tissue. Both positive settings recover these structures. Quantitative Crop FID / CLIP FID results are reported in Table S4.
S4. Conditioning and mapper design
Why ablate on HEST lung? C1/C2/P1 provide the matched comparison with GeneFlow, but their indistribution protocol holds out tiles rather than slides. Training and test tiles may therefore share slide-specific appearance, making that setting less diagnostic of whether the conditioning and mapper generalize. HEST lung instead withholds both evaluation patients and the healthy target state from training. We use this stricter setting to test whether the result depends on tile-specific expression and whether the mapper needs spatial and cell-resolved components. Every comparison uses the same training pool, decoder adapter, and full NCBI884 and NCBI875 evaluation slides. Full GESTALT and oracle results on these slides in Table S5.
| FID ↓ | SSIM ↑ | FeatDist ↓ | embCOS ↑ | |
|---|---|---|---|---|
| NCBI884 (unseen healthy patient) | ||||
| GESTALT | 45.86 | 0.203 | 13.70 | 0.732 |
| Oracle | 30.07 | 0.221 | 11.98 | - |
| NCBI875 (unseen healthy patient) | ||||
| GESTALT | 89.65 | 0.313 | 14.31 | 0.659 |
| Oracle | 47.08 | 0.324 | 11.91 | - |
Table S5. Cross-condition HEST lung holdouts. Training is on 15 diseased slides, so each holdout crosses patient and disease state together. Full slides, and , one checkpoint and one adapter. The mapper sits 15.8 FID above the oracle on NCBI884, 42.6 on NCBI875.
Does expression conditioning matter? Keeping the decoder fixed, we compare three alternatives. A constant training-set mean tests PixCell without tile-specific information. Permutation gives each tile another tile's predicted embedding and diffusion seed, so the set of generated images is unchanged but each image no longer belongs to its own tile. Top-10 retrieval tests whether similar training ex-
pression suffices without a learned mapper.
| FID ↓ | SSIM ↑ | FeatDist ↓ | |
|---|---|---|---|
| NCBI884 (unseen healthy patient) | |||
| Constant mean | 86.47 | 0.142 | 15.06 |
| Permuted prediction | 45.86 | 0.165 | 15.24 |
| Top-10 retrieval | 69.53 | 0.139 | 14.59 |
| GESTALT | 45.86 | 0.203 | 13.70 |
| Oracle (reference) | 30.07 | 0.221 | 11.98 |
| NCBI875 (unseen healthy patient) | |||
| Constant mean | 113.48 | 0.169 | 15.43 |
| Permuted prediction | 89.65 | 0.257 | 15.87 |
| Top-10 retrieval | 97.41 | 0.191 | 15.25 |
| GESTALT | 89.65 | 0.313 | 14.31 |
| Oracle (reference) | 47.08 | 0.324 | 11.91 |
Table S6. Conditioning-input ablation, HEST lung. All rows use the complete evaluation slides and the same decoder LoRA. Permutation leaves the set of generated images unchanged, so its FID equals GESTALT's by construction.
Table S6 supports our conditioning design. The full model beats the constant and permutation controls on both paired metrics, and retrieval on all three metrics, on both slides. Permutation keeps the same images, so its FID is identical, yet both paired metrics worsen because each image no longer matches its tile. The result therefore depends on giving each tissue field its own molecular state, rather than on PixCell producing plausible histology alone.
Which mapper components matter? We remove one component at a time, retraining each variant under the same protocol. No positional embedding removes only the explicit absolute-coordinate embedding ; the k-NN graph and relative-offset bias remain. No graph attention removes message passing; Mean-pool MLP replaces the spatial pathway with mean and standard-deviation pooling; and Detected-mean MLP also replaces the per-cell encoder with detected-gene means and log cell count.
| FID ↓ | SSIM ↑ | FeatDist ↓ | |
|---|---|---|---|
| NCBI884 (unseen healthy patient) | |||
| No positional embedding | 48.50 | 0.182 | 14.13 |
| No graph attention | 46.57 | 0.218 | 14.02 |
| Mean-pool MLP | 68.51 | 0.224 | 14.56 |
| Detected-mean MLP | 69.28 | 0.160 | 14.34 |
| GESTALT | 45.86 | 0.203 | 13.70 |
| Oracle (reference) | 30.07 | 0.221 | 11.98 |
| NCBI875 (unseen healthy patient) | |||
| No positional embedding | 104.22 | 0.266 | 14.96 |
| No graph attention | 100.50 | 0.306 | 14.75 |
| Mean-pool MLP | 127.58 | 0.308 | 15.25 |
| Detected-mean MLP | 87.32 | 0.238 | 14.54 |
| GESTALT | 89.65 | 0.313 | 14.31 |
| Oracle (reference) | 47.08 | 0.324 | 11.91 |
Table S7. Mapper-architecture ablation on held-out HEST lung patients. Each architecture uses the same training pool, decoder LoRA, and evaluation protocol on the full evaluation slides.
Because every architecture in Table S7 uses the same adapted PixCell decoder, differences between rows isolate the gene-to-embedding mapping while holding the renderer fixed. Replacing the spatial pathway with mean pooling increases FID by 22.65 on NCBI884 and 37.93 on NCBI875, showing that the full-system performance cannot be attributed to the pretrained renderer alone. This spatial modeling also differs from GeneFlow, whose multi-cell encoder aggregates per-cell expression without explicitly using cell coordinates [27]; GESTALT instead incorporates coordinates through its positional and neighborhood-based spatial pathway. Removing either the absolute-position embedding or graph attention worsens FID and FeatDist on both slides, with the larger loss from removing the position embedding, while removing the per-cell encoder lowers SSIM on both. GESTALT leads four of six metrics: FID and FeatDist on NCBI884, and SSIM and FeatDist on NCBI875. Mean-pool MLP leads NCBI884 SSIM but incurs much higher FID and FeatDist, while Detected-mean MLP leads NCBI875 FID but sharply reduces SSIM. Together, these results favor the spatial, cell-resolved mapper, with no single metric driving the conclusion.
S5. Sensitivity to k-NN neighborhood size
The main paper fixes k=8. Table S8 varies only the mapper's neighborhood size on the two cross-condition lung holdouts; all settings share the same LoRA-adapted decoder. By FID, k=8 is the best cross-slide compromise: it ranks first on NCBI875, 0.65 ahead of k=32, and second on NCBI884, only 0.21 behind k=4. SSIM spans at most 0.010 on either slide. This post-hoc result supports k=8 as the fixed default.
| k | NCBI875 | NCBI884 | ||
|---|---|---|---|---|
| FID ↓ | SSIM ↑ | FID ↓ | SSIM ↑ | |
| 4 | 107.75 | 0.316 | 45.65 | 0.210 |
| 8 | 89.65 | 0.313 | 45.86 | 0.203 |
| 16 | 97.36 | 0.316 | 47.73 | 0.206 |
| 32 | 90.30 | 0.306 | 48.40 | 0.202 |
Table S8. Post-hoc sensitivity to k on the two cross-condition lung holdouts. Both slides are excluded from mapper and adapter training, and all settings share the same decoder adapter.
| FM | NCBI875 | NCBI884 | ||
|---|---|---|---|---|
| FID | SSIM | FID | SSIM | |
| Virchow2 | 101.58 | 0.318 | 44.16 | 0.207 |
| UNI-v1 | 111.19 | 0.310 | 51.12 | 0.213 |
| CONCH | 86.67 | 0.321 | 45.56 | 0.206 |
| UNI2-h | 89.65 | 0.313 | 45.86 | 0.203 |
Table S9. Four embedding spaces on the two held-out lung slides. Each complete pipeline uses the same mapper design and protocol with its own output width and decoder LoRA. The UNI2-h row is the GESTALT row of Table S5.
S6. Choice of foundation model
We test whether the mapper architecture is tied to UNI2-h by retraining it in the CONCH, UNI-v1 and Virchow2 embedding spaces. Table S9 supports the mapper's portability across embedding spaces. No space leads both slides: CONCH leads FID and SSIM on NCBI875, while Virchow2 leads FID and UNI-v1 leads SSIM on NCBI884. UNI2-h remains within 2.98 FID and 0.010 SSIM of the best arm on each slide. We therefore retain UNI2-h because it is PixCell's native conditioning space, not because it wins every metric. Qualitative examples are shown in Figure S8.
S7. Cross-study breast transfer
This is our most stringent transfer setting, combining cross-study transfer with a fully held-out patient cohort. Within HEST-1k [13], training uses three 10x Xenium breast samples (TENX94/95/99; three patients, 1.82M cells), while evaluation uses three NCBI/GEO samples (NCBI783/784/785; two patients, 427k cells) on their shared 280-gene panel. Evaluation slides are excluded from mapper and adapter training.
Under this compound shift, image fidelity degrades substantially. Prediction FID is 97.1–105.6, compared with 28.3–40.8 for the decoder oracle, while embCOS falls to 0.40–0.48 (Table S12). The large gap to the oracle suggests that much of the error comes from the predicted embedding rather than the decoder (Sec. S1).
Despite this degradation, the mapper retains a stable expression signal: gene-influence rankings remain highly consistent across the held-out slides (Sec. S8). The training and held-out samples differ in study, patient cohort and tissue source, and receptor status varies within the held-out cohort.
S8. Stability of gene influence rankings
| Setting | Overlap | % | Chance % | ||
|---|---|---|---|---|---|
| Lung(343 genes) | 50 | 43/50 | 86 | 15 | |
| 100 | 90/100 | 90 | 29 | ||
| Cross-study(280 genes) | 50 | 40–46/50 | 80–92 | 18 | |
| 100 | 86–98/100 | 86–98 | 36 |
Table S10. Agreement of gene-influence rankings across held-out slides. “Chance %” is the expected overlap under independent rankings. Cross-study values span the three pairs of NCBI783/784/785, with the largest reported.
We ask whether one mapper depends on a stable set of genes across unseen slides. Following GeneFlow [27], we rank genes by accumulating the absolute gradient of w.r.t. per-cell expression over 300 tiles per slide. We compare top- rankings from the same mapper across two cross-condition lung or three cross-study breast hold-outs, using a hypergeometric test against the measured gene panel.
Table S10 shows that the mapper relies on the same genes across held-out slides in both settings. Lung shares 86% of its top 50 genes against 15% expected by chance; cross-study breast shares 80–92% against 18%, despite its larger image-metric gap. Agreement remains significant at top 100 in both settings.
The shared rankings include recognizable tissue-associated genes. Lung includes immune and stromal markers such as HLA-DQB1, MS4A1, MARCO, ACKR1, MFAP5, SFRP2 and DCN; breast includes adipocyte and stromal markers such as ADIPOQ, LPL, LEPR, LYVE1, MMP11, LAMA2 and CXCL12.
S9. Controllable tissue synthesis: density and proportion
The main paper demonstrates control by cell type. Here we vary density and cell-type proportion, testing whether generated morphology follows each change while everything else is kept fixed.
Cell density. We add cells to a real 19-cell C2 field, sampling from its T-cell-rich composition and expression state. The 19–66 sweep stays within this tissue’s observed range (median 55, reaching 81). Generated tissue tracks the requested density in Figure S5. CellViT [11] nuclei increase monotonically from 32 to 79 as the request rises from 19 to 66. We use the same unretrained detector on real tiles matched by assay count.
| Requested | Generated(CellViT) | Real tile | Real(CellViT) |
|---|---|---|---|
| 19 | 32 | 19 | 14 |
| 28 | 38 | 24 | 25 |
| 38 | 61 | 38 | 57 |
| 48 | 67 | 48 | 61 |
| 66 | 79 | 66 | 72 |
Table S11. Density response under the same nucleus detector. Real tiles are nearest-matched by Xenium assay count. Generated nuclei track the request (), and detected real nuclei track assay counts ().
Cell-type proportion. Holding cell positions and the total count fixed at 36, we vary the fraction of cells given melanoma expression against T cell expression.
In Figure S4, increasing melanoma fraction makes generated nuclei larger, paler and more vesicular and the surrounding material more eosinophilic. Real tiles show the same difference between the two extremes. Together, the sweeps demonstrate that generated morphology responds systematically to controlled changes in cell density and cell-type proportion.
S10. Qualitative generalization galleries
These galleries complement the full-slide quantitative results for lung transfer, cross-study breast transfer and foundation-model choice. Examples were selected from seeded random candidate subsets and are illustrative; all reported metrics use the complete evaluation sets. Comparisons always use the same tiles. The three settings appear in Figures S6 to S8. The lung and breast galleries place each ground-truth tile beside the oracle and expression-conditioned prediction , following the decomposition defined in Sec. S1.

Figure S4. Cell-type proportion. Positions and total count are fixed; only the fraction of cells assigned melanoma rather than T-cell expression changes. The top row gives an unpaired real reference nearest each requested composition; the middle row is the synthetic expression input and the bottom row its generated image.

Figure S5. Cell density. Column 1 is real tissue of this type at its typical density and is an appearance reference. The remaining columns add cells to a separate 19-cell field while retaining its composition and expression state. Each map appears above its generated image.
| Test slide | Patient | GESTALT | Oracle | |||||
|---|---|---|---|---|---|---|---|---|
| FID ↓ | SSIM ↑ | FeatDist ↓ | embCOS ↑ | FID ↓ | SSIM ↑ | FeatDist ↓ | ||
| NCBI783 | 5 | 97.06 | 0.313 | 17.54 | 0.479 | 28.28 | 0.287 | 13.80 |
| NCBI784 | 4 | 103.35 | 0.318 | 16.08 | 0.408 | 40.83 | 0.363 | 14.23 |
| NCBI785 | 4 | 105.59 | 0.376 | 16.36 | 0.403 | 28.75 | 0.428 | 13.19 |
Table S12. Cross-study generalization, 10x → GEO breast on the shared 280-gene panel, every held-out tile evaluated. Reported per slide because NCBI784 and NCBI785 are two sections of one patient.
NCBI884
NCBI875

Figure S6. Lung cross-condition holdouts. Columns show ground truth (GT), oracle decoding from the real FM embedding , and the expression-conditioned GESTALT prediction . Both slides are healthy controls from unseen patients, held out against a training pool of 15 diseased slides. Predictions retain broad tissue organization and large open spaces but not exact local structure. Transfer is uneven: the full-slide prediction-to-oracle FID gap is 15.8 on NCBI884 and 42.6 on NCBI875 (Table S5).
NCBI783
NCBI784
NCBI785

Figure S7. Cross-study transfer, 10x Xenium breast to GEO breast on the shared 280-gene panel. Columns show ground truth (GT), oracle decoding from the real FM embedding , and the expression-conditioned GESTALT prediction . The most visible error in GESTALT predictions is a clear overall color shift from the ground truth; oracle images more closely retain its color and coarse appearance, matching the large prediction-to-oracle gap in Table S12.

Figure S8. Four embedding spaces on identical held-out tiles of NCBI875 and NCBI884, each rendered by its own adapted decoder. The same mapper design produces coarse tissue patterns in all four spaces by changing only its output width, although local layout varies (Table S9).