Molecule Design by Latent Prompt Transformer

Deqian Kong, Yuhao Huang, Jianwen Xie, Ying Nian Wu

Abstract

Designing novel molecules with specific biological properties is a significant challenge due to the vastness of chemical space. This paper introduces the Latent Prompt Transformer (LPT), a generative framework that treats molecule design as a prompting task. By integrating a Transformer-based generator with Sampling with Gradual Distribution Shifting (SGDS), LPT effectively navigates the chemical landscape to optimize for target properties like protein-binding affinity. Experimental results on ZINC and biological targets (ESR1, ACAA1) demonstrate that LPT achieves state-of-the-art performance in both single- and multi-objective optimization tasks.

Introduction

The search for new drugs is often described as finding a "needle in a haystack," with the space of potential drug-like molecules estimated at $10^{60}$. Traditional methods struggle with the discrete nature of molecular graphs. While modern AI approaches attempt to map molecules into a continuous latent space for easier optimization, many existing models lack the expressive power to generate complex molecules or fail during out-of-distribution extrapolation.

Methodology

The authors propose the Latent Prompt Transformer (LPT), which utilizes a prompting mechanism similar to large language models to guide molecular generation.

Architecture

The LPT framework consists of three interconnected modules: a Prior Model (1D-Unet) for generating latent vectors, a Molecule Generator (Causal Transformer) that uses these vectors as prompts, and a Property Predictor (MLP). This structure allows the model to leverage the high expressivity of modern Transformer architectures while remaining controllable through the latent space.

The Latent Prompt Transformer architecture, showing the interaction between the Prior Model ($p_\alpha$), Molecule Generator ($p_\beta$), and Property Predictor ($p_\gamma$).

Sampling with Gradual Distribution Shifting (SGDS)

To optimize molecular properties, the authors employ SGDS. Rather than targeting an immediate leap to optimal properties, the method incrementally shifts the target distribution. New molecules are generated, scored via external software (e.g., RDKit, AutoDock), and the model is iteratively retrained to align with these improved candidates. This "stepping stone" approach prevents the model from falling off an optimization "cliff" by staying within reliable training zones.

Experimental Setup

The model was initially trained on the ZINC dataset, containing 250,000 commercially available compounds. Evaluation focused on:

  • Chemical Metrics: QED (Drug-likeness), SA (Synthetic Accessibility), and Penalized logP.
  • Biological Targets: Binding affinities for ESR1 (estrogen receptor) and ACAA1 (involved in fatty acid metabolism).

Results

LPT achieved significant performance gains over benchmarks such as GCPN, GraphDF, and LEBM-SGDS. In single-objective optimization for ESR1, LPT found molecules with a dissociation constant ($K_D$) significantly stronger than previous benchmarks. Furthermore, in multi-objective tasks, LPT successfully balanced high binding affinity with drug-likeness and ease of synthesis, as detailed in the comparative results below.

Comparative performance of LPT-SGDS against baseline models for ESR1 and ACAA1 targets across multiple metrics.

Discussion and Conclusion

The success of LPT stems from its "latent prompting" strategy and the use of SGDS to avoid the pitfalls of aggressive out-of-distribution optimization. While the current process is computationally intensive (~42 hours on an NVIDIA A6000) and relies on 1D SELFIES strings, it represents a significant step forward in controllable molecular design. Future work will explore 3D-aware models and applications in other scientific domains.

Summary updated

BibTeX
@inproceedings{kong2024molecule,
  author = {Deqian Kong and Yuhao Huang and Jianwen Xie and Ying Nian Wu},
  title = {{Molecule Design by Latent Prompt Transformer}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=dg3tI3c2B1},
}
Figure