Cell Morphology-Guided Small Molecule Generation with GFlowNets

Stephen Zhewen Lu, Ziqing Lu, Ehsan Hajiramezanali, Tommaso Biancalani, Yoshua Bengio, Gabriele Scalia, Michał Koziarski · DOI

Introduction

Traditional drug discovery often follows a "target-based" approach, focusing on specific proteins involved in disease pathways. However, identifying the correct protein target is a significant bottleneck. Phenotypic screening offers a powerful alternative by observing how a drug affects the entire cell's appearance and behavior—its phenotype.

High-content imaging (HCI) generates rich data on these cellular changes, but leveraging this information to design new drugs is challenging due to the scarcity of labeled data and the vast chemical search space (estimated at $10^{60}$ molecules). This research addresses the "inverse problem": generating entirely new molecular structures that can induce a specific, desired cellular effect.

Methods

The proposed framework utilizes a two-stage pipeline to bridge the gap between chemical structure and biological phenotype.

1. Multimodal Latent Alignment

The first stage employs a Geometric Multimodal Contrastive (GMC) model to create a shared latent space for chemistry and biology. By embedding molecular graphs and cell images into the same space, the model learns to associate specific molecules with the morphological changes they induce. This unsupervised approach eliminates the need for manual biological labels.

2. Generative Flow Networks (GFlowNets)

In the second stage, the system uses GFlowNets to sample molecular candidates. Unlike standard Reinforcement Learning (RL) methods that optimize for a single "best" solution, GFlowNets are designed to sample a diverse set of candidates with probabilities proportional to a reward function. In this case, the reward is defined as the cosine similarity in the latent space between the generated molecule's embedding and a target cell image embedding.

The two-stage pipeline: (top) multimodal latent alignment using contrastive loss and (bottom) molecular generation guided by target morphology.

Key Results

Superior Diversity and Reward

The GFlowNet approach demonstrated a significant advantage in discovering diverse molecular "modes"—distinct chemical clusters that all achieve high rewards. Compared to standard RL baselines like Soft Actor-Critic (SAC) and Soft Q-Learning (SQL), GFlowNets consistently found a higher density of high-reward candidates.

Reward distribution of the last 10,000 samples per target, comparing GFlowNets (GFN) against RL baselines (SAC, SQL) and random sampling (RND).

Biological Relevance and Target Recovery

When tasked with matching a specific phenotype, the GFlowNet generated molecules with higher Tanimoto similarity to the original molecule known to cause that phenotype than random or RL baselines. Furthermore, molecules generated by the GFlowNet were more likely to be flagged as "active" by independent biological oracle models, suggesting that the generated structures possess genuine biological utility.

Discussion and Future Work

This work demonstrates that unsupervised guidance from cellular morphology is a viable path for molecular design. By prioritizing diversity over narrow optimization, GFlowNets provide a more robust set of "leads" for early-stage drug discovery.

However, the method's performance is currently limited by the quality of the multimodal latent space. Future improvements in representation learning will directly enhance the generative pipeline. Additionally, the authors suggest developing conditional GFlowNets to generate molecules for any input image on the fly, and integrating further rewards for synthesizability and drug-likeness to ensure the generated molecules are practical for laboratory testing.

Summary updated

BibTeX
@misc{lu2024cell,
  author = {Stephen Zhewen Lu and Ziqing Lu and Ehsan Hajiramezanali and Tommaso Biancalani and Yoshua Bengio and Gabriele Scalia and Michał Koziarski},
  title = {{Cell Morphology-Guided Small Molecule Generation with GFlowNets}},
  year = {2024},
  eprint = {2408.05196},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.05196},
}
Figure