NeurIPS 2026Coming to NeurIPS in Sydney?Explore papers, orals & directions

Layout Before Pixels: Topology-Anchored Transcriptome-to-Histology Generation

Jianwei Zhao, Xin Li, Fan Yang, Qiang Zhai, Ao Luo, Hong ChengNeurIPS 2026

TL;DR

Generating realistic microscope images of tissue directly from non-spatial gene expression data is like trying to paint a bustling cityscape just by listening to a census report. Rather than guessing pixels straight from RNA data, TOPOSCAPE drafts an explicit blueprint of cellular neighborhoods first, then paints the microscopic tissue details onto that scaffold. This "Layout-Before-Pixels" approach produces synthetic biopsies that don't just look convincing, but actually behave like real biological tissue in downstream medical AI tasks.

What Problem Does This Paper Address?

Digital pathology has spent years predicting gene expression from whole-slide histology images (WSIs). Recently, researchers flipped the script: can we synthesize tissue images from bulk RNA-sequencing profiles? Doing so lets scientists study how molecular states manifest physically, augment scarce medical datasets, and share patient-derived visuals without privacy risks.

The catch? Bulk RNA-seq is a "smoothie" of ~17,600 gene measurements with zero spatial coordinates, and mapping it to an image is inherently one-to-many. Existing generative models (like GANs and diffusion models) feed compressed RNA vectors straight into a black-box image generator. Because pixel-level training losses obsess over local colors and textures, these models neglect macroscopic multicellular organization. You end up with "pretty" pink-and-purple blobs that lack biologically grounded tissue architecture.

Figure 1: Illustration of TOPOSCAPE. Unlike direct transcriptome-to-image mapping, TOPOSCAPE first re- solves RNA-seq profiles into multicellular topologies that guide flow-based histology synthesis. Our Layout- Before-Pixels design anchors generation to biologically grounded tissue structure.

Methods

The authors introduce TOPOSCAPE, breaking generation into three sequential stages ($g \rightarrow z \rightarrow T \rightarrow X$):

  1. Transcriptomic State Encoder (Standard): A standard $\beta$-VAE compresses a 17,655-dimensional bulk RNA profile ($g$) into a compact 200-dimensional latent vector ($z$).
  2. RNA-guided Topological Prior Generator (rTPG — Novel): Instead of generating pixels, rTPG uses a Vision Transformer trained with MeanFlow dynamics—which models average rather than instantaneous velocity fields, enabling fast, single-step generation—to transform noise into a multi-channel cell-center map ($T$). Each channel marks the spatial locations of a specific cell type (e.g., neoplastic, inflammatory). It is reinforced by persistence-based topological regularization, a mathematical tool from algebraic topology that ensures cell clusters form realistic spatial patterns.
  3. TopoRenderer (Novel): Rather than lazily stapling the layout $T$ onto a generator as a static condition, the authors reparameterize $T$ into three distinct structural controls to guide a hierarchical, frequency-decoupled flow-matching renderer:
  4. Structure-aware initial noise ($\epsilon_s$): Using a Fourier transform, they swap the low-frequency phase of Gaussian noise with the phase of a cell-density map, pre-aligning the starting noise with the target tissue layout.
  5. Gaussian density fields ($G$): Blurred heatmaps of cell concentrations injected into a Semantic Encoder to govern coarse, low-frequency tissue organization.
  6. Distance representations ($E$): Continuous maps measuring every pixel's distance to the nearest cell center, fed into a Pixel Decoder to sharpen high-frequency cell boundaries and textures.
Figure 2: Overall framework of TOPOSCAPE. RNA-Seq embeddings are injected into a pixel-wise MeanFlow pipeline to generate topology T along with derived density G and distance E. These are hierarchically integrated into TopoRenderer to synthesize tiles. Best viewed in color.

Datasets

No new datasets were introduced; instead, TOPOSCAPE follows established benchmarks across five cohorts from The Cancer Genome Atlas (TCGA) paired with bulk RNA-seq profiles:

  • Lung adenocarcinoma (LUAD, $n = 520$)
  • Kidney renal papillary cell carcinoma (KIRP, $n = 298$)
  • Colon adenocarcinoma (COAD, $n = 289$)
  • Cervical cancer (CESC, $n = 277$)
  • Glioblastoma multiforme (GBM, $n = 212$)

Gigapixel slides are sliced into non-overlapping $256 \times 256$ tiles at $20\times$ magnification.

Key Insights and Ideas

  • Explicit topology is a plug-and-play superpower: When the authors took off-the-shelf image generators (SiT and JiT) and simply conditioned them on rTPG's generated density maps, pathology-specific error dropped dramatically (e.g., JiT's FCD plunged from 52.37 to 35.63). Resolving spatial biology before rendering helps almost any generator.
  • Frequency-matched representations matter: Ablations revealed that feeding raw point maps ($T$) or naive distance maps ($E$) alone actually hurts generation. The magic comes from pairing low-frequency semantic encoding with smooth density blobs ($G$), and high-frequency pixel decoding with crisp geometric distance maps ($E$).
  • The model learns genuine causal biology: In an in silico perturbation test, the authors fed haematopoietic (blood/immune-enriched) deconvolved RNA profiles into TOPOSCAPE. Without explicit retraining, the model systematically synthesized tissue tiles packed with higher proportions of lymphocytes.

Key Results

TOPOSCAPE beats 10 baseline models—including specialized RNA-to-image generators like RNA-CDM and GeneVAR—across every cohort:

  • Visual & Biological Fidelity: On the pooled dataset (ALL), TOPOSCAPE achieves an FID of 10.51 (vs. GeneVAR's 12.95 and RNA-CDM's 23.36) and a Fréchet Conch Distance (FCD, measured via a pathology foundation model) of 27.11 (vs. GeneVAR's 28.84 and RNA-CDM's 54.40).
  • Cellular Composition: Using HoverNet to count cell types in synthetic images, TOPOSCAPE nails real tissue distributions. In LUAD, for example, synthetic dead cell proportions hit 44.63%, virtually identical to real tissue (44.64%), whereas GeneVAR overshoots to 61.10%.
  • Downstream Utility: Pretraining a ResNet-50 tile classifier on TOPOSCAPE's synthetic data boosts accuracy by +10.2% (to 0.756). Pretraining slide-level Multiple Instance Learning (MIL) models with 512 synthetic tiles per patient lifts MambaMIL accuracy from 0.836 to 0.932 (AUC 0.948).
Figure 3: Synthetic vs. real tiles. Panel A. Cell-type distributions in real and synthetic tiles across TCGA cohorts. Panel B. HoverNet [12] visualizations showing consistent cellular composition between synthetic and real samples. Panel C. Density and distance maps, serving as the generative conditions, along with the corresponding synthetic tiles. Best viewed in color.

Limitations and Future Work

  • Detector Bias: Ground-truth topologies for training rTPG are extracted automatically via nuclei-segmentation software (HoverNet) rather than human pathologists, meaning any quirks or biases in the detector get baked into the prior generator.
  • Cohort Generalization: Evaluation is currently confined to TCGA benchmarks; testing on external clinical cohorts is needed to prove broader generalization.
  • Future Directions: The authors plan to incorporate expert-verified or multi-detector topological supervision and explore tighter conditional consistency analyses.

Summary updated

Abstract

Transcriptome-conditioned whole-slide image (WSI) synthesis aims to decode the complex mapping from molecular states to histologic phenotypes. Existing generative paradigms predominantly rely on a direct black-box transcriptome-to-image mapping, tasking a single generator with the simultaneous interpretation of transcriptome signals, inference of multicellular spatial organization, and rendering of fine-grained textures. This formulation, however, is structurally under-constrained; the underlying tissue architecture, the critical substrate linking gene expression to morphology, remains latent and only weakly supervised by pixel-level objectives. We present \textsc{TopoScape}, a topology-anchored framework for transcriptome-to-histology generation under a \emph{Layout-Before-Pixels} principle. Instead of synthesizing pixels directly from transcriptomic embeddings, \textsc{TopoScape} first resolves molecular states into explicit, multi-class cellular topologies via an RNA-guided Topological Prior Generator, reinforced by persistence-based topological regularization. These resolved topologies are further reparameterized into a suite of topology-derived controls, including structure-aware initialization, continuous density fields, and distance representations, which guide a hierarchical, frequency-decoupled flow-matching trajectory. By introducing multicellular organization as an explicit structural mediator, \textsc{TopoScape} allows molecular states to deterministically shape both the macroscopic tissue architecture and the microscopic generative process. Across five TCGA benchmarks, \textsc{TopoScape} consistently outperforms state-of-the-art methods in generative fidelity, biological realism, and downstream predictive utility.
BibTeX
@inproceedings{zhao2026layout,
  author = {Jianwei Zhao and Xin Li and Fan Yang and Qiang Zhai and Ao Luo and Hong Cheng},
  title = {{Layout Before Pixels: Topology-Anchored Transcriptome-to-Histology Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=V7ybz9CSNM},
}
Figure