Abstract
Learning effective molecular feature representation to facilitate molecular property prediction is of great significance for drug discovery. Recently, there has been a surge of interest in pre-training graph neural networks (GNNs) via self-supervised learning techniques to overcome the challenge of data scarcity in molecular property prediction. However, current self-supervised learning-based methods suffer from two main obstacles: the lack of a well-defined self-supervised learning strategy and the limited capacity of GNNs. Here, we propose Knowledge-guided Pre-training of Graph Transformer (KPGT), a self-supervised learning framework to alleviate the aforementioned issues and provide generalizable and robust molecular representations. The KPGT framework integrates a graph transformer specifically designed for molecular graphs and a knowledge-guided pre-training strategy, to fully capture both structural and semantic knowledge of molecules. Through extensive computational tests on 63 datasets, KPGT exhibits superior performance in predicting molecular properties across various domains. Moreover, the practical applicability of KPGT in drug discovery has been validated by identifying potential inhibitors of two antitumor targets: hematopoietic progenitor kinase 1 (HPK1) and fibroblast growth factor receptor 1 (FGFR1). Overall, KPGT can provide a powerful and useful tool for advancing the artificial intelligence (AI)-aided drug discovery process.
Introduction
Predicting molecular properties, such as toxicity or drug efficacy, is a cornerstone of artificial intelligence-aided drug discovery. However, the field faces two significant challenges: data scarcity and model limitations. While millions of unlabeled molecules exist, experimentally verified property data is limited. Furthermore, standard Graph Neural Networks (GNNs) often suffer from "over-smoothing" and struggle to capture long-range interactions between distant atoms. While self-supervised learning has emerged as a solution, existing methods often focus solely on local structural features, neglecting broader chemical semantics.
Methodology
The Knowledge-guided Pre-training of Graph Transformer (KPGT) framework addresses these issues through two primary innovations: a novel architecture and a knowledge-enhanced pre-training strategy.
Line Graph Transformer (LiGhT)
Unlike traditional models that treat atoms as nodes, the Line Graph Transformer (LiGhT) operates on a line graph where bonds serve as nodes. This approach allows the model to fully leverage the rich chemical information contained within bonds, such as bond type and stereochemistry. To capture spatial relationships between distant parts of a molecule, LiGhT incorporates path and distance encodings within its Transformer architecture.
Knowledge-Guided Pre-training
KPGT introduces a "Knowledge node" (K node) to anchor the model's learning in expert chemical knowledge. This node is initialized with 200 molecular descriptors and 512 fingerprints (e.g., RDKit fingerprints) representing the molecule's global physical and chemical profile. During pre-training, the model is tasked with both predicting masked nodes and reconstructing these expert-derived descriptors. This dual objective forces the model to learn the underlying chemical meaning of structures rather than simply memorizing local valency rules.
Evaluation and Results
KPGT was pre-trained on approximately 2 million molecules from the ChEMBL29 dataset and evaluated across a comprehensive suite of 63 datasets, including standard benchmarks (e.g., BACE, BBBP), the Therapeutics Data Commons (TDC) leaderboard, and MoleculeACE for activity cliff detection.
Key findings include:
- Broad Superiority: KPGT outperformed 19 baseline methods on 11 standard benchmarks, showing relative improvements of up to 4.5%.
- Activity Cliff Detection: The model demonstrated a 3.9% improvement on MoleculeACE, indicating a superior ability to detect subtle structural changes that lead to dramatic property shifts.
- Robustness: KPGT performed optimally with a high masking rate of 50%, suggesting that knowledge guidance provides sufficient context to solve the prediction task even with significant missing data.
- Real-world Application: In drug repurposing tests, KPGT successfully identified potential inhibitors for antitumor targets HPK1 and FGFR1. For HPK1, 12 out of the top 20 predictions were validated by existing literature as potent inhibitors.
Conclusion
KPGT provides a powerful tool for molecular representation learning by bridging the gap between structural data and chemical semantics. By combining the bond-centric LiGhT architecture with semantic anchoring via the K node, the framework achieves state-of-the-art performance across diverse chemical domains. Future work may involve incorporating 3D molecular conformations, expanding the descriptor knowledge base, and scaling the model parameters to further enhance performance in complex drug discovery tasks.
Summary updated