Abstract
Traditional molecular representation learning often treats molecules as homogeneous graphs, failing to capture multi-scale granularity and external chemical or pharmacological knowledge. We present KCHML (Knowledge-aware Contrastive Heterogeneous Molecular Graph Learning), a framework that represents molecules as heterogeneous graphs integrating structural, elemental, and pharmacological views. By employing a dual message-passing mechanism and cross-view contrastive learning, KCHML achieves state-of-the-art performance on molecular property prediction and drug-drug interaction tasks, demonstrating superior generalization to unseen drugs.
Introduction: The Limitations of Homogeneous Graphs
Standard Molecular Representation Learning (MRL) typically treats molecules as simple collections of atoms (nodes) and bonds (edges). While this approach has driven significant progress, it suffers from two fundamental limitations: Granularity Blindness and Knowledge Isolation.
Granularity blindness refers to the inability of homogeneous graphs to capture features at different scales, such as functional groups (e.g., benzene rings) that provide specific chemical properties beyond the sum of their individual atoms. Knowledge isolation occurs because standard models ignore external "common sense" chemistry—such as periodic table properties—and high-level medical data regarding drug behavior. Furthermore, common self-supervised "graph augmentations" like random atom dropping can create chemically impossible structures, leading to noisy representations.
Methods: The KCHML Framework
To address these issues, KCHML reimagines the molecule as a Heterogeneous Molecular Graph (HMG). The framework is built upon three core pillars:
1. The Tripartite View
KCHML integrates three distinct perspectives of a molecule:
- Molecular View ($G^M$): Captures the basic atom-bond connectivity.
- Element View ($G^{EM}$): Links atoms to an external Elemental Knowledge Graph containing periodic table data and functional group definitions.
- Drug View ($G^{DM}$): Connects the molecule to a Drug Knowledge Graph containing pharmacological data like side effects and therapeutic targets.
2. Dual Message-Passing and Contrastive Learning
The model utilizes an HMG Encoder inspired by Graph Transformers. It employs a dual message-passing mechanism where nodes (atoms/groups) and edges (bonds/relationships) update each other simultaneously, ensuring that relational information is preserved.
The pre-training phase uses Cross-View Contrastive Learning to align these three views. By forcing the structural view to semantically match the pharmacological and elemental profiles, the model learns robust features without relying on destructive graph augmentations.
Experimental Setup
The model was pre-trained on 250,000 unlabeled molecules from ZINC15 and 8,358 organic molecules from the Drug Repurposing Knowledge Graph (DRKG). Evaluation was conducted across:
- Property Prediction: 13 benchmark datasets from MoleculeNet (e.g., BBBP, Tox21, QM8).
- DDI Prediction: The TwoSide dataset for multi-typed drug-drug interactions.
Key Results and Insights
KCHML achieved state-of-the-art (SOTA) performance across nearly all MoleculeNet benchmarks. Notably, on the BACE dataset, it reached a ROC-AUC of 94.57, outperforming heavyweights like GROVER.
In drug-drug interaction (DDI) tasks, KCHML demonstrated remarkable success in the "inductive" setting—predicting interactions for drugs not seen during training. It achieved 72.69% accuracy in the "new-new" drug pair partition, effectively addressing the "cold-start" problem that plagues many DDI-specific models.
Ablation studies highlighted that the Element View is the most critical component; its removal led to the most significant performance drops, suggesting that atomic-level domain knowledge is vital for general molecular reasoning.
Conclusion and Future Work
KCHML demonstrates that incorporating hierarchical chemical knowledge and pharmacological context significantly enhances molecular representations. While the model is currently limited by the quality of external Knowledge Graphs and its focus on 2D connectivity, future iterations aim to integrate 3D spatial coordinates and multi-modal data (such as textual drug descriptions) to further bridge the performance gap for unseen drugs.
Summary updated