Differentiable Scaffolding Tree for Molecular Optimization

Tianfan Fu, Wenhao Gao, Cao Xiao, Jacob Yasonik, Connor W. Coley, Jimeng SunarXiv 2021

Overview

Molecular optimization is a cornerstone of drug discovery, yet navigating the vast, discrete chemical space remains a significant challenge. Traditional methods often struggle with the "jumpy" nature of molecular structures, where small changes can lead to drastically different properties. Researchers have introduced the Differentiable Scaffolding Tree (DST), a framework that transforms this discrete search into a smooth, gradient-based optimization process. By representing molecules as trees of substructures and making their identities and existence differentiable, DST allows for the application of calculus to find optimal molecular candidates efficiently.

Overview of the DST optimization pipeline, from molecular graph abstraction to gradient-based optimization and final assembly.

The Challenge of Discrete Chemical Space

Designing a new molecule with specific properties—such as high solubility and strong binding affinity to a target protein—is akin to finding a needle in an astronomical haystack. Molecules are fundamentally discrete; one cannot simply add "half an atom" to improve a property.

Current approaches generally fall into two categories:

  1. Deep Generative Models (VAEs/GANs): These map molecules into a continuous latent space. However, they require massive datasets for training and often involve complex architectures that can be difficult to tune.
  2. Combinatorial Optimization (RL/Genetic Algorithms): These methods perform "random walks" through chemical space. While effective, they are often sample-inefficient, requiring thousands of calls to an oracle (an expensive computational or experimental evaluator) to assess each minor structural change.

DST bridges this gap by enabling goal-oriented, gradient-based optimization directly on molecular structures without the need for a global latent space or exhaustive trial-and-error.

Methodology: Making Graphs Differentiable

The core innovation of DST lies in its hierarchical representation and the "softening" of discrete graph components.

Scaffolding Tree Representation

Instead of operating at the atom level, DST views a molecule as a tree of substructures (e.g., benzene rings, functional groups). This abstraction simplifies the graph complexity and inherently maintains chemical validity by using pre-defined, stable building blocks.

Differentiable Formulation

To apply gradient-based optimization, the discrete scaffolding tree must be made continuous. The authors achieve this by representing substructure types as a probability distribution over a vocabulary using a softmax function, and controlling the presence of nodes and edges with learnable weights via a sigmoid function.

Mathematical representation of the differentiable scaffolding tree, showing how node matrices (N) and adjacency matrices (A) are transformed into continuous versions (tilde N, tilde A) with learnable weights.

Optimization Loop

  1. GNN Surrogate: A Graph Neural Network (GNN) is trained to predict molecular properties, acting as a differentiable proxy for the expensive oracle.
  2. Gradient Ascent: The model calculates the gradient of the predicted property with respect to the tree parameters. It then performs gradient ascent to move toward a "better" local neighborhood in the chemical space.
  3. Sampling and Diversity: Discrete molecules are sampled from the optimized distribution. To ensure a wide search area and avoid local minima, a Determinantal Point Process (DPP) is used to select a diverse set of candidates for subsequent iterations.

Experimental Setup

The DST framework was evaluated using the ZINC 250K dataset, a standard collection of drug-like molecules. The vocabulary consisted of the 82 most frequent substructures. Property oracles included metrics for drug-likeness (QED), solubility (LogP), synthetic accessibility (SA), and specific biological targets like JNK3 and GSK3$\beta$.

Key Results and Insights

DST demonstrates superior performance across several benchmarks compared to state-of-the-art methods like GCPN, MolDQN, and MARS.

  • Superior Optimization: In multi-objective tasks (e.g., JNK3 + GSK3$\beta$), DST achieved an Average Property Score (APS) of 0.827, outperforming the next best baseline (0.795).
  • Oracle Efficiency: DST is remarkably sample-efficient. It reaches high-quality molecular candidates with significantly fewer oracle calls (2,000 to 10,000) compared to reinforcement learning methods that often require over 200,000 calls.
  • Interpretability: By utilizing local derivatives, DST provides insights into why certain structural changes are recommended. Gradients on specific nodes indicate which functional groups contribute most to property improvements.

Limitations and Future Directions

While DST is highly effective, it faces challenges with metrics sensitive to fine-grained connectivity, such as QED. The scaffolding tree abstraction can sometimes lose specific "assembling information" (e.g., exact atom-to-atom bonding between rings), leading to inaccuracies in the GNN surrogate's predictions.

Future research aims to develop atom-wise differentiable graphs. This would allow the model to capture finer structural details while retaining the efficiency and power of gradient-based optimization, potentially overcoming current limitations in predicting sensitive molecular properties.

Summary updated

BibTeX
@misc{fu2021differentiable,
  author = {Tianfan Fu and Wenhao Gao and Cao Xiao and Jacob Yasonik and Connor W. Coley and Jimeng Sun},
  title = {{Differentiable Scaffolding Tree for Molecular Optimization}},
  year = {2021},
  eprint = {2109.10469},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.10469},
}
Figure