PhAME: Phenotype-Aware Molecular Editing via Latent Diffusion

Łukasz Janisiów, Sebastian Musiał, Bartosz Zieliński, Dawid Rymarczyk, Tomasz Danel · 2026

Read PhAME: Phenotype-Aware Molecular Editing via Latent Diffusion by Łukasz Janisiów, Sebastian Musiał, Bartosz Zieliński, Dawid Rymarczyk, Tomasz Danel (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-28226.txt.

Introduction

Janisiów and colleagues edit drug hopefuls toward wanted body signatures while staying near a known hit. PhAME treats tuning as edits in a pretrained graph VAE's hidden space, with one dial for phenotype match and one for seed likeness. On docking and body-signature tests it led rivals while keeping validity and novelty high.

Catalog record

CREATORŁukasz Janisiów, Sebastian Musiał, Bartosz Zieliński, Dawid Rymarczyk, Tomasz Danel
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE71494
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2605.28226

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

PhAME: Phenotype-Aware Molecular Editing via Latent Diffusion Łukasz Janisiów, Sebastian Musiał, Bartosz Zieliński, Dawid Rymarczyk, Tomasz Danel Abstract Small-molecule drug discovery requires simultaneous optimization of numerous properties of candidate molecules. These properties can be investigated through the analysis of high-dimensional biological signatures, such as cell morphology and transcriptomic perturbations, which provide a rich perspective on the underlying biological mechanisms. However, existing generative methods, which use those signatures for optimization, fail to meet two key requirements: providing precise guidance toward desired phenotypic signatures while maintaining structural proximity to a known hit. We introduce PhAME (Phenotype-Aware Molecular Editing), a latent diffusion framework that overcomes this challenge by recasting molecular optimization as editing in the latent space of a pretrained graph-based VAE. Our central contribution is a compositional classifier-free guidance scheme with two independent scales, one for the phenotype-conditioning and one for similarity to the seed structure, allowing practitioners to control the tradeoff between these two objectives. Empirical evaluations across diverse benchmarks, including docking score optimization and multimodal phenotypic generation, demonstrate that PhAME achieves state-of-the-art results while maintaining high chemical validity and novelty. 1 Introduction Figure 1: Molecular editing with PhAME. Given a seed molecule and target phenotype, the model generates close structural analogs that induce a target phenotype by balancing two independent guidance scales: structure and phenotype. Drug discovery is a search over a chemical space estimated at 10^{60} drug-like molecules ( 38 ) , but in practice it rarely starts from scratch. The dominant bottleneck is the iterative refinement of an already-active compound through Hit-to-Lead (H2L) and Lead Optimization (LO), reshaping a screening hit into a potent, drug-like, synthesizable candidate ( 35 ) . Compounding this, the field is shifting from single-target binding assays toward phenotypic readouts, such as gene-expression changes and cell-morphology profiles, that capture how a molecule perturbs a biological system as a whole ( 5 ; 46 ) . A generative model that can both edit a known hit and steer it toward such system-level signals would be a powerful tool for ML-driven discovery, yet no method today delivers both. Ligand-centric generators ( 9 ; 16 ; 17 ) produce valid molecules but ignore cell-level response and offer no mechanism to anchor on a seed compound. Phenotype-conditioned generators close the first gap but not the second: GxVAEs ( 21 ) and SmilesGEN ( 26 ) both generate de novo from a phenotypic target and cannot be steered around a known hit. A concurrent work ( 43 ) adds molecule editing via discrete mask-and-reconstruct on SELFIES substructures, but only under L1000 transcriptomics. Even classifier-free guidance (CFG) ( 12 ) , the standard steering tool for diffusion models, does not solve the problem. Its single guidance scale forces a trade-off between matching the target phenotype and staying close to the seed molecule. We propose PhAME ( Ph enotype- A ware M olecular E diting) to close both gaps: conditioning on a desired phenotype and anchoring on a seed compound. PhAME reformulates design as an editing task in the latent space of a frozen graph-based VAE ( 34 ) . A seed molecule is partially noised and denoised under guidance, so the noise level controls the structural exploration radius. Structural proximity is measured in a learned embedding space of InfoAlign ( 24 ) that reflects cellular response rather than raw chemical similarity. Crucially, we replace standard CFG with a compositional variant that splits the guidance signal into two terms with independent scales, one for the phenotypic target and one for structural anchoring, directly removing the trade-off baked into single-scale CFG. Across docking-score optimization, transcriptomic-conditioned generation, and phenotype-driven mode of action (MoA) design, PhAME delivers the strongest results to date: the best novel hit ratio on four out of five MOOD ( 19 ) protein targets, and consistent superiority on phenotype-driven MoA retrieval, all while maintaining near-perfect validity and novelty. Our contributions can be summarized as follows: • Latent-diffusion molecular editing: We introduce PhAME, a framework utilizing latent diffusion on graph-based embeddings to enable systematic Hit-to-Lead guided by complex biological signatures. • Compositional guidance mechanism: We generalize classifier-free guidance to use two independent scales, one for phenotype matching and one for seed proximity, replacing the forced trade-off with explicit control over each objective. • SOTA across modalities: PhAME sets new state-of-the-art on docking-score optimization, transcriptomic-conditioned generation, and Cell-Painting-driven MoA generation, with near-perfect validity and novelty. The source code and accompanying data are available at https://github.com/gmum/PhAME . 2 Related Work Generative models for molecules. Molecular generation has progressed from SMILES-based VAEs ( 9 ) to graph-based VAEs ( 16 ) , and more recently to latent diffusion models 40 that compress denoising into a learned manifold. Mol-CycleGAN 30 already showed that the latent space of a graph VAE supports direct molecular optimization. Equivariant and graph variants of latent diffusion in chemistry include EDM 13 and GCLDM 54 . For property-driven optimization, score-based MOOD 19 , the flow-matching frameworks PropMolFlow 53 and MoltenFlow 27 , and fragment-level discrete diffusion with GenMol ( 20 ) offer stable alternatives to reinforcement learning 28 . Conditioning is typically realized via classifier-free guidance (CFG) ( 12 ; 50 ) . Recent factorized variants in scPPDM 23 and the multi-attribute CFGen 37 expose multiple interpretable controls, but were developed for single-cell rather than molecular targets. PhAME instantiates a latent-diffusion-on-graph-VAE recipe on top of the DGVAE ( 34 ) backbone and replaces single-scale CFG with a compositional scheme that scales the phenotypic target and structural anchor independently. Phenotype-conditioned molecular generation. A complementary line conditions generation on system-level biological readouts. Most methods consume L1000 transcriptomic signatures: the GAN of Méndez-Lucio et al. 31 , the VAEs Triomphe 18 , GxVAE ( 21 ) and SmilesGEN ( 26 ) , the graph latent diffusion GLDM 49 , and the chemistry LLM GEMGen 15 . A smaller group conditions on Cell Painting morphology: CPMolGAN ( 52 ) , MGMG ( 47 ) , and the GFlowNet of Lu et al. 29 . However, most of these methods generate molecules de novo . PhAME differs by editing in a graph-VAE latent, anchoring proximity through InfoAlign 24 embeddings aligned with both Cell Painting and L1000 via an information bottleneck, and exposing independent phenotypic and structural CFG scales. 3 Methods 3.1 Background Latent diffusion models. Diffusion models ( 11 ; 44 ) learn to generate data by reversing a gradual noising process. Operating this process directly on high-dimensional or discrete data, such as SMILES strings or molecular graphs, is computationally expensive and requires careful handling of discrete structures. Latent diffusion models (LDMs) ( 40 ) resolve this by first training an autoencoder to map data into a compact continuous latent space, and then applying the diffusion process entirely within that space. In our setting, a pretrained SMILES VAE with encoder \mathcal{E} and decoder \mathcal{D} provides the latent space: z_{0}=\mathcal{E}(m) for a molecule m\in\mathcal{M} . The forward process progressively corrupts z_{0} into Gaussian noise via q(z_{t}\mid z_{0})=\mathcal{N}(z_{t};\,\sqrt{\bar{\alpha}_{t}}\,z_{0},\,(1-\bar{\alpha}_{t})\,I) , where \bar{\alpha}_{t}=\prod_{s=1}^{t}\alpha_{s} follows a predefined variance schedule and z_{T}\approx\mathcal{N}(0,I) for sufficiently large T . A neural network \epsilon_{\theta}(z_{t},t) is trained to reverse this process by predicting the added noise, minimizing \mathcal{L}=\mathbb{E}_{z_{0},\epsilon,t}\!\left[\left\|\epsilon-\epsilon_{\theta}(z_{t},t)\right\|^{2}\right],\qquad\epsilon\sim\mathcal{N}(0,I),\;t\sim\mathcal{U}\{1,\dots,T\}. (1) At inference, new molecules are generated by sampling \hat{z}_{T}\sim\mathcal{N}(0,I) and iteratively denoising: \hat{z}_{t-1}=\frac{1}{\sqrt{\alpha_{t}}}\left(\hat{z}_{t}-\frac{1-\alpha_{t}}{\sqrt{1-\bar{\alpha}_{t}}}\,\epsilon_{\theta}(\hat{z}_{t},t)\right)+\sigma_{t}\,\eta,\qquad\eta\sim\mathcal{N}(0,I), (2) where \sigma_{t} controls

Read the complete text