Predicting Molecule Toxicity via Descriptor-Based Graph Self-Supervised Learning

Xinze Li, Ilya Makarov, Dmitrii KiselevIEEE Access 2023

Abstract

Predicting chemical toxicity is a critical challenge in drug discovery, often hindered by the high cost and scarcity of labeled data. While Graph Neural Networks (GNNs) have shown promise, standard self-supervised learning (SSL) techniques often fail to capture essential chemical context or suffer from high computational complexity. This paper introduces Descriptor-based Graph Self-supervised Learning (DGSSL), a novel pre-training framework that injects chemical domain knowledge into GNNs. By identifying "descriptor centers" (DCs) based on the Fragmentary Code of Substructure Superposition (FCSS), the model learns to capture complex local subgraphs during node-level pre-training. Experimental results demonstrate that DGSSL achieves state-of-the-art performance on toxicity benchmarks, significantly outperforming traditional SSL baselines.

Introduction

Predicting whether a new chemical compound is toxic is a "holy grail" for drug discovery, potentially saving years of wet-lab experiments. While Deep Learning—specifically Graph Neural Networks (GNNs)—is effective at processing molecular structures, it faces a major hurdle: labeled data is scarce and expensive.

To solve this, researchers use Self-Supervised Learning (SSL), pre-training models on millions of unlabeled molecules before fine-tuning them on specific toxicity tasks. However, current SSL methods have flaws. Node-level tasks, such as masking an atom and guessing its element, are often too simple and ignore "chemical context" (e.g., a Carbon atom in a simple chain behaves differently than one in a double bond). Conversely, motif-level tasks that predict larger functional groups are better at capturing context but are computationally expensive and difficult to scale. DGSSL aims to bridge this gap by making simple node-level pre-training "smarter" through the use of chemical domain knowledge.

Methods

The authors propose DGSSL, which utilizes a specialized "vocabulary" for atoms based on the Fragmentary Code of Substructure Superposition (FCSS).

The Key Innovation: Descriptor Centers (DCs)

Instead of viewing an atom merely as an element like "Carbon" or "Oxygen," the model identifies Descriptor Centers. These are specific atoms that serve as centers for weak chemical interactions, such as heteroatoms or carbons in double/triple bonds.

  • Expanded Vocabulary: In standard pre-training, a model might predict one of 119 possible atom types. The authors identified 17 critical DC patterns, expanding the target vocabulary to 136 classes.
  • Context-Aware Masking: When the model masks an atom during pre-training, it attempts to guess if that atom is a specific type of Descriptor Center. This forces the GNN—specifically a Graph Isomorphism Network (GIN) backbone—to learn the surrounding "ego-net" (local neighborhood) to make a correct prediction.
Comparison of standard molecular graph masking versus the proposed DGSSL approach using Descriptor Centers (DCs).

Experimental Setup and Results

The model was pre-trained on 2 million unlabeled compounds from the ZINC15 dataset and evaluated on three toxicity benchmarks from MoleculeNet: tox21, clintox, and toxcast.

DGSSL achieved state-of-the-art performance across these benchmarks:

  • tox21: 76.9% ROC-AUC
  • clintox: 89.5% ROC-AUC
  • Average Gains: Across all three benchmarks, DGSSL reached an average ROC-AUC of 76.6%, significantly outperforming the "No pretrain" baseline (65.5%) and standard attribute masking (70.6%).

The authors also confirmed that DGSSL is architecture-agnostic, providing performance boosts regardless of whether the underlying GNN is a GCN, GIN, or GraphSAGE.

Conclusion and Future Work

DGSSL demonstrates that incorporating chemical semantics (FCSS) is more effective than relying on random graph statistics. By encoding motif-like information into node labels, the framework gains the benefits of motif-based learning with the efficiency of node-level masking.

Future work will explore expanding the scope of descriptors beyond the 17 identified DC patterns to cover other biological properties. Additionally, the authors suggest that integrating DGSSL into a multi-level framework—combining it with graph-level contrastive learning—could further enhance predictive accuracy across a wider variety of chemical datasets.

Summary updated

BibTeX
@article{li2023predicting,
  author = {Xinze Li and Ilya Makarov and Dmitrii Kiselev},
  title = {{Predicting Molecule Toxicity via Descriptor-Based Graph Self-Supervised Learning}},
  journal = {IEEE Access},
  year = {2023},
  doi = {10.1109/access.2023.3308203},
}
Figure