Semi-Supervised Junction Tree Variational Autoencoder for Molecular Property Prediction

Atia Hamidizadeh, Tony S. Shen, Martin Ester · DOI

Abstract

Molecular Representation Learning is essential to solving many drug discovery and computational chemistry problems. It is a challenging problem due to the complex structure of molecules and the vast chemical space. Graph representations of molecules are more expressive than traditional representations, such as molecular fingerprints. Therefore, they can improve the performance of machine learning models. We propose SeMole, a method that augments the Junction Tree Variational Autoencoders, a state-of-the-art generative model for molecular graphs, with semi-supervised learning. SeMole aims to improve the accuracy of molecular property prediction when having limited labeled data by exploiting unlabeled data. We enforce that the model generates molecular graphs conditioned on target properties by incorporating the property into the latent representation. We propose an additional pre-training phase to improve the training process for our semi-supervised generative model. We perform an experimental evaluation on the ZINC dataset using three different molecular properties and demonstrate the benefits of semi-supervision.

Introduction

In drug discovery, identifying a molecule with the "perfect" set of properties—such as solubility, potency, and low toxicity—is a fundamental challenge. While chemical databases contain millions of compounds, only a small fraction have been experimentally tested for specific properties because laboratory work is slow and expensive. This creates a significant data scarcity problem for supervised machine learning models.

Furthermore, many existing models represent molecules as SMILES strings (text). However, small changes in a string can lead to chemically impossible molecules, making these models unreliable for generation. SeMole addresses these hurdles by combining the structural reliability of Junction Tree Variational Autoencoders (JTVAE) with a semi-supervised framework that leverages the vast "dark matter" of unlabeled chemical data.

Methodology

SeMole builds upon the Junction Tree Variational Autoencoder (JTVAE). Unlike standard graph networks, JTVAE breaks molecules into chemically valid "building blocks" (clusters of atoms), ensuring that any molecule the model generates is 100% chemically valid.

Structured Latent Space and Semi-Supervision

The core innovation of SeMole is its structured latent space, which is partitioned into three components: $z_T$ (the tree structure), $z_G$ (cluster connectivity), and $y$ (the specific property label).

The SeMole framework comprises a generative model and two inference paths (unsupervised and supervised) to effectively utilize both labeled and unlabeled molecular data.

The model employs a semi-supervised objective. When a label is available, the model learns to map the molecular structure to that label. When a label is missing, the model treats $y$ as a hidden variable it must infer, allowing it to learn from the structural patterns of unlabeled molecules. Additionally, a specialized pre-training phase (SeMole-Pretrained) is used to stabilize training by initially focusing on structural learning before gradually introducing the property prediction task.

Experimental Evaluation

The researchers evaluated SeMole using the ZINC dataset, a collection of over 310,000 drug-like molecules, focusing on three key properties: Molecular Weight (MolWt), solubility (LogP), and drug-likeness (QED). To simulate real-world data scarcity, they tested the model's performance by varying the amount of labeled data from 5% to 50%.

Results

SeMole-Pretrained consistently achieved lower Mean Absolute Error (MAE) in property prediction compared to the SMILES-based SSVAE baseline, particularly for LogP and QED. At just 5% labeled data, the semi-supervised SeMole significantly outperformed a purely supervised version of the same architecture, proving that unlabeled data provides a vital performance boost when experimental labels are rare.

Mean Absolute Error (MAE) for property prediction. SeMole variants, especially SeMole-Pretrained, show superior performance across different labeling ratios compared to the SSVAE baseline.

Conclusion and Future Work

SeMole demonstrates that graph-based semi-supervised learning can effectively bridge the gap between massive unlabeled datasets and scarce experimental labels. By ensuring 100% chemical validity and improving prediction accuracy, it offers a robust tool for targeted molecular design. Future directions include extending the model to 3D molecular representations and exploring multi-property optimization to address the complex requirements of real-world drug discovery.

Summary updated

BibTeX
@misc{hamidizadeh2022semi,
  author = {Atia Hamidizadeh and Tony S. Shen and Martin Ester},
  title = {{Semi-Supervised Junction Tree Variational Autoencoder for Molecular Property Prediction}},
  year = {2022},
  eprint = {2208.05119},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.05119},
}
Figure