Mol2Image: Improved Conditional Flow Models for Molecule to Image Synthesis

Karren D. Yang, Samuel Goldman, Wengong Jin, Alex X. Lu, Regina Barzilay, Tommi S. Jaakkola, Caroline UhlerCVPR 2021

Abstract

Synthesizing high-resolution cell microscopy images from molecular structures is a significant challenge in virtual chemical screening. Mol2Image addresses this by combining a multi-scale Haar wavelet flow architecture with contrastive learning. This framework enables the generation of $512 \times 512$ five-channel images that accurately reflect the biological impact of drug molecules, outperforming existing flow-based and GAN-based models in correspondence accuracy and biological fidelity.

Introduction

In drug discovery, high-content screening (HCS) involves capturing thousands of microscopic images of cells treated with various chemicals to observe their reactions. While informative, these physical experiments are expensive and time-consuming. The authors propose a "virtual microscope": a generative model that takes a molecular graph as input and outputs a predicted microscopy image.

Examples of molecular perturbations and their predicted cell morphologies.

Two major technical hurdles have historically limited this approach. First, state-of-the-art flow-based generative models are memory-intensive and typically cannot scale beyond $256 \times 256$ pixels, whereas biological images often require $512 \times 512$ resolution. Second, the biological effects of drugs can be visually subtle, causing standard conditional models to ignore the molecular input and generate generic cell images.

Methods

Mol2Image introduces two key innovations to solve these problems:

  • Haar Pyramid Flow Model: Instead of processing high-resolution images directly, the model uses a Haar wavelet image pyramid. This technique decomposes an image into a coarse version and several fine detail components. A sequence of flow blocks learns to generate details for specific resolutions, conditioned on the coarser version from the level below. This multi-scale approach preserves the exact log-likelihood objective while enabling high-resolution scaling.
  • Contrastive Learning Strategy: To ensure the model remains sensitive to the molecular input, an auxiliary contrastive loss is used. During training, the model aligns the latent representation of the generated image with the embedding of the specific molecule. This maximizes the mutual information between the chemical structure and the resulting image features.
The Mol2Image model architecture (a) and training strategy (b).

Molecules are processed using a Graph Neural Network (GNN), converting atoms and bonds into a continuous vector that conditions the flow model.

Experimental Results

The researchers utilized the Cell Painting dataset, containing roughly 284,000 five-channel images across 10,500 molecular interventions. Evaluation was performed using CellProfiler Biological Evaluation Metrics, which measure real biological traits like cell count, size, and shape.

Key results include:

  • High-Resolution Synthesis: Mol2Image successfully generated 5-channel $512 \times 512$ images, a significant jump for flow-based models.
  • Superior Accuracy: In correspondence accuracy tests, Mol2Image achieved 63.2%, significantly outperforming standard conditional Glow (55.5%) and GAN-based baselines (56.6%).
  • Biological Fidelity: On held-out molecules, the model achieved a correspondence score of 62.6, nearly reaching the ground truth upper bound of 64.2.

Conclusion

Mol2Image provides a principled way to scale flow models for high-resolution biological imaging. By bridging the "conditioning gap" with contrastive learning, it ensures that generated images accurately reflect chemical perturbations. Future work will focus on incorporating dosage and time-series effects, which are critical for pharmacological applications.

Summary updated

BibTeX
@inproceedings{yang2021mol,
  author = {Karren D. Yang and Samuel Goldman and Wengong Jin and Alex X. Lu and Regina Barzilay and Tommi S. Jaakkola and Caroline Uhler},
  title = {{Mol2Image: Improved Conditional Flow Models for Molecule to Image Synthesis}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00662},
}
Figure