Objective-Agnostic Enhancement of Molecule Properties via Multi-Stage VAE

Chenghui Zhou, Barnabás Póczos · DOI

Abstract

Traditional Variational Autoencoders (VAEs) in drug discovery often struggle with "manifold recovery," leading to generated molecules with physical properties that deviate significantly from training data. We present a Multi-Stage VAE (MS-VAE) approach that improves molecular quality without explicit property optimization. By recursively training VAEs on the latent representations of preceding stages, the model captures the underlying data manifold and density more accurately. Experiments on ChEMBL and protein-specific datasets demonstrate that MS-VAE significantly reduces property distribution errors and enhances the generation of active drug candidates, outperforming several specialized baselines.

Introduction: The Manifold Recovery Problem

In AI-driven drug discovery, VAEs are essential for mapping complex molecular structures into a continuous latent space. However, real-world molecular data typically resides on a low-dimensional manifold embedded within a high-dimensional space. Standard VAEs often fail to capture the precise shape and density of this manifold, resulting in "valid" but chemically unrealistic molecules. While common solutions involve adding property-specific predictors to the loss function, these often introduce conflicting objectives or lead to overfitting.

Methodology: Multi-Stage VAE

The proposed Multi-Stage VAE (MS-VAE) addresses these issues through a recursive training process. Instead of a single compression step, the model refines the latent space across multiple stages.

Overview of the Multi-Stage VAE architecture, showing the transition from molecular input (X) to latent codes (V) and subsequent refinement (Z).
  1. First Stage: A standard VAE is trained on molecular data (e.g., SMILES or graphs).
  2. Subsequent Stages: A second VAE is trained to model the latent codes produced by the previous stage.
  3. Inference: New molecules are generated by sampling from the final stage's latent space and decoding sequentially back to the original data format.

The success of this approach hinges on specific variance conditions: the first-stage decoder variance must approach zero, while the encoder variance converges toward 0 or 1. This allows the first stage to recover the manifold geometry while later stages recover the data density on that manifold.

Histograms showing the distribution of latent variables in Stage 2 and Stage 3, illustrating the convergence behavior required for effective manifold recovery.

Experimental Setup and Datasets

The MS-VAE was evaluated across several benchmarks:

  • ChEMBL: ~1.8 million bioactive molecules for general generation.
  • JAK2 & EGFR: Curated datasets for testing fine-tuning and lead discovery.
  • Polymers: ~86k entries to demonstrate scalability across molecular sizes.

Results and Discussion

Property Matching

On the ChEMBL dataset, a 2-stage Hierarchical Graph Neural Network (HGNN) significantly improved property statistics. The Wasserstein distance for Quantitative Estimate of Drug-likeness (QED) dropped from 0.024 to 0.0067, and Molecular Weight error was reduced from 68.8 to 5.0.

Lead Discovery

When fine-tuned for the EGFR protein target, the multi-stage approach generated a higher proportion of "active" molecules compared to single-stage versions. Notably, MS-VAE achieved these results without explicit property predictors, avoiding "reward hacking" common in reinforcement learning approaches like RationaleRL.

Architectural Constraints

The effectiveness of MS-VAE is architecture-dependent. While it performs exceptionally with Graph Neural Networks (GNNs), it is less effective with Vanilla RNNs. This is attributed to the inability of RNN-based VAEs to satisfy the necessary mathematical variance conditions during training.

Conclusion

MS-VAE provides an objective-agnostic framework for improving generative molecular models. By focusing on better manifold recovery rather than explicit property optimization, it produces molecules that more faithfully represent the physical characteristics of the training distribution. Future work will explore adapting these variance conditions to sequence-based models and automating stage selection.

Summary updated

BibTeX
@misc{zhou2023objective,
  author = {Chenghui Zhou and Barnabás Póczos},
  title = {{Objective-Agnostic Enhancement of Molecule Properties via Multi-Stage VAE}},
  year = {2023},
  eprint = {2308.13066},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.13066},
}
Figure