Bi-level Contrastive Learning for Knowledge-Enhanced
Molecule Representations
Van Thuy Hoang
Network Science Lab
Dept. of Artificial Intelligence
The Catholic University of Korea
E-mail: hoangvanthuy90@gmail.com
2025-08-25
Pengcheng Jiang, et. al., AAAI 25
2
Recap: Graph Convolutional Networks (GCNs)
• Key Idea: Each node aggregates information from its neighborhood to get
contextualized node embedding.
• Limitation: Most GNNs focus on homogeneous graph.
Neural
Transformation
Aggregate neighbor’s
information
3
Recap: Graph data as molecules
• Molecules can be naturally represented as graphs with their atoms as nodes and
chemical bonds as edges.Graph data such as molecules and polymers are found to have
attractive properties in drug and material discovery
• Molecules as graphs
4
Contributions
• A new paradigm for molecule knowledge integration. Our GODE method introduces a
new approach to integrating molecular structures with their corresponding KGs.
• More robust molecular embeddings. Achieving robust molecular representations is
crucial for accurate and consistent predictions across diverse datasets.
• Introducing a new molecular knowledge graph. We have developed MolKG, a
comprehensive knowledge graph specifically tailored to molecular data.
5
Overview of our framework GODE
• Left: The κ-hop KG sub-graph consisting of molecule-relevant relational knowledge,
originating from a central molecule.
6
Overview of our framework GODE
• (i) Molecule-level Pre-training on the molecular graphs with contextual property
prediction and motif prediction tasks;
• (ii) KG-level Pre-training on the κ-hop KG sub-graphs of a central molecule with the tasks
of edge prediction, node prediction, and motif prediction;
• (iii) Contrastive Learning to maximize the agreement between M-GNN and K-GNN, pre-
trained by (i) and (ii), respectively;
• (iv) Fine-tuning of our learned embedding, optionally enriched with extracted molecular-
level features, for specific property predictions.
7
Molecule-level Pre-training
• (1) Node-level Contextual Property Prediction.
• (2) Graph-level Motif Prediction: This loss function encourages the M-GNN to accurately
predict both the contextual properties of nodes and the functional group motifs’
presence or absence in MG.
8
KG-level Pre-training
• Embedding Initialization. Prior to the K-GNN pre-training, we use knowledge graph
embedding (KGE) methods to initialize the node and edge embeddings with entity and
relation embeddings. ‘KGE methods capture relational knowledge behind the structure
and semantics of entities and relationships in the KG.
• The KGE model is trained on the entire KG
9
Contrastive Learning
• InfoNCE as the loss function to conduct contrastive learning between molecule graph
and KG sub-graph.
10
Experiments
• Results on Molecule Property Prediction: GODE achieves SOTA results across all tasks.
11
Effect of KG-level Pre-training and Contrastive Learning.
• Standalone K-GNN pre-training (Case 2) yields a modest boost of 4.5%, with a
particularly slight edge in classification tasks at 0.1%.
• However, when paired with contrastive learning and leveraging both hMG and hKG for
fine-tuning, as in Case 3, the surge in performance is notable, reaching an overall
enhancement of 13.6% over the baseline Case 0.
12
Effect of KG-level Pre-training and Contrastive Learning.
• Efficacy of Knowledge Transfer:
• The influence of contrastive learning in transferring domain knowledge from the
biochemical KG to the molecular representation h_MG is discerned by examining
Cases 3, 4, 5, 6, and contrasting GROVER (backbone) with Cases 7 and 9.
• This underscores GODE’s prowess in biochemical knowledge transfer to molecular
representations.
13
Conclusion
• GODE, a framework that enhances molecule representations through bi-level self-
supervised pre-training and contrastive learning, leveraging biochemical domain
knowledge.
• Results demonstrate its effectiveness in molecular property prediction tasks.
• Future work:
• on expanding the coverage of MolKG and identifying crucial knowledge elements
for optimizing molecular representations.
• This research lays groundwork for advancements in drug discovery applications.
250825_Thuy_Labseminar[Bi-level Contrastive Learning for Knowledge-Enhanced Molecule Representations].pptx

250825_Thuy_Labseminar[Bi-level Contrastive Learning for Knowledge-Enhanced Molecule Representations].pptx

  • 1.
    Bi-level Contrastive Learningfor Knowledge-Enhanced Molecule Representations Van Thuy Hoang Network Science Lab Dept. of Artificial Intelligence The Catholic University of Korea E-mail: hoangvanthuy90@gmail.com 2025-08-25 Pengcheng Jiang, et. al., AAAI 25
  • 2.
    2 Recap: Graph ConvolutionalNetworks (GCNs) • Key Idea: Each node aggregates information from its neighborhood to get contextualized node embedding. • Limitation: Most GNNs focus on homogeneous graph. Neural Transformation Aggregate neighbor’s information
  • 3.
    3 Recap: Graph dataas molecules • Molecules can be naturally represented as graphs with their atoms as nodes and chemical bonds as edges.Graph data such as molecules and polymers are found to have attractive properties in drug and material discovery • Molecules as graphs
  • 4.
    4 Contributions • A newparadigm for molecule knowledge integration. Our GODE method introduces a new approach to integrating molecular structures with their corresponding KGs. • More robust molecular embeddings. Achieving robust molecular representations is crucial for accurate and consistent predictions across diverse datasets. • Introducing a new molecular knowledge graph. We have developed MolKG, a comprehensive knowledge graph specifically tailored to molecular data.
  • 5.
    5 Overview of ourframework GODE • Left: The κ-hop KG sub-graph consisting of molecule-relevant relational knowledge, originating from a central molecule.
  • 6.
    6 Overview of ourframework GODE • (i) Molecule-level Pre-training on the molecular graphs with contextual property prediction and motif prediction tasks; • (ii) KG-level Pre-training on the κ-hop KG sub-graphs of a central molecule with the tasks of edge prediction, node prediction, and motif prediction; • (iii) Contrastive Learning to maximize the agreement between M-GNN and K-GNN, pre- trained by (i) and (ii), respectively; • (iv) Fine-tuning of our learned embedding, optionally enriched with extracted molecular- level features, for specific property predictions.
  • 7.
    7 Molecule-level Pre-training • (1)Node-level Contextual Property Prediction. • (2) Graph-level Motif Prediction: This loss function encourages the M-GNN to accurately predict both the contextual properties of nodes and the functional group motifs’ presence or absence in MG.
  • 8.
    8 KG-level Pre-training • EmbeddingInitialization. Prior to the K-GNN pre-training, we use knowledge graph embedding (KGE) methods to initialize the node and edge embeddings with entity and relation embeddings. ‘KGE methods capture relational knowledge behind the structure and semantics of entities and relationships in the KG. • The KGE model is trained on the entire KG
  • 9.
    9 Contrastive Learning • InfoNCEas the loss function to conduct contrastive learning between molecule graph and KG sub-graph.
  • 10.
    10 Experiments • Results onMolecule Property Prediction: GODE achieves SOTA results across all tasks.
  • 11.
    11 Effect of KG-levelPre-training and Contrastive Learning. • Standalone K-GNN pre-training (Case 2) yields a modest boost of 4.5%, with a particularly slight edge in classification tasks at 0.1%. • However, when paired with contrastive learning and leveraging both hMG and hKG for fine-tuning, as in Case 3, the surge in performance is notable, reaching an overall enhancement of 13.6% over the baseline Case 0.
  • 12.
    12 Effect of KG-levelPre-training and Contrastive Learning. • Efficacy of Knowledge Transfer: • The influence of contrastive learning in transferring domain knowledge from the biochemical KG to the molecular representation h_MG is discerned by examining Cases 3, 4, 5, 6, and contrasting GROVER (backbone) with Cases 7 and 9. • This underscores GODE’s prowess in biochemical knowledge transfer to molecular representations.
  • 13.
    13 Conclusion • GODE, aframework that enhances molecule representations through bi-level self- supervised pre-training and contrastive learning, leveraging biochemical domain knowledge. • Results demonstrate its effectiveness in molecular property prediction tasks. • Future work: • on expanding the coverage of MolKG and identifying crucial knowledge elements for optimizing molecular representations. • This research lays groundwork for advancements in drug discovery applications.