Rethinking Tokenizer and Decoder in Masked Graph Modeling for Molecules
Abstract
Masked graph modeling excels in the self-supervised representation learning of molecular graphs. Scrutinizing previous studies, we can reveal a common scheme consisting of three key components: (1) graph tokenizer, which breaks a molecular graph into smaller fragments (i.e., subgraphs) and converts them into tokens; (2) graph masking, which corrupts the graph with masks; (3) graph autoencoder, which first applies an encoder on the masked graph to generate the representations, and then employs a decoder on the representations to recover the tokens of the original graph. However, the previous MGM studies focus extensively on graph masking and encoder, while there is limited understanding of tokenizer and decoder. To bridge the gap, we first summarize popular molecule tokenizers at the granularity of node, edge, motif, and Graph Neural Networks (GNNs), and then examine their roles as the MGM's reconstruction targets. Further, we explore the potential of adopting an expressive decoder in MGM. Our results show that a subgraph-level tokenizer and a sufficiently expressive decoder with remask decoding have a large impact on the encoder's representation learning. Finally, we propose a novel MGM method SimSGT, featuring a Simple GNN-based Tokenizer (SGT) and an effective decoding strategy. We empirically validate that our method outperforms the existing molecule self-supervised learning methods. Our codes and checkpoints are available at https://github.com/syr-cn/SimSGT.
Benchmark Results
Tested on 6 datasets 9 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 | |
| 31 | JOAO | 0.8230
±0.0220 best reported | best at pub: KPGT: Knowledge-Guided Pre-training of Graph Transformer for Molecular Property Prediction (KDD 2022) |
| 71 | GraphLoG | 0.7960
±0.0250 best reported | best at pub: KPGT: Knowledge-Guided Pre-training of Graph Transformer for Molecular Property Prediction (KDD 2022) |
| 202 | GraphMAE* | 0.7550
±0.0060 | This paper |
| 212 | RGCL | 0.7530
±0.0050 | prev best: Graph Self-Contrast Representation Learning (2023) Improvement within reported uncertainty; not highlighted. |
| 238 | BGRL | 0.7483
±0.0074 best reported | best at pub: Graph Self-supervised Learning with Accurate Discrepancy Learning (NeurIPS 2022) Difference within reported uncertainty; not counted as underperformance. |
| 247 | ADGCL | 0.7450
±0.0070 | This paper |
| 266 | GINE No Pre-train | 0.7390
±0.0090 | This paper |
| # | Model | ROC-AUC ↑ | Paper |
|---|---|---|---|
| 1 | ProtoMol | 0.9140
±0.0030 | |
| 2 | MMSG | 0.9080
±0.0050 | |
| 3 | MemGNN | 0.9070 | |
| 43 | GIN | 0.8646
±0.0081 | |
| 98 | GraphLoG | 0.8350
±0.0120 best reported | best at pub: Motif-aware Attribute Masking for Molecular Graph Pre-training (2023) best today: UGMAE: A Unified Framework for Graph Masked Autoencoders (2024) Difference within reported uncertainty; not counted as underperformance. |
| 100 | JOAO | 0.8340
±0.0330 best reported | best at pub: KPGT: Knowledge-Guided Pre-training of Graph Transformer for Molecular Property Prediction (KDD 2022) |
| 105 | GraphMAE* | 0.8310
±0.0090 | This paper |
| 233 | GINE No Pre-train | 0.7680
±0.0280 | This paper |
| 242 | RGCL | 0.7603
±0.0077 best reported | best at pub: Let Invariant Rationale Discovery Inspire Graph Contrastive Learning (ICML 2022) best today: Graph Self-Contrast Representation Learning (2023) Difference within reported uncertainty; not counted as underperformance. |
| 246 | BGRL | 0.7560
±0.0220 | prev best: Graph Self-supervised Learning with Accurate Discrepancy Learning (NeurIPS 2022) Improvement within reported uncertainty; not highlighted. |
| 255 | ADGCL | 0.7400
±0.0220 | 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 | |
| 34 | GIN | 0.8875
±0.0049 | |
| 39 | JOAO | 0.8790
±0.0200 best reported | best at pub: KPGT: Knowledge-Guided Pre-training of Graph Transformer for Molecular Property Prediction (KDD 2022) |
| 54 | GraphLoG | 0.8460
±0.0080 best reported | best at pub: KPGT: Knowledge-Guided Pre-training of Graph Transformer for Molecular Property Prediction (KDD 2022) |
| 101 | GraphMAE | 0.7200
±0.0090 | This paper |
| 117 | RGCL | 0.7142
±0.0066 best reported | best at pub: Graph Self-Contrast Representation Learning (2023) Difference within reported uncertainty; not counted as underperformance. |
| 129 | ADGCL | 0.7050
±0.0180 | prev best: Subgraph Networks Based Contrastive Learning (2023) Improvement within reported uncertainty; not highlighted. |
| 206 | GINE No Pre-train | 0.6780
±0.0160 | This paper |
| 234 | BGRL | 0.6700
±0.0060 | prev best: Graph Self-supervised Learning with Accurate Discrepancy Learning (NeurIPS 2022) Improvement within reported uncertainty; not highlighted. |
| # | Model | ROC-AUC ↑ | Paper |
|---|---|---|---|
| 1 | SE(3)-I MPPH | 0.9930
±0.0040 | |
| 2 | KA-GCN | 0.9920
±0.0050 | |
| 3 | KA-GAT | 0.9910
±0.0050 | |
| 19 | GCN | 0.9130
±0.0170 | |
| 57 | RGCL | 0.8500
±0.0080 | prev best: Subgraph Networks Based Contrastive Learning (2023) |
| 71 | GraphMAE* | 0.8230
±0.0120 | This paper |
| 79 | JOAO | 0.8132
±0.0249 best reported | best at pub: Graph Self-Contrast Representation Learning (2023) Difference within reported uncertainty; not counted as underperformance. |
| 93 | ADGCL | 0.7980
±0.0350 best reported | best at pub: Subgraph Networks Based Contrastive Learning (2023) Difference within reported uncertainty; not counted as underperformance. |
| 103 | GraphLoG | 0.7872
±0.0258 best reported | best at pub: Let Invariant Rationale Discovery Inspire Graph Contrastive Learning (ICML 2022) best today: Graph Self-Contrast Representation Learning (2023) Difference within reported uncertainty; not counted as underperformance. |
| 199 | BGRL | 0.6550
±0.0230 | prev best: Graph Self-supervised Learning with Accurate Discrepancy Learning (NeurIPS 2022) Improvement within reported uncertainty; not highlighted. |
| 215 | GINE No Pre-train | 0.6260
±0.0440 | 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 | |
| 68 | JOAO | 0.6400
±0.0100 best reported | best at pub: KPGT: Knowledge-Guided Pre-training of Graph Transformer for Molecular Property Prediction (KDD 2022) |
| 80 | ADGCL | 0.6330
±0.0080 best reported | best at pub: Subgraph Networks Based Contrastive Learning (2023) |
| 123 | GraphLoG | 0.6150
±0.0130 best reported | best at pub: KPGT: Knowledge-Guided Pre-training of Graph Transformer for Molecular Property Prediction (KDD 2022) Difference within reported uncertainty; not counted as underperformance. |
| 128 | RGCL | 0.6140
±0.0060 best reported | best at pub: Subgraph Networks Based Contrastive Learning (2023) best today: Dual-perspective Cross Contrastive Learning in Graph Transformers (2024) Difference within reported uncertainty; not counted as underperformance. |
| 169 | BGRL | 0.6041
±0.0143 best reported | best at pub: Graph Self-supervised Learning with Accurate Discrepancy Learning (NeurIPS 2022) Difference within reported uncertainty; not counted as underperformance. |
| 175 | GraphMAE* | 0.6030
±0.0110 | This paper |
| 209 | GINE No Pre-train | 0.5830
±0.0150 | 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 | |
| 31 | JOAO | 0.7110
±0.0140 best reported | best at pub: KPGT: Knowledge-Guided Pre-training of Graph Transformer for Molecular Property Prediction (KDD 2022) |
| 64 | GraphLoG | 0.6770
±0.0190 best reported | best at pub: KPGT: Knowledge-Guided Pre-training of Graph Transformer for Molecular Property Prediction (KDD 2022) |
| 148 | RGCL | 0.6333
±0.0017 best reported | best at pub: Let Invariant Rationale Discovery Inspire Graph Contrastive Learning (ICML 2022) best today: Graph Self-Contrast Representation Learning (2023) Difference within reported uncertainty; not counted as underperformance. |
| 155 | BGRL | 0.6320
±0.0076 best reported | best at pub: Graph Self-supervised Learning with Accurate Discrepancy Learning (NeurIPS 2022) Difference within reported uncertainty; not counted as underperformance. |
| 160 | ADGCL | 0.6310
±0.0070 best reported | best at pub: Subgraph Networks Based Contrastive Learning (2023) Difference within reported uncertainty; not counted as underperformance. |
| 179 | GINE No Pre-train | 0.6240
±0.0040 | This paper |
