Gode - Integrating Biochemical Knowledge Graph into Pre-training Molecule Graph Neural Network

Pengcheng Jiang · OpenReview

Abstract

Molecule representation learning underpins diverse downstream applications such as molecular property and side effect understanding and prediction. In this paper, we recognize the two-level structure of individual molecule as having intrinsic graph structure as well as being a node in a large molecule knowledge graph, and present GODE, a new approach that seamlessly integrates graph representations of individual molecules with multi-domain biomedical data from knowledge graphs. By pre-training two graph neural networks (GNNs) on different graph structures, combined with contrastive learning, GODE adeptly fuses molecular structures with their corresponding knowledge graph substructures. This fusion results in a more robust and informative representation, enhancing molecular property prediction by harnessing both chemical and biological information. Finetuned on 11 chemical property tasks, our model surpasses benchmarks, achieving an average ROC-AUC improvement of 14.5%, 9.8%, and 7.3% on BBBP, SIDER, and Tox21 datasets. In regression tasks on ESOL and QM7 datasets, we achieve average improvements of 21.0% and 29.6% improvements in RMSE and MAE, setting a new field benchmark.

Introduction

Predicting molecular behavior—such as toxicity, solubility, or protein binding affinity—is a cornerstone of AI-driven drug discovery. Traditional approaches typically employ Graph Neural Networks (GNNs) to analyze the "intrinsic" structure of a molecule, focusing on how atoms are bonded. However, these models often lack "extrinsic" context, ignoring the vast scientific knowledge regarding how a molecule interacts with diseases, biological pathways, and other chemical entities.

While some research has attempted to incorporate Knowledge Graph (KG) data, these efforts often rely on static embeddings that fail to capture the local, relational neighborhood of a molecule. The challenge lies in effectively fusing the microscopic structural view (atoms and bonds) with the macroscopic biochemical view (biomedical relationships). To address this, we propose GODE (Graph as a Node), a framework that treats a molecule simultaneously as an internal graph of atoms and a single node within a massive biochemical knowledge graph.

The GODE Framework

GODE utilizes a dual-GNN architecture and a bi-level pre-training strategy to align structural and contextual representations.

The GODE framework overview, illustrating molecule-level pre-training, KG-level pre-training, contrastive learning, and fine-tuning.

1. Molecule-level Pre-training (M-GNN)

The Molecule GNN (M-GNN) focuses on the internal structure. It is pre-trained to predict "motifs" (functional groups like -COOH) and contextual properties of individual atoms, ensuring the model understands the fundamental chemistry of the molecule.

2. KG-level Pre-training (K-GNN)

In this stage, the molecule is treated as a single node within a large Knowledge Graph. The model extracts a $\kappa$-hop subgraph—representing the molecule's immediate "biochemical neighborhood"—and learns to predict missing edges, node categories, and motifs based on this context.

3. Bi-level Contrastive Learning

This component serves as the "glue" between the two perspectives. Using an InfoNCE loss function, GODE maximizes the agreement between the M-GNN representation (atom-view) and the K-GNN representation (knowledge-view). This teaches the model that both views describe the same underlying entity, resulting in a more holistic representation.

4. Fine-tuning

For specific downstream tasks, the learned embeddings are concatenated with additional chemical features (derived from RDKit) to produce final predictions via a Multi-Layer Perceptron (MLP).

Data and the MolKG Knowledge Graph

GODE's effectiveness is rooted in its comprehensive data sources:

  • Structural Data: 11 million unlabeled molecules from ZINC15 and ChEMBL were used for molecule-level pre-training.
  • MolKG: A newly constructed Knowledge Graph built from PubChemRDF and PrimeKG. It contains over 2.5 million triples, 184k entities, and 39 types of relations, such as "drug-disease" and "structure-complexity."
A central molecule within the MolKG, showing its diverse relationships with other entities like proteins, diseases, and chemical properties.

Key Results and Insights

GODE achieves state-of-the-art (SOTA) performance across 11 standard benchmarks in the MoleculeNet suite.

  • Performance Gains: In classification tasks, GODE achieved an average 12.7% relative improvement in ROC-AUC over standard benchmarks. In regression tasks, it showed an average 34.4% improvement in error reduction (RMSE/MAE).
  • Comparison to Benchmarks: GODE outperformed KANO, the previous leading model, by 2.2% in classification and 7.2% in regression.
  • The "Social Identity" of Molecules: A key insight is that a molecule's properties are defined not just by its atoms, but by its interactions. By aligning structural patterns with biological behaviors in the KG, GODE captures a richer signal than structural-only models.
  • Importance of Local Context: Unlike methods using global KG embeddings, GODE’s focus on the $\kappa$-hop subgraph captures the specific neighborhood relevant to a molecule, providing a more precise signal for property prediction.

Conclusion

GODE demonstrates that integrating extrinsic biochemical knowledge with intrinsic molecular structure significantly enhances representation learning. While the model's performance is tied to the coverage of the underlying Knowledge Graph, its success on diverse benchmarks suggests a powerful new paradigm for drug discovery. Future work will focus on expanding MolKG coverage and identifying the most critical knowledge elements for specific therapeutic tasks.

Summary updated

BibTeX
@inproceedings{jiang2025gode,
  author = {Pengcheng Jiang},
  title = {{Gode - Integrating Biochemical Knowledge Graph into Pre-training Molecule Graph Neural Network}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i1.32013},
}
Figure