Skip to main content
QUICK REVIEW

[Paper Review] Retrieval-based Controllable Molecule Generation

Zichao Wang, Weili Nie|arXiv (Cornell University)|Aug 23, 2022
Computational Drug Discovery MethodsComputer Science8 citations
TL;DR

This paper proposes RetMol, a retrieval-based framework for controllable molecule generation that uses a small set of exemplar molecules to guide a pre-trained generative model without task-specific fine-tuning. By retrieving and fusing exemplars with input molecules via a self-supervised similarity objective and iterative refinement, RetMol achieves state-of-the-art performance in generating molecules with desired properties, including in challenging real-world scenarios like designing SARS-CoV-2 main protease inhibitors.

ABSTRACT

Generating new molecules with specified chemical and biological properties via generative models has emerged as a promising direction for drug discovery. However, existing methods require extensive training/fine-tuning with a large dataset, often unavailable in real-world generation tasks. In this work, we propose a new retrieval-based framework for controllable molecule generation. We use a small set of exemplar molecules, i.e., those that (partially) satisfy the design criteria, to steer the pre-trained generative model towards synthesizing molecules that satisfy the given design criteria. We design a retrieval mechanism that retrieves and fuses the exemplar molecules with the input molecule, which is trained by a new self-supervised objective that predicts the nearest neighbor of the input molecule. We also propose an iterative refinement process to dynamically update the generated molecules and retrieval database for better generalization. Our approach is agnostic to the choice of generative models and requires no task-specific fine-tuning. On various tasks ranging from simple design criteria to a challenging real-world scenario for designing lead compounds that bind to the SARS-CoV-2 main protease, we demonstrate our approach extrapolates well beyond the retrieval database, and achieves better performance and wider applicability than previous methods. Code is available at https://github.com/NVlabs/RetMol.

Motivation & Objective

  • Address the challenge of controllable molecule generation in data-scarce regimes where labeled active molecules are limited.
  • Overcome limitations of existing methods that require extensive fine-tuning or rely on fixed-latent-space models incompatible with modern architectures.
  • Enable generalization across diverse molecular design tasks with minimal model adaptation.
  • Develop a framework that is agnostic to the choice of underlying generative model and operates efficiently in real-world drug discovery settings.

Proposed method

  • Integrate a retrieval module with a pre-trained generative model (e.g., BART-based) to guide molecule generation using exemplar molecules.
  • Design a retrieval mechanism that retrieves and fuses exemplar molecules with the input molecule based on structural and property similarity.
  • Train the retrieval module via a self-supervised objective that predicts the nearest neighbor of the input molecule in latent space.
  • Implement an iterative refinement process that dynamically updates the generated molecules and the retrieval database to improve generalization.
  • Use attribute relaxation ordering to prioritize harder-to-satisfy constraints (e.g., docking affinity) during retrieval, improving convergence and success rates.
  • Ensure compatibility with diverse generative models, including graph-based architectures like HierG2G, by decoupling the retrieval mechanism from the generative model.

Experimental results

Research questions

  • RQ1Can a retrieval-based approach achieve strong controllable molecule generation performance without task-specific fine-tuning?
  • RQ2How well does the framework generalize to real-world drug design tasks with limited active molecules?
  • RQ3What is the impact of attribute relaxation ordering on retrieval success and convergence in multi-constraint optimization?
  • RQ4Can the framework be effectively applied to diverse generative models beyond transformer-based architectures?
  • RQ5How does the retrieval-based fusion mechanism compare to end-to-end fine-tuning or latent optimization in terms of efficiency and performance?

Key findings

  • RetMol achieves state-of-the-art performance on multiple controllable generation tasks, including penalized logP and QED optimization, outperforming baseline methods without fine-tuning.
  • In the SARS-CoV-2 main protease inhibitor design task, RetMol successfully generated molecules with improved binding affinity, demonstrating real-world applicability.
  • The retrieval module adds negligible computational overhead, with encoding time increasing by only 0.0006 seconds per molecule on average (0.00402s vs. 0.00343s for base model).
  • The average cosine similarity between input molecules and their 10th nearest neighbors is 0.35, indicating that retrieved molecules remain structurally relevant even at lower ranks.
  • RetMol maintains high performance across different base generative models, including HierG2G, confirming its compatibility and generalization across architectures.
  • Relaxing harder constraints (e.g., docking affinity) before easier ones (e.g., similarity) improves success rates by 11% in the QED task (89.5% vs. 78.5%), validating the strategy’s effectiveness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.