[Paper Review] Knowledge-aware Contrastive Molecular Graph Learning
This paper proposes Contrastive Knowledge-aware GNN (CKGNN), a self-supervised molecular representation learning framework that explicitly integrates chemical domain knowledge—such as fingerprints and functional groups—into graph neural networks via contrastive learning. The method achieves a 6% absolute average improvement over strong baselines in molecular property prediction across eight datasets by enhancing discriminative power for structurally similar but functionally distinct molecules.
Leveraging domain knowledge including fingerprints and functional groups in molecular representation learning is crucial for chemical property prediction and drug discovery. When modeling the relation between graph structure and molecular properties implicitly, existing works can hardly capture structural or property changes and complex structure, with much smaller atom vocabulary and highly frequent atoms. In this paper, we propose the Contrastive Knowledge-aware GNN (CKGNN) for self-supervised molecular representation learning to fuse domain knowledge into molecular graph representation. We explicitly encode domain knowledge via knowledge-aware molecular encoder under the contrastive learning framework, ensuring that the generated molecular embeddings equipped with chemical domain knowledge to distinguish molecules with similar chemical formula but dissimilar functions. Extensive experiments on 8 public datasets demonstrate the effectiveness of our model with a 6\% absolute improvement on average against strong competitors. Ablation study and further investigation also verify the best of both worlds: incorporation of chemical domain knowledge into self-supervised learning.
Motivation & Objective
- To address the limitation of GNNs in capturing subtle chemical changes, such as functional group substitutions, that significantly alter molecular properties.
- To improve molecular representation learning by explicitly incorporating domain knowledge—like fingerprints and functional groups—into graph neural networks.
- To overcome the ambiguity caused by small atom vocabulary and highly frequent atoms (e.g., carbon) in molecular embeddings.
- To enable self-supervised pre-training that leverages chemical knowledge for better generalization in downstream tasks.
- To demonstrate that combining domain knowledge with contrastive learning yields superior performance compared to models relying solely on data or structure.
Proposed method
- Introduces a knowledge-aware molecular encoder that explicitly encodes subgraph-level domain knowledge, such as functional groups and fingerprints, into node and graph embeddings.
- Employs a contrastive learning framework that compares molecular pairs based on fingerprint similarity to learn invariant representations under structural perturbations.
- Utilizes a molecule cluster strategy to group molecules with similar fingerprints, forming positive pairs for contrastive training.
- Designs a contrastive loss function that maximizes agreement between embeddings of similar molecules while pushing apart dissimilar ones, guided by chemical domain knowledge.
- Combines GNN message passing with knowledge-aware features to preserve both structural and chemical information in the latent space.
- Trains on over 2.4 million molecules in a self-supervised manner, enabling downstream transfer to property prediction tasks.
Experimental results
Research questions
- RQ1Can explicit integration of chemical domain knowledge into GNNs improve molecular representation learning beyond structural information alone?
- RQ2How does contrastive learning with fingerprint-based positive pairs enhance the model's ability to distinguish molecules with similar formulas but different functions?
- RQ3To what extent does knowledge-aware feature injection reduce ambiguity in embeddings for highly frequent atoms like carbon?
- RQ4Does the fusion of domain knowledge and contrastive pre-training lead to better performance than models relying on large-scale data or structural learning alone?
- RQ5Can the model effectively learn to differentiate functional isomers—molecules with same formula but different functional groups—through improved embedding disambiguation?
Key findings
- CKGNN achieves a 6% absolute average improvement in molecular property prediction across eight benchmark datasets compared to strong competitors.
- Ablation studies show that removing knowledge-aware features or the molecule cluster strategy leads to significant performance drops, confirming their critical role.
- The similarity distribution of CKGNN embeddings has the largest variance (0.067), indicating richer and more diverse representations compared to GCC and pre-trained GIN.
- In case studies, only CKGNN successfully identifies molecules with identical substructures (e.g., carboxyl and benzene groups), while GNNs based on structure alone fail.
- For functional isomers, CKGNN produces significantly lower similarity scores (e.g., 0.2661 and 0.1180) compared to GCC and pre-trained GIN (near 1.0), demonstrating superior disambiguation.
- The model outperforms both domain-knowledge-only and data-intensive models, proving that fusion of knowledge and self-supervised learning is optimal.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.