The power of motifs as inductive bias for learning molecular distributions

Johanna Sommer, Leon Hetzel, David Lüdke, Fabian J. Theis, Stephan Günnemann · DOI

Abstract

Generative models for drug discovery often struggle to represent complex molecular structures efficiently. We present Subcover, a novel fragmentation scheme that bridges the gap between rule-based chemical knowledge and data-driven subgraph mining. By preserving ring structures while minimizing the number of single-atom fragments, Subcover provides a superior inductive bias for generative models. Our evaluation on the ZINC dataset demonstrates a 30% improvement in chemical realism (FCD score) compared to existing methods, highlighting the critical role of data representation in molecular machine learning.

Introduction

Navigating the vast chemical space to identify therapeutic candidates requires generative models that can learn and reproduce complex structural distributions. A fundamental challenge lies in molecular representation. Atom-based models offer maximum flexibility but often fail to capture higher-order symmetries and complex motifs like rings. Conversely, motif-based models utilize larger building blocks but frequently suffer from redundant vocabularies or inefficient fragmentation that leaves behind numerous "leftover" single atoms.

When a model is forced to process a high volume of individual atoms, it loses the structural "shortcuts" provided by motifs, hindering its ability to learn underlying chemical patterns. This paper addresses this challenge by introducing a fragmentation scheme that is chemically meaningful, concise, and optimized for model learning.

Methodology: The Subcover Fragmentation Scheme

Subcover is a hybrid approach that operates in two main phases:

  1. Top-Down Initial Cut: The algorithm begins by breaking "bridge bonds" (acyclic bonds between rings). This rule-based step ensures that important cyclic structures remain intact.
  2. Recursive Bottom-Up Refinement: If the resulting fragments are not in the predefined vocabulary, Subcover recursively searches for the largest and most frequent sub-motifs within them, rather than decomposing them into single atoms.
Principal Subgraph Mining (PSM) often cuts through rings, creating chemically indistinct motifs and potentially leading to unrealistic generated structures.

The researchers evaluated this scheme using a two-step Variational Auto-Encoder (VAE). The encoder maps molecular graphs into a continuous latent space, while the decoder first predicts a "bag of parts" (motifs and atoms) and then determines how they are bonded together.

Results and Discussion

The study utilized the ZINC dataset (250,000 drug-like molecules) for benchmarking. Subcover demonstrated significant advantages over existing methods like Breaking Bridge Bonds (BBB) and Principled Subgraph Mining (PSM).

Key Performance Metrics

  • 30% FCD Improvement: Subcover achieved a significantly better Fréchet ChemNet Distance (FCD) score, indicating higher chemical realism in generated molecules.
  • Realistic Ring Distributions: Unlike PSM, which often generated an unrealistic number of small four-membered rings, Subcover-generated molecules closely matched the ring-size distribution of real-world drugs.
  • Vocabulary Efficiency: Subcover identifies larger, more relevant motifs, allowing the model to describe complex molecules with fewer components and reducing the degrees of freedom during generation.
SubCover identifies rings while maintaining a low number of single-atom fragments, providing a superior inductive bias for generative models.

The Role of Inductive Bias

The primary insight is that improving the data representation—the inductive bias—can enhance the performance of the same underlying neural network architecture. By choosing a better way to break down molecules, Subcover allows the model to focus on learning meaningful chemical relationships rather than struggling with atom-level reconstruction.

Limitations and Future Work

Current limitations include the lack of explicit handling for molecular ions and formal charges. Additionally, performance gains tend to plateau as vocabulary size increases, suggesting a need for further optimization of motif libraries. Future work will involve extending the Subcover logic to 3D molecular conformations to better support spatial drug design.

Summary updated

BibTeX
@inproceedings{sommer2023power,
  author = {Johanna Sommer and Leon Hetzel and David Lüdke and Fabian J. Theis and Stephan Günnemann},
  title = {{The power of motifs as inductive bias for learning molecular distributions}},
  booktitle = {MLDD @ ICLR},
  year = {2023},
  url = {https://openreview.net/forum?id=cS3_jJ0se3z},
}
Figure