CellFlow enables generative single-cell phenotype modeling with flow matching

Leo C. Stein, Jonas Simon Fleck, Daniil Bobrovskiy, Lea Zimmermann, Sören Becker, Alessandro Palma, Leander Dony, Alejandro Tejada-Lapuerta, Guillaume Huguet, Hsiu‐Chuan Lin, Nadezhda V. Azbukina, Fátima Sanchís-Calleja, Théo Uscidda, Artur Szałata, Manuel Gander, Aviv Regev, Barbara Treutlein, J. Gray Camp, Fabian J. TheisbioRxiv 2025

Abstract

High-content phenotypic screens provide a powerful strategy for studying biological systems, but the scale of possible perturbations and cell states makes exhaustive experiments unfeasible. Computational models that are trained on existing data and extrapolate to correctly predict outcomes in unseen contexts have the potential to accelerate biological discovery. Here, we present CellFlow, a flexible framework based on flow matching that can model single cell phenotypes induced by complex perturbations. We apply CellFlow to various phenotypic screens, accurately predicting expression responses to a wide range of perturbations, including cytokine stimulation, drug treatments and gene knockouts. CellFlow successfully modeled developmental perturbations at the whole-embryo scale and guided cell fate and organoid engineering by predicting heterogeneous cell populations arising from combinatorial morphogen treatments and by performing a virtual organoid protocol screen. Taken together, CellFlow has the potential to accelerate discovery from phenotypic screens by learning from existing data and generating phenotypes induced by unseen conditions.

Introduction: Navigating the Combinatorial Explosion of Biology

Biological systems are governed by a staggering number of variables. Understanding how cells respond to diverse stimuli—such as drugs, genetic mutations, or environmental cues—presents a "combinatorial explosion." Experimentally testing every possible combination of perturbations across various cell types and dosages is practically impossible.

While computational models have been developed to bridge these gaps, they often face two primary challenges. First, they struggle to capture heterogeneity; treatments frequently push cells toward diverse states rather than a single "average" outcome. Second, generalization to unseen, out-of-distribution conditions remains difficult for many existing frameworks. CellFlow addresses these issues by treating perturbation modeling as a generative distribution-to-distribution mapping problem.

Methods: The CellFlow Framework

CellFlow utilizes flow matching, a generative technique related to diffusion models, to learn a time-dependent vector field that transforms a starting distribution (e.g., control cells) into a target distribution (e.g., perturbed cells).

CellFlow architecture overview, illustrating the integration of perturbation covariates, the aggregator module, and the flow matching framework for distribution-to-distribution mapping.

Key components of the framework include:

  • Optimal Transport (OT): Since single-cell sequencing is destructive, the same cell cannot be measured before and after treatment. CellFlow employs OT to mathematically pair phenotypically similar cells, establishing an efficient learning path.
  • Biological Embeddings: To enhance generalization, CellFlow incorporates pre-trained biological "languages," such as ESM2 for gene knockouts and molecular fingerprints for drugs, providing the model with chemical and biological intuition.
  • Permutation-Invariant Aggregators: To model combinatorial effects (e.g., Drug A + Drug B), the framework uses attention mechanisms and DeepSets, ensuring consistent predictions regardless of input order.

Results: Validation and Scaling Laws

CellFlow was validated across diverse high-content screens, including a 10-million-cell PBMC cytokine atlas, zebrafish developmental gene knockouts (ZSCAPE), and various cancer cell line drug screens (sciPlex3).

Superior Accuracy and Distribution Capture

CellFlow consistently outperformed established baselines like GEARS and CPA. In drug combination tasks, it reduced the error of standard additive models by 66%. Crucially, unlike mean-shift models, CellFlow captures the full variance of the population, which is essential for identifying specific sub-population responses in developmental biology.

Scaling Laws and Virtual Screening

The authors identified a biological scaling law: as the model is exposed to more perturbation types, its predictive accuracy for novel perturbations improves linearly in log-log space.

Performance scaling of CellFlow as a function of the number of donors seen during training for a test cytokine.

This predictive power enables virtual protocol screening. For instance, the authors simulated 23,000 different brain organoid growth protocols, identifying optimal timing and combinations for producing rare cell types without exhaustive laboratory experimentation.

Discussion: Limitations and Future Directions

While CellFlow represents a significant advancement, its performance is inherently tied to the quality of input embeddings. If the underlying biological "language" (e.g., ESM2) misses functional nuances, the model's predictions may be limited. Furthermore, predicting effects for entirely new classes of perturbations remains a challenge.

Future work involves integrating single-cell foundation models for improved representations and extending the framework to spatial transcriptomics and multi-omic data, potentially modeling RNA and protein dynamics simultaneously.

Summary updated

BibTeX
@misc{stein2025cellflow,
  author = {Leo C. Stein and Jonas Simon Fleck and Daniil Bobrovskiy and Lea Zimmermann and Sören Becker and Alessandro Palma and Leander Dony and Alejandro Tejada-Lapuerta and Guillaume Huguet and Hsiu‐Chuan Lin and Nadezhda V. Azbukina and Fátima Sanchís-Calleja and Théo Uscidda and Artur Szałata and Manuel Gander and Aviv Regev and Barbara Treutlein and J. Gray Camp and Fabian J. Theis},
  title = {{CellFlow enables generative single-cell phenotype modeling with flow matching}},
  year = {2025},
  doi = {10.1101/2025.04.11.648220},
  howpublished = {bioRxiv},
}
Figure