Skip to main content
QUICK REVIEW

[Paper Review] A COLD Approach to Generating Optimal Samples

Omar Mahmood, José Miguel Hernández-Lobato|arXiv (Cornell University)|May 23, 2019
Computational Drug Discovery MethodsComputer Science11 references6 citations
TL;DR

This paper proposes COLD, a constrained global optimisation method that uses a Gaussian Mixture Model (GMM) of training data latents to identify high-density regions in the latent space, enabling gradient-based optimisation for high-scoring, diverse, and novel discrete samples. On MNIST and ChEMBL, COLD generates optimal, diverse, and chemically valid molecules with drug-likeness scores matching or exceeding training data maxima.

ABSTRACT

Optimising discrete data for a desired characteristic using gradient-based methods involves projecting the data into a continuous latent space and carrying out optimisation in this space. Carrying out global optimisation is difficult as optimisers are likely to follow gradients into regions of the latent space that the model has not been exposed to during training; samples generated from these regions are likely to be too dissimilar to the training data to be useful. We propose Constrained Optimisation with Latent Distributions (COLD), a constrained global optimisation procedure to find samples with high values of a desired property that are similar to yet distinct from the training data. We find that on MNIST, our procedure yields optima for each of three different objectives, and that enforcing tighter constraints improves the quality and increases the diversity of the generated images. On the ChEMBL molecular dataset, our method generates a diverse set of new molecules with drug-likeness scores similar to those of the highest-scoring molecules in the training data. We also demonstrate a computationally efficient way to approximate the constraint when evaluating it exactly is computationally expensive.

Motivation & Objective

  • To address the limitation of gradient-based optimisation in discrete data, which typically only improves existing training samples due to poor generalisation in untrained latent regions.
  • To enable global optimisation that generates novel, high-scoring samples distinct from training data by constraining optimisation to well-trained regions of the latent space.
  • To develop a computationally efficient method for approximating latent space density using k-nearest neighbours, especially for high-dimensional data.
  • To ensure generated samples are both high-scoring and chemically or structurally plausible by enforcing a minimum density threshold in the latent space.
  • To demonstrate that constrained optimisation in high-density latent regions yields diverse, high-quality samples across multiple datasets, including MNIST and ChEMBL.

Proposed method

  • Jointly train a Predictive Variational Autoencoder (PVAE) with a VAE and a predictor head to map data to a continuous latent space and predict target properties.
  • Construct a Gaussian Mixture Model (GMM) from the encoded means and variances of all training data points, representing the distribution of well-trained latent regions.
  • Use a density threshold η to filter candidate latent points, retaining only those in high-density regions of the GMM to ensure generated samples are similar to training data.
  • Select top-t candidate points based on predicted target scores and perform local gradient-based optimisation from these points to find high-scoring samples.
  • Approximate GMM density using k-nearest neighbours (k-NN) with HNSW for computational efficiency, especially in high-dimensional spaces.
  • Decode the final optimised latent points using the VAE decoder and evaluate the true target property to identify the global optimum.

Experimental results

Research questions

  • RQ1Can constrained optimisation in the latent space of a VAE generate novel, high-scoring discrete samples that are both diverse and similar to training data?
  • RQ2How does enforcing a GMM-based density constraint on the latent space affect the quality and diversity of generated samples compared to unconstrained or local optimisation?
  • RQ3What is the impact of varying the density threshold η on the optimisation outcome in terms of score, diversity, and validity of generated samples?
  • RQ4Can k-NN approximation of the GMM density enable scalable and efficient global optimisation in high-dimensional latent spaces?
  • RQ5To what extent can COLD generate molecules with drug-likeness scores comparable to the best in the training data, while remaining structurally novel?

Key findings

  • On MNIST, COLD successfully generated optimal images for three different objectives, with tighter constraints improving sample quality and diversity.
  • On the ChEMBL dataset, COLD generated a diverse set of novel molecules with QED scores matching the highest in the training data (0.9483), and none of the generated molecules were present in the training set.
  • The highest-scoring molecule remained unchanged when the density threshold η was reduced from -1000 to -5000, indicating convergence to a single global optimum under loose constraints.
  • As the threshold η decreased, the fraction of successfully decoded molecules generally decreased, except when sampling from high-density regions (b=1), suggesting that low-density points are less reliable for decoding.
  • The method demonstrated robustness: multiple optimisations with the same constraint converged to the same optimum, indicating that the predictor surface in the latent space may have sharp local optima.
  • Using k-NN approximation with HNSW enabled efficient GMM density evaluation, making the method scalable to high-dimensional latent spaces with large training sets.

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.