Elucidating the Design Space of Flow Matching for Cellular Microscopy
Organizations: Imperial College London · Valence Labs · University of Manchester
Abstract
Flow-matching generative models are increasingly used to simulate cell responses to biological perturbations. However, the design space for building such models is large and underexplored. We systematically analyse the design space of flow matching models for cell-microscopy images, finding that many popular techniques are unnecessary and can even hurt performance. We develop a simple, stable, and scalable recipe which we use to train our foundation model. We scale our model to two orders of magnitude larger than prior methods, achieving a two-fold FID and ten-fold KID improvement over prior methods. We then fine-tune our model with pre-trained molecular embeddings to achieve state-of-the-art performance simulating responses to unseen molecules. Code is available at https://github.com/valence-labs/microscopy-flow-matching
Figures & tables
| Model | ExaFLOPs | Flow | OT | FID | KID | |
| PhenDiff ( Bourou et al., 2024 ) | U-Net | 0.96 | ✗ | 65.9 | 51.9 | |
| IMPA ( Palma et al., 2025 ) | StarGAN | 0.39 | - | - | 41.6 | 29.1 |
| CellFlux ( Zhang et al., 2025 ) | ADM | 7.83 | ✗ | 33.0 | 23.8 | |
| CellFluxV2 ( Zhang et al., 2026 ) | DiT-XL/2 | 6.89 | ✗ | 19.0 | 9.30 | |
| Ours – Config A | ADM | 4.70 | ✗ | 29.5 | 14.0 | |
| Ours – Config B (undertrained) | ADM | 3.93 | ✗ | 12.3 | 3.90 |
| Conditioning | Seen | Unseen | |||
| FID | KID | FID | KID | ||
| MorphoDiff ( Navidi et al., 2025 ) | RDKit2D | 65.8 | 79.9 | - | - |
| PhenDiff ( Bourou et al., 2024 ) | One-Hot | 49.5 | 31.0 | 67.7 | 34.5 |
| IMPA ( Palma et al., 2025 ) | Morgan Fingerprints | 33.7 | 26.0 | 44.5 | 30.7 |
| CellFlux ( Zhang et al., 2025 ) | Morgan Fingerprints | 18.7 | 16.2 | 42.0 | 13.1 |
| CellFluxV2 ( Zhang et al., 2026 ) | Morgan Fingerprints | 7.90 | 2.30 | 19.2 | 8.00 |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Optimiser | Adam { lr : , : , : , : } |
|---|---|
| LR schedule | Constant |
| Gradient norm clipping | 0.5 |
| Global batch size | 256 |
| Augmentation | Uniform dequantisation |
| Random flipping (horizontal and vertical) | |
| Solver | DoPri5 { } |
| NFE | FDD | KDD | FID | KID | |
|---|---|---|---|---|---|
| Config A ( ) | |||||
| guidance strength 1.0 | 381 | 272 | 14.9 | 34.0 | 16.7 |
| guidance strength 1.5 | 826 | 266 | 14.1 | 31.2 | 14.5 |
| guidance strength 2.0* | 918 | 261 | 13.8 | 29.5 | 14.0 |
| Config B ( ) | |||||
| guidance strength 1.0* | 299 | 51.0 | 1.75 | 9.90 | 1.52 |
| Interpolant | FID | KID | |
|---|---|---|---|
| Linear | 9.90 | 1.52 | |
| Variance preserving | 9.99 | 1.42 | |
| Brownian bridge, | 14.5 | 6.58 | |
| Brownian bridge, | 103 | 90.2 | |
| Brownian bridge, | 180 | 172 |
| Model | Stable (✓/✗) | Notes |
| DiT-B/2 | ✗ | Larger variants are stable for longer. |
| w/ learning rate. | ✗ | |
| w/ AdamW weight decay. | ✗ | Loshchilov & Hutter (2019) . |
| w/ Warmup + inv sqrt decay. | ✗ | Adapted from Karras et al. (2024) . |
| w/ Adam | ✗ | Berrada et al. (2024) , Appendix C. |
| w/ MLP Dropout | ✗ |
| NFE | FDD | KDD | FID | KID | |
|---|---|---|---|---|---|
| Seen molecules | |||||
| Ours (one-hot) | 239 | 23.2 | 0.63 | 4.03 | 0.31 |
| Ours (uncond.) | 242 | 25.0 | 0.58 | 4.63 | 0.68 |
| Ours (Morgan) | 241 | 23.9 | 0.50 | 4.16 | 0.18 |
| Ours (MolGPS) | 240 | 23.2 | 0.46 | 4.12 | 0.16 |
| Unseen molecules |
Flow Matching
Flow matching learns continuous-time vector fields that transport simple noise distributions into data for efficient generative modeling.
See all 639 papers