Elucidating the Design Space of Flow Matching for Cellular Microscopy

Charles Jones, Emmanuel Noutahi, Jason Hartford, Cian EastwoodarXiv 2026

TL;DR

This paper systematically deconstructs and simplifies the design space of flow-matching generative models for cellular microscopy. By stripping away unnecessary domain-specific techniques and scaling up a stabilized diffusion transformer, the authors achieve a two-fold FID and ten-fold KID improvement over prior state-of-the-art methods. Furthermore, they demonstrate state-of-the-art virtual screening performance on unseen molecules by fine-tuning their model with a large pre-trained graph transformer.

What Problem Does This Paper Address?

In drug discovery and biology, understanding how cells respond to different chemical or genetic perturbations (like drugs or gene knockouts) is critical. However, physically testing every possible combination in a lab is prohibitively expensive due to combinatorial explosion. To solve this, researchers are building "virtual cell" generative models to simulate these cellular responses in silico.

Recently, flow-matching and diffusion models have shown promise for generating high-fidelity microscopy images of treated cells. However, because this application is new, the design space is plagued by complex, domain-specific ad-hoc choices—such as forcing models to "flow" directly from untreated control images to perturbed images, or using complex optimal transport couplings. This paper investigates whether these complex techniques are actually helpful, aiming to establish a clean, stable, and highly scalable recipe for generative cellular microscopy.

Methods

The authors first formalize virtual screening as a two-task problem: modeling phenotypic response (how well the base model generates diverse cell appearances) and generalizing to new perturbations (how well the model maps new molecules to the correct cell appearance).

To optimize the base model, they systematically ablate several design choices:

  1. Conditioning: They simplify the setup by using simple one-hot encodings for perturbations and experimental contexts (to capture batch effects) rather than complex pre-trained embeddings during base training.
  2. Flow Construction: Instead of modeling a direct flow from control images to perturbed images ($C \rightarrow P$), they use a standard Gaussian noise-to-data flow ($N \rightarrow D$). Crucially, this standard flow still allows for "counterfactual" generation at inference time (i.e., taking a real control image, back-solving for its noise, and rendering it under a new perturbation).
Generation vs. counterfactual mode sampling trajectories.
  1. Architecture (Microscopy Transformer - MiT): They replace the traditional U-Net with a modern Diffusion Transformer (DiT). To stabilize training in pixel-space (which is notoriously finicky for microscopy data), they introduce long-range skip connections, RMSNorm, and projection layer dropout.
The Microscopy Transformer (MiT) architecture with stabilization modifications highlighted.

For generalizing to unseen molecules, they freeze the base model and train a 100M parameter transformer adaptor to map advanced molecular embeddings into the model's conditioning space.

Conditioning strategy for seen perturbations vs. unseen perturbations using an adaptor.

Datasets

The authors evaluate their approach on standard benchmarks and scale up using a massive pretraining dataset:

  • RxRx1: A genetic intervention dataset containing roughly 171k images of siRNA gene knockdowns across multiple experimental batches.
  • BBBC021: A small-molecule perturbation dataset featuring 113 small molecules applied to MCF7 cells.
  • Phenoprints: A massive dataset used for pretraining, consisting of roughly 600k biological perturbations across 10 billion cells and 12 million well images.

Key Insights and Ideas

  • Domain intuitions can hurt performance: Intuitively, flowing from a control cell image to a treated cell image makes sense. However, the authors show this $C \rightarrow P$ approach severely suffers from overfitting due to the low entropy (limited diversity) of control images. Standard noise-to-data ($N \rightarrow D$) flows perform much better and retain the ability to do counterfactual modeling at inference time anyway.
  • Optimal Transport isn't a silver bullet: Minibatch optimal transport (OT) coupling is highly popular for straightening flow paths in natural images, but the authors found it provided zero performance or sampling efficiency benefits when scaled to large microscopy datasets.
  • Molecular embeddings are the bottleneck: While the base generative model can be improved dramatically, the performance gap narrows significantly when evaluating on unseen molecules. This indicates that our ability to represent chemistry (molecular embeddings) is currently the primary bottleneck for virtual screening, rather than the image generation mechanics themselves.

Key Results

  • Massive Performance Gains: On the RxRx1 benchmark, the best configuration (Microscopy Transformer) achieved a Fréchet Inception Distance (FID) of 9.07 and a Kernel Inception Distance (KID) of 0.84, representing a 2x FID and over 10x KID improvement over prior state-of-the-art models like CellFlux.
  • Pretraining at Scale: Pretraining on the massive Phenoprints dataset pushed performance even further to an FID of 9.00 on RxRx1, utilizing an unprecedented 1000 ExaFLOPs of total training compute.
Figure 1. We ablate, simplify, and scale flow matching for genera- tive modelling of cellular microscopy, achieving state-of-the-art performance on: (top images) the RxRx1 genetic intervention benchmark; (middle images) the BBBC021 small molecule per- turbation benchmark; and (bottom images) the BBBC021 unseen molecule virtual screening task. In the bottom plot, we display performance vs. total training compute on the RxRx1 benchmark.
  • State-of-the-Art Virtual Screening: On the BBBC021 unseen molecule task, conditioning the model on MolGPS embeddings (a 3B-parameter graph transformer) yielded a state-of-the-art FID of 18.5, outperforming standard Morgan fingerprint baselines.

Limitations and Future Work

  • Benchmark Saturation: The authors note that standard benchmarks like RxRx1 and BBBC021 are beginning to saturate. Despite scaling training compute by two orders of magnitude and pretraining on billions of cells, the performance gains on RxRx1 were relatively modest, suggesting the community needs larger, more phenotypically diverse benchmarks (such as RxRx3).
  • Representation Bottleneck: Virtual screening remains heavily dependent on the quality of the upstream molecular encoder. Future work must focus on developing better molecular representation learning models that map more accurately to morphological changes.

Summary updated

BibTeX
@misc{jones2026elucidating,
  author = {Charles Jones and Emmanuel Noutahi and Jason Hartford and Cian Eastwood},
  title = {{Elucidating the Design Space of Flow Matching for Cellular Microscopy}},
  year = {2026},
  eprint = {2603.26790},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.26790},
}
Figure