AAAI 2021

Molformer: Motif-based Transformer on 3D Heterogeneous Molecular Graphs

Fang Wu, Qian Zhang, Dragomir R. Radev, Jiyu Cui, Wen Zhang, Huabin Xing, Ningyu Zhang, Hua-zeng Chen

Main figure for Molformer: Motif-based Transformer on 3D Heterogeneous Molecular Graphs

Abstract

Procuring expressive molecular representations underpins AI-driven molecule design and scientific discovery. The research mainly focuses on atom-level homogeneous molecular graphs, ignoring the rich information in subgraphs or motifs. However, it has been widely accepted that substructures play a dominant role in identifying and determining molecular properties. To address such issues, we formulate heterogeneous molecular graphs (HMGs), and introduce a novel architecture to exploit both molecular motifs and 3D geometry. Precisely, we extract functional groups as motifs for small molecules and employ reinforcement learning to adaptively select quaternary amino acids as motif candidates for proteins. Then HMGs are constructed with both atom-level and motif-level nodes. To better accommodate those HMGs, we introduce a variant of the Transformer named Molformer, which adopts a heterogeneous self-attention layer to distinguish the interactions between multi-level nodes. Besides, it is also coupled with a multi-scale mechanism to capture fine-grained local patterns with increasing contextual scales. An attentive farthest point sampling algorithm is also proposed to obtain the molecular representations. We validate Molformer across a broad range of domains, including quantum chemistry, physiology, and biophysics. Extensive experiments show that Molformer outperforms or achieves the comparable performance of several state-of-the-art baselines. Our work provides a promising way to utilize informative motifs from the perspective of multi-level graph construction. The code is available at.

Proposed method: Molformer

Benchmark Results

Tested on 3 datasets 1 baseline value reported too low

Tables show presented results in global context (best 3 papers + GCN + MLP).

MoleculeNet

#ModelROC-AUC ↑Paper
1
ProtoMol
0.9140 ±0.0030
2
MMSG
0.9080 ±0.0050
3
MemGNN
0.9070
13
Molformer
0.8840
This paper
18
Graphtransformer
0.8800
This paper
28
R-MAT
0.8710
This paper
43
GIN
0.8646 ±0.0081
45
AttentiveFP
0.8630
This paper
58
GROVER_large
0.8580
This paper
71
DMPNN
0.8520
This paper
81
MAT
0.8460
This paper
121
TF-Robust
0.8240
This paper
137
MPNN
0.8150
This paper
167
Weave
actual #167 vs paper #199 32 places worse
0.8060 ±0.0020
best reported
actual #167 vs paper #199 32 places worse
paper 0.7910
best at pub: Memory-Based Graph Networks (ICLR 2020)
paper 0.7910 Δ at pub 0.0150
239
SchNet
actual #239 vs paper #250 11 places worse
0.7660 ±0.0110
best reported
actual #239 vs paper #250 11 places worse
paper 0.7500

Difference within reported uncertainty; not counted as underperformance.

paper 0.7500 Δ today 0.0160
258
MGCN
0.7340
This paper
#ModelROC-AUC ↑Paper
1
MAGPrompt+
0.9432 ±0.0238
2
CamS-LLaMA
0.9420
3
SE(3)-I MPPH
0.9400 ±0.0210
13
Molformer
0.9260
This paper
20
DMPNN
0.9190
This paper
24
MPNN
0.9130
This paper
25
Graphtransformer
0.9130
This paper
29
GROVER_large
0.9110
This paper
31
AttentiveFP
0.9080
This paper
34
GIN
0.8875 ±0.0049
48
TF-Robust
0.8600
This paper
52
MGCN
0.8500
This paper
53
SchNet
actual #53 vs paper #53
0.8480 ±0.0220
best reported
actual #53 vs paper #53
paper 0.8470

Difference within reported uncertainty; not counted as underperformance.

paper 0.8470 Δ today 0.0010
56
Weave
actual #56 vs paper #56
0.8370
actual #56 vs paper #56
paper 0.8370
prev best: Molecule Attention Transformer (NeurIPS 2020)
paper 0.8370 Δ at pub 0.1350
69
R-MAT
0.7460
This paper
76
MAT
actual #76 vs paper #86 10 places worse
0.7370 ±0.0090
best reported
actual #76 vs paper #86 10 places worse
paper 0.7280
best at pub: Molecule Attention Transformer (NeurIPS 2020)

Difference within reported uncertainty; not counted as underperformance.

paper 0.7280 Δ at pub 0.0090 Δ today 0.0090
#ModelROC-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
10
Molformer
0.9370
This paper
11
AttentiveFP
actual #11 vs paper #11
0.9330
actual #11 vs paper #11
paper 0.9330
19
GCN
0.9130 ±0.0170
27
DMPNN
actual #27 vs paper #27
0.8970
actual #27 vs paper #27
paper 0.8970
32
GROVER_large
0.8840
This paper
37
MPNN
0.8790
This paper
70
Weave
0.8230
This paper
118
TF-Robust
0.7650
This paper
164
SchNet
0.7170
This paper
211
MGCN
0.6340
This paper
SOTA performance (not significantly different from the best) Proposed method (this paper) Baseline / comparison (this paper) Global context (other papers) Best at pub — reported result worse than the best known when published (best reported in green) Best at pub — reported value improved over the best known when published