Abstract
Molecular graph representation learning has shown considerable strength in molecular analysis and drug discovery. Due to the difficulty of obtaining molecular property labels, pre-training models based on self-supervised learning has become increasingly popular in molecular representation learning. Notably, Graph Neural Networks (GNN) are employed as the backbones to encode implicit representations of molecules in most existing works. However, vanilla GNN encoders ignore chemical structural information and functions implied in molecular motifs, and obtaining the graph-level representation via the READOUT function hinders the interaction of graph and node representations. In this paper, we propose Hierarchical Molecular Graph Self-supervised Learning (HiMol), which introduces a pre-training framework to learn molecule representation for property prediction. First, we present a Hierarchical Molecular Graph Neural Network (HMGNN), which encodes motif structure and extracts node-motif-graph hierarchical molecular representations. Then, we introduce Multi-level Self-supervised Pre-training (MSP), in which corresponding multi-level generative and predictive tasks are designed as self-supervised signals of HiMol model. Finally, superior molecular property prediction results on both classification and regression tasks demonstrate the effectiveness of HiMol. Moreover, the visualization performance in the downstream dataset shows that the molecule representations learned by HiMol can capture chemical semantic information and properties.
Introduction
In drug discovery, labeled data for molecular properties is scarce and expensive to obtain. To compensate, researchers use Self-Supervised Learning (SSL), pre-training models on massive unlabeled chemical databases. Most current models use Graph Neural Networks (GNNs) that treat molecules as a flat collection of atoms and bonds. However, this approach has two major flaws: it ignores chemical "motifs" (functional groups like carboxyls or rings) that dictate behavior, and it relies on a "READOUT" bottleneck that squashes atom data into a single vector, preventing global-to-local information flow.
The HiMol Framework
To address these limitations, we introduce HiMol, which consists of two core innovations: the Hierarchical Molecular Graph Neural Network (HMGNN) and Multi-level Self-supervised Pre-training (MSP).
Hierarchical Molecular Graph Neural Network (HMGNN)
Instead of a flat graph, HiMol builds a three-tier hierarchy: Atoms → Motifs → Graph. Molecules are decomposed into motifs using the BRICS algorithm, supplemented by custom rules to preserve ring structures. Motif nodes and a global graph-level node are added to the graph, creating edges between atoms and their parent motifs, and between motifs and the global graph node. This structure allows bidirectional information flow, enabling the model to capture chemical semantics at multiple scales simultaneously.
Multi-level Self-supervised Pre-training (MSP)
To train the model without labels, we designed five "pretext" tasks across different scales. These include generative tasks at the atom level (predicting bond links and atom types) and predictive tasks at the graph level (counting total atoms and bonds). A learnable weight automatically balances these tasks during training.
Experimental Results
HiMol was pre-trained on 250,000 unlabeled molecules from the ZINC15 database and evaluated on 12 benchmarks from MoleculeNet.
- State-of-the-Art Performance: HiMol outperformed all baselines (including MolCLR and GraphCL) on 10 out of 12 benchmarks.
- QM9 Breakthrough: On the QM9 regression task, HiMol achieved a massive 55.5% reduction in Mean Absolute Error (MAE) compared to the previous best-performing model.
- Latent Space Quality: Visualization via t-SNE demonstrates that HiMol's pre-training creates distinct, property-aligned clusters in the latent space, capturing chemical semantic information effectively.
Conclusion and Future Work
HiMol demonstrates that explicitly modeling the hierarchical nature of molecules significantly improves property prediction. By treating motifs as semantic anchors and avoiding the readout bottleneck, the model captures richer chemical information. Future work will explore extending this framework to 3D spatial conformations and applying the hierarchical structure to generative tasks for de novo drug design.
Summary updated