Multiresolution Graph Transformers and Wavelet Positional Encoding for Learning Hierarchical Structures

Nhat-Khang Ngô, T. Hy, R. Kondor

Main figure for Multiresolution Graph Transformers and Wavelet Positional Encoding for Learning Hierarchical Structures

Abstract

Contemporary graph learning algorithms are not well-suited for large molecules since they do not consider the hierarchical interactions among the atoms, which are essential to determining the molecular properties of macromolecules. In this work, we propose Multiresolution Graph Transformers (MGT), the first graph transformer architecture that can learn to represent large molecules at multiple scales. MGT can learn to produce representations for the atoms and group them into meaningful functional groups or repeating units. We also introduce Wavelet Positional Encoding (WavePE), a new positional encoding method that can guarantee localization in both spectral and spatial domains. Our proposed model achieves competitive results on three macromolecule datasets consisting of polymers, peptides, and protein-ligand complexes, along with one drug-like molecule dataset. Significantly, our model outperforms other state-of-the-art methods and achieves chemical accuracy in estimating molecular properties (e.g., highest occupied molecular orbital, lowest unoccupied molecular orbital, and their gap) calculated by Density Functional Theory in the polymers dataset. Furthermore, the visualizations, including clustering results on macromolecules and low-dimensional spaces of their representations, demonstrate the capability of our methodology in learning to represent long-range and hierarchical structures. Our PyTorch implementation is publicly available at https://github.com/HySonLab/Multires-Graph-Transformer.

Benchmark Results

Tested on 2 datasets 8 baseline values reported too low

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

LRGB

#ModelMAE ↓Paper
1
GCN
actual #1 vs paper #183 182 places worse
0.2421 ±0.0016
best reported
actual #1 vs paper #183 182 places worse
paper 0.3496 ±0.0013
paper 0.3496 ±0.0013 Δ at pub 0.1008 Δ today 0.1075
2
IPR-MPNN
0.2422 ±0.0007
3
TANGO-GPS
0.2422 ±0.0014
5
GIN
0.2429 ±0.0019
7
GatedGCN
actual #7 vs paper #182 175 places worse
0.2431 ±0.0020
best reported
actual #7 vs paper #182 175 places worse
paper 0.3420 ±0.0013
paper 0.3420 ±0.0013 Δ at pub 0.0897 Δ today 0.0989
25
MGT+WavePE
0.2453 ±0.0025
This paper
49
GINE
actual #49 vs paper #184 135 places worse
0.2473 ±0.0017
best reported
actual #49 vs paper #184 135 places worse
paper 0.3547 ±0.0045
paper 0.3547 ±0.0045 Δ at pub 0.0963 Δ today 0.1074
69
GatedGCN+RWSE
actual #69 vs paper #179 110 places worse
0.2485 ±0.0022
best reported
actual #69 vs paper #179 110 places worse
paper 0.3357 ±0.0006
paper 0.3357 ±0.0006 Δ at pub 0.0828 Δ today 0.0872
75
MGT + LapPE
0.2488 ±0.0014
This paper
84
MGT + RWPE
0.2496 ±0.0009
This paper
113
Transformer+LapPE
0.2529 ±0.0016
This paper
123
SAN+RWSE
0.2545 ±0.0012
This paper
155
SAN+LapPE
actual #155 vs paper #155
0.2680 ±0.0040
best reported
actual #155 vs paper #155
paper 0.2683 ±0.0043
best at pub: LRGB (NeurIPS 2022)

Difference within reported uncertainty; not counted as underperformance.

paper 0.2683 ±0.0043 Δ today 0.0003
201
MLP
0.4351 ±0.0008
#ModelAP ↑Paper
1
S^2GCN
0.7311 ±0.0066
2
S4G
0.7293 ±0.0004
3
BuNN
0.7276 ±0.0065
4
GCN
actual #4 vs paper #142 138 places worse
0.7261 ±0.0011
best reported
actual #4 vs paper #142 138 places worse
paper 0.5930 ±0.0023
paper 0.5930 ±0.0023 Δ at pub 0.0693 Δ today 0.1331
26
GIN
0.7059 ±0.0089
34
GatedGCN
actual #34 vs paper #149 115 places worse
0.7006 ±0.0033
best reported
actual #34 vs paper #149 115 places worse
paper 0.5864 ±0.0077
paper 0.5864 ±0.0077 Δ at pub 0.0771 Δ today 0.1142
55
MGT+WavePE
0.6817 ±0.0064
This paper
66
MGT + LapPE
0.6728 ±0.0152
This paper
67
MGT + RWPE
0.6709 ±0.0083
This paper
73
GatedGCN+RWSE
actual #73 vs paper #134 61 places worse
0.6685 ±0.0062
best reported
actual #73 vs paper #134 61 places worse
paper 0.6069 ±0.0035
paper 0.6069 ±0.0035 Δ at pub 0.0616
78
GINE
actual #78 vs paper #162 84 places worse
0.6621 ±0.0067
best reported
actual #78 vs paper #162 84 places worse
paper 0.5498 ±0.0079
paper 0.5498 ±0.0079 Δ at pub 0.0848 Δ today 0.1123
89
SAN+RWSE
actual #89 vs paper #89
0.6562 ±0.0075
actual #89 vs paper #89
paper 0.6562 ±0.0075
prev best: LRGB (NeurIPS 2022)

Improvement within reported uncertainty; not highlighted.

paper 0.6562 ±0.0075 Δ at pub 0.0123
116
SAN+LapPE
0.6384 ±0.0121
This paper
118
Transformer+LapPE
0.6326 ±0.0126
This paper
181
MLP
0.4060 ±0.0021
SOTA performance (not significantly different from the best) Baseline / comparison (this paper) Global context (other papers) Best at pub — reported result worse than the best known when published (best reported in green)