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

Shengjie Luo, Tianlang Chen, Yixian Xu, Shuxin Zheng, Tie-Yan Liu +2 more
10/4/2022
cs.LGq-bio.BMstat.ML
transformer-attention

Official code: lsj2408/Transformer-M (219 stars, Python, MIT, last commit 2023-03-31).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

[ICLR 2023] One Transformer Can Understand Both 2D & 3D Molecular Data (official implementation)

21926Python, CudaOct 4, 20223 years agoMIT
general-purpose-molecular-modelgraph-neural-networkgraph-transformermolecular-modelingmolecule+1 more

Similar Papers

Cite this paper

@article{luo2022transformer,
  title  = {One Transformer Can Understand Both 2D & 3D Molecular Data},
  author = {Shengjie Luo and Tianlang Chen and Yixian Xu and Shuxin Zheng and Tie-Yan Liu and Liwei Wang and Di He},
  year   = {2022},
  eprint = {2210.01765},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.01765}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.01765.svg)](https://codeofpaper.com/paper/2210.01765)

Discussion