Atom-Motif Contrastive Transformer for Molecular Property Prediction
Abstract
Recently, Graph Transformer (GT) models have been widely used in the task of Molecular Property Prediction (MPP) due to their high reliability in characterizing the latent relationship among graph nodes (i.e., the atoms in a molecule). However, most existing GT-based methods usually explore the basic interactions between pairwise atoms, and thus they fail to consider the important interactions among critical motifs (e.g., functional groups consisted of several atoms) of molecules. As motifs in a molecule are significant patterns that are of great importance for determining molecular properties (e.g., toxicity and solubility), overlooking motif interactions inevitably hinders the effectiveness of MPP. To address this issue, we propose a novel Atom-Motif Contrastive Transformer (AMCT), which not only explores the atom-level interactions but also considers the motif-level interactions. Since the representations of atoms and motifs for a given molecule are actually two different views of the same instance, they are naturally aligned to generate the self-supervisory signals for model training. Meanwhile, the same motif can exist in different molecules, and hence we also employ the contrastive loss to maximize the representation agreement of identical motifs across different molecules. Finally, in order to clearly identify the motifs that are critical in deciding the properties of each molecule, we further construct a property-aware attention mechanism into our learning framework. Our proposed AMCT is extensively evaluated on seven popular benchmark datasets, and both quantitative and qualitative results firmly demonstrate its effectiveness when compared with the state-of-the-art methods.
Benchmark Results
Tested on 6 datasets 10 baseline values reported too low
Tables show presented results in global context (best 3 papers + GCN + MLP).
MoleculeNet
| # | Model | ROC-AUC ↑ | Paper |
|---|---|---|---|
| 1 | HIMP | 0.8740
±0.0050 | |
| 2 | GINE w/ VN | 0.8720
±0.0030 | |
| 3 | NaiveGINe+ K=3 w/ VN | 0.8700
±0.0040 | |
| 14 | GCN | 0.8400
±0.0040 best reported | best at pub: Graph convolutions that can finally model local structure (2020) |
| 20 | MAT | 0.8340 best reported | best at pub: GeomGCL: Geometric Graph Contrastive Learning for Molecular Property Prediction (AAAI 2021) |
| 24 | GIN | 0.8290
±0.0069 | |
| 33 | Weave | 0.8200
±0.0100 best reported | best at pub: Memory-Based Graph Networks (ICLR 2020) |
| 49 | AMCT | 0.8040
±0.0100 | This paper |
| 88 | R-MAT | 0.7910
±0.0090 | This paper |
| 91 | Graphormer | 0.7900
±0.0110 | This paper |
| 106 | GREA-GCN | 0.7850
±0.0080 | This paper |
| 109 | Molformer | 0.7830
±0.0120 | This paper |
| 146 | SchNet | 0.7720
±0.0230 best reported | best at pub: Improving Molecular Contrastive Learning via Faulty Negative Mitigation and Decomposed Fragment Contrast (2022) Difference within reported uncertainty; not counted as underperformance. |
| 172 | MGSSL | 0.7650
±0.0030 best reported | best at pub: Motif-based Graph Self-Supervised Learning for Molecular Property Prediction (NeurIPS 2021) Difference within reported uncertainty; not counted as underperformance. |
| 298 | MGCN | 0.7070
±0.0160 | This paper |
| 304 | TF-Robust | 0.6980
±0.0120 | This paper |
| # | Model | ROC-AUC ↑ | Paper |
|---|---|---|---|
| 1 | ProtoMol | 0.9140
±0.0030 | |
| 2 | MMSG | 0.9080
±0.0050 | |
| 3 | MemGNN | 0.9070 | |
| 7 | AMCT | 0.8950
±0.0120 | This paper |
| 13 | Molformer | 0.8840 best reported | best at pub: Molformer: Motif-based Transformer on 3D Heterogeneous Molecular Graphs (AAAI 2021) Difference within reported uncertainty; not counted as underperformance. |
| 28 | R-MAT | 0.8710 best reported | best at pub: Molformer: Motif-based Transformer on 3D Heterogeneous Molecular Graphs (AAAI 2021) Difference within reported uncertainty; not counted as underperformance. |
| 43 | GIN | 0.8646
±0.0081 | |
| 53 | Graphormer | 0.8600
±0.0130 | |
| 64 | GCN | 0.8540
±0.0110 | Improvement within reported uncertainty; not highlighted. |
| 81 | MAT | 0.8460
±0.0250 | This paper |
| 121 | TF-Robust | 0.8240
±0.0220 | This paper |
| 130 | MGSSL | 0.8203
±0.0379 best reported | best at pub: Motif-based Graph Self-Supervised Learning for Molecular Property Prediction (NeurIPS 2021) best today: Pre-training Graph Neural Networks on Molecules by Using Subgraph-Conditioned Graph Information Bottleneck (AAAI 2024) Difference within reported uncertainty; not counted as underperformance. |
| 167 | Weave | 0.8060
±0.0020 best reported | best at pub: Memory-Based Graph Networks (ICLR 2020) |
| 239 | SchNet | 0.7660
±0.0110 best reported | best at pub: Improving Molecular Contrastive Learning via Faulty Negative Mitigation and Decomposed Fragment Contrast (2022) Difference within reported uncertainty; not counted as underperformance. |
| 258 | MGCN | 0.7340
±0.0300 | This paper |
| 261 | GREA-GCN | 0.7320
±0.0350 | This paper |
| # | Model | ROC-AUC ↑ | Paper |
|---|---|---|---|
| 1 | MAGPrompt+ | 0.9432
±0.0238 | |
| 2 | CamS-LLaMA | 0.9420 | |
| 3 | SE(3)-I MPPH | 0.9400
±0.0210 | |
| 10 | AMCT | 0.9270
±0.0080 | This paper |
| 13 | Molformer | 0.9260 best reported | best at pub: Molformer: Motif-based Transformer on 3D Heterogeneous Molecular Graphs (AAAI 2021) Difference within reported uncertainty; not counted as underperformance. |
| 21 | Graphormer | 0.9170
±0.0100 | |
| 34 | GIN | 0.8875
±0.0049 | |
| 38 | GCN | 0.8810
±0.0360 best reported | best at pub: Motif-based Graph Representation Learning with Application to Chemical Molecules (2022) Difference within reported uncertainty; not counted as underperformance. |
| 48 | TF-Robust | 0.8600
±0.0870 | This paper |
| 52 | MGCN | 0.8500
±0.0640 | This paper |
| 53 | SchNet | 0.8480
±0.0220 best reported | best at pub: Improving Molecular Contrastive Learning via Faulty Negative Mitigation and Decomposed Fragment Contrast (2022) Difference within reported uncertainty; not counted as underperformance. |
| 56 | Weave | 0.8370
±0.0650 | This paper |
| 61 | MGSSL | 0.7952
±0.0198 best reported | best at pub: Motif-based Graph Self-Supervised Learning for Molecular Property Prediction (NeurIPS 2021) |
| 69 | R-MAT | 0.7460 best reported | best at pub: Molformer: Motif-based Transformer on 3D Heterogeneous Molecular Graphs (AAAI 2021) Difference within reported uncertainty; not counted as underperformance. |
| 76 | MAT | 0.7370
±0.0090 | This paper |
| 202 | GREA-GCN | 0.6790
±0.0180 | This paper |
| # | Model | ROC-AUC ↑ | Paper |
|---|---|---|---|
| 1 | KA-GAT | 0.8470
±0.0020 | |
| 2 | KA-GCN | 0.8420
±0.0010 | |
| 3 | GraphKAN | 0.8370
±0.0010 | |
| 66 | GIN | 0.6403
±0.0104 | |
| 81 | AMCT | 0.6330
±0.0160 | This paper |
| 113 | MAT | 0.6190 best reported | best at pub: GeomGCL: Geometric Graph Contrastive Learning for Molecular Property Prediction (AAAI 2021) |
| 116 | MGSSL | 0.6180
±0.0080 best reported | best at pub: Motif-based Graph Self-Supervised Learning for Molecular Property Prediction (NeurIPS 2021) Difference within reported uncertainty; not counted as underperformance. |
| 121 | Graphormer | 0.6160
±0.0100 | This paper |
| 125 | GCN | 0.6150
±0.0250 best reported | best at pub: Motif-based Graph Representation Learning with Application to Chemical Molecules (2022) Difference within reported uncertainty; not counted as underperformance. |
| 153 | TF-Robust | 0.6070
±0.0330 | This paper |
| 166 | Molformer | 0.6050
±0.0110 | This paper |
| 183 | R-MAT | 0.6000
±0.0130 | This paper |
| 226 | GREA-GCN | 0.5690
±0.0230 | This paper |
| 232 | MGCN | 0.5520
±0.0180 | This paper |
| 234 | SchNet | 0.5450
±0.0380 | prev best: Improving Molecular Contrastive Learning via Faulty Negative Mitigation and Decomposed Fragment Contrast (2022) Improvement within reported uncertainty; not highlighted. |
| 235 | Weave | 0.5430
±0.0340 | This paper |
| # | Model | ROC-AUC ↑ | Paper |
|---|---|---|---|
| 1 | GeomGCL | 0.7630 | |
| 2 | LiGhT DeepGPT | 0.7570
±0.0110 | |
| 3 | CoMPT | 0.7550 | |
| 14 | GCN | 0.7350
±0.0020 best reported | best at pub: Graph convolutions that can finally model local structure (2020) |
| 16 | MAT | 0.7350 best reported | best at pub: GeomGCL: Geometric Graph Contrastive Learning for Molecular Property Prediction (AAAI 2021) |
| 27 | AMCT | 0.7150
±0.0110 | This paper |
| 32 | GIN | 0.7095
±0.0027 | |
| 37 | Graphormer | 0.7030
±0.0100 | This paper |
| 47 | Molformer | 0.6910
±0.0120 | This paper |
| 52 | R-MAT | 0.6850
±0.0090 | This paper |
| 60 | SchNet | 0.6790
±0.0210 | This paper |
| 61 | Weave | 0.6780
±0.0240 | This paper |
| 84 | MGCN | 0.6630
±0.0090 | This paper |
| 93 | GREA-GCN | 0.6580
±0.0060 | This paper |
| 129 | MGSSL | 0.6410
±0.0070 best reported | best at pub: Motif-based Graph Self-Supervised Learning for Molecular Property Prediction (NeurIPS 2021) Difference within reported uncertainty; not counted as underperformance. |
| 206 | TF-Robust | 0.5850
±0.0310 | This paper |
| # | Model | RMSE ↓ | Paper |
|---|---|---|---|
| 1 | Graphormer-SPIS | 0.4840
±0.0050 | |
| 2 | Graphormer-SPD | 0.4920
±0.0040 | |
| 3 | conan-FGW | 0.5140
±0.0190 | |
| 7 | GCN | 0.5640
±0.0150 best reported | best at pub: On Structural Expressive Power of Graph Transformers (KDD 2023) |
| 18 | GraphSAGE | 0.6010
±0.0080 | |
| 20 | Weave | 0.6100
±0.0700 best reported | best at pub: MoleculeNet (2017) |
| 24 | MAT | 0.6240 best reported | best at pub: GeomGCL: Geometric Graph Contrastive Learning for Molecular Property Prediction (AAAI 2021) |
| 47 | AMCT | 0.8150
±0.0100 | This paper |
| 53 | Graphormer | 0.8290
±0.0140 | This paper |
| 56 | R-MAT | 0.8330
±0.0150 | This paper |
| 61 | Molformer | 0.8480
±0.0130 | This paper |
| 68 | GREA-GCN | 0.8970
±0.0360 | This paper |
| 90 | SchNet | 1.0450
±0.0640 | prev best: Improving Molecular Contrastive Learning via Faulty Negative Mitigation and Decomposed Fragment Contrast (2022) Improvement within reported uncertainty; not highlighted. |
| 113 | MGSSL | 1.1790
±0.0080 | prev best: Motif-aware Attribute Masking for Molecular Graph Pre-training (2023) |
| 120 | MGCN | 1.2660
±0.1470 | prev best: Improving Molecular Contrastive Learning via Faulty Negative Mitigation and Decomposed Fragment Contrast (2022) Improvement within reported uncertainty; not highlighted. |
| 138 | TF-Robust | 1.7220
±0.0380 | This paper |
