ICLR 2022

One Transformer Can Understand Both 2D & 3D Molecular Data

Shengjie Luo, Tianlang Chen, Yixian Xu, Shuxin Zheng, Tie-Yan Liu, Di He, Liwei Wang

Main figure for One Transformer Can Understand Both 2D & 3D Molecular Data

Abstract

Unlike vision and language data which usually has a unique format, molecules can naturally be characterized using different chemical formulations. One can view a molecule as a 2D graph or define it as a collection of atoms located in a 3D space. For molecular representation learning, most previous works designed neural networks only for a particular data format, making the learned models likely to fail for other data formats. We believe a general-purpose neural network model for chemistry should be able to handle molecular tasks across data modalities. To achieve this goal, in this work, we develop a novel Transformer-based Molecular model called Transformer-M, which can take molecular data of 2D or 3D formats as input and generate meaningful semantic representations. Using the standard Transformer as the backbone architecture, Transformer-M develops two separated channels to encode 2D and 3D structural information and incorporate them with the atom features in the network modules. When the input data is in a particular format, the corresponding channel will be activated, and the other will be disabled. By training on 2D and 3D molecular data with properly designed supervised signals, Transformer-M automatically learns to leverage knowledge from different data modalities and correctly capture the representations. We conducted extensive experiments for Transformer-M. All empirical results show that Transformer-M can simultaneously achieve strong performance on 2D and 3D tasks, suggesting its broad applicability. The code and models will be made publicly available at https://github.com/lsj2408/Transformer-M.

Benchmark Results

Tested on 1 dataset 1 baseline value reported too low

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

OGB

#ModelMAE ↓Paper
1
DeMol
0.0603
2
TGT-At
0.0671
3
TGT-At (+RDKit)
0.0683
7
Transformer-M
actual #7 vs paper #8 1 place worse
0.0772
best reported
actual #7 vs paper #8 1 place worse
paper 0.0787
25
GraphGPS_BASE
0.0858
This paper
33
GRPE_LARGE
0.0867
This paper
40
GRPE_BASE
0.0890
This paper
44
TokenGT
actual #44 vs paper #44
0.0910
actual #44 vs paper #44
paper 0.0910
48
CoAtGIN
0.0933
This paper
52
GraphGPS_SMALL
0.0938
This paper
55
DeeperGCN-VN
0.1021
This paper
60
GCN-VN
actual #60 vs paper #61 1 place worse
0.1152
best reported
actual #60 vs paper #61 1 place worse
paper 0.1153
62
GINE-VN
0.1167
This paper
64
GIN
0.1195
82
MLP-Fingerprint
actual #82 vs paper #82
0.1735
best reported
actual #82 vs paper #82
paper 0.1753
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) Best at pub — reported value improved over the best known when published Best today — OK at publication; today's leaderboard best is elsewhere