TL;DR
This paper introduces a joint flow matching framework that simultaneously models cell image latents and continuous drug concentrations using a dual-timestep formulation. This approach enables researchers to "morph" a single control cell image smoothly across a continuous dose range and even predict drug concentrations directly from cellular morphology.
What Problem Does This Paper Address?
In drug discovery and oncology, understanding how different chemical compounds affect cellular morphology is crucial. High-throughput screening uses fluorescence microscopy to capture these changes, but analyzing the results is challenging. Cellular populations are inherently heterogeneous, and changes across different drug concentrations can be incredibly subtle.
While generative AI models have recently been used to predict these cellular perturbations, existing methods fall short in handling drug dosages. They either ignore concentration entirely—treating the problem as a simple distribution-to-distribution mapping—or treat concentration as a discrete, categorical class label. The latter approach prevents models from interpolating to unseen doses and fails to capture the inherently continuous nature of dose-response effects.
Methods
The authors propose Joint Latent Flow Matching (Joint LFM) to model the joint distribution $p(z, c)$ of cell image latents ($z$) and drug concentrations ($c$).
The pipeline consists of three main components:
- Latent Space Embedding: A Variational Autoencoder (VAE) compresses high-resolution cell images ($256 \times 256$ pixels) into a lower-dimensional semantic latent space ($4 \times 32 \times 32$).
- Dual-Timestep Flow Matching: Instead of using a single timestep like standard flow matching, the authors introduce two independent timesteps: $t_z$ for the image latent and $t_c$ for the continuous concentration scalar. A U-Net velocity network learns to predict trajectories for both modalities simultaneously.
- Inversion-Based Morphing: Because flow matching relies on deterministic ordinary differential equations (ODEs), the process is fully invertible. To morph a cell, a real control cell image is encoded and integrated backward in time to find its corresponding noise representation ($z_0$). The model then integrates forward from that exact noise vector, but conditioned on a specific target concentration ($c^*$), yielding a smoothly transformed cell image.
Crucially, this joint formulation also allows for Concentration Inference: by holding the image latent constant and integrating over the concentration timestep, the model can predict the drug dose from a cell's visual appearance.
Datasets
The model was trained and evaluated on a microscopy dataset of a pediatric brain tumor medulloblastoma cell line (ONS-76).
- Compounds: The panel included five active compounds (C7, CK-666, famlasertib, paranitro-blebbistatin, and Y-27632) plus a DMSO solvent control.
- Imaging: Cells were labeled to visualize F-actin (green) and the nucleus (red). Single-cell crops ($256 \times 256$) were extracted using Cellpose, totaling roughly 23,000 to 25,000 images per compound.
- Generalization Check: The authors also evaluated the model on a second cell line (UW228) to test its broader applicability.
Key Insights and Ideas
- The Power of Dual Timesteps: Splitting the diffusion/flow timesteps allows the network to gracefully bridge two completely different data types—a highly structured image latent and a simple continuous scalar.
- Monotonic Latent Geometry: One of the most striking findings is that joint modeling naturally forces the latent space to organize itself logically. The latent displacement from the control cell scales smoothly and monotonically with the drug dose. Discrete-class baselines do not exhibit this clean geometric property.
- Zero-Shot Dose Interpolation: Because concentration is treated as a continuous scalar, the model can successfully generate realistic cell morphologies for a drug dose it never saw during training.
Key Results
- Distributional Fidelity: On the compound C7, the joint model achieved a pooled Fréchet Inception Distance (FID) of 18.98, noticeably outperforming the discrete-class baseline PhenDiff (21.53) and the concentration-agnostic Latent CellFlux (25.19).
- Generalization to Unseen Doses: In a holdout experiment where the middle concentration ($0.33\ \mu\text{M}$) was completely omitted from training, the model successfully interpolated the cell state, achieving an FID of 33.66 against real cells at that dose—nearly matching a baseline that actually had access to the data during training.
- Dose Prediction: For the concentration inference task, the unsupervised model achieved a top-1 accuracy of 34.0% and 68.0% within $\pm1$ neighboring dose on a 5-class classification task, recovering a significant portion of the performance of a fully supervised ResNet-18 baseline (48.0% top-1).
Limitations and Future Work
The authors note that their image reconstruction quality is currently upper-bounded by the frozen VAE bottleneck, which introduces minor pixel-level noise. Upgrading to a more powerful encoder-decoder architecture (such as the one used in Stable Diffusion) could significantly improve visual fidelity.
Additionally, while the current models are trained per-compound, they share a common VAE latent space. A promising next step is to build a single, unified foundation model conditioned jointly on both drug identity and continuous concentration, allowing for cross-drug comparisons and latent trajectory clustering.
Summary updated