MolMix: A Simple Yet Effective Baseline for Multimodal Molecular Representation Learning

Andrei Manolache, Dragos Tantaru, Mathias Niepert
10/10/2024
cs.LGcs.AI

No official code found. Best implementation: andreimano/MolMix (7 stars, MIT, last commit 2024-10-24).

Abstract

In this work, we propose a simple transformer-based baseline for multimodal molecular representation learning, integrating three distinct modalities: SMILES strings, 2D graph representations, and 3D conformers of molecules. A key aspect of our approach is the aggregation of 3D conformers, allowing the model to account for the fact that molecules can adopt multiple conformations-an important factor for accurate molecular representation. The tokens for each modality are extracted using modality-specific encoders: a transformer for SMILES strings, a message-passing neural network for 2D graphs, and an equivariant neural network for 3D conformers. The flexibility and modularity of this framework enable easy adaptation and replacement of these encoders, making the model highly versatile for different molecular tasks. The extracted tokens are then combined into a unified multimodal sequence, which is processed by a downstream transformer for prediction tasks. To efficiently scale our model for large multimodal datasets, we utilize Flash Attention 2 and bfloat16 precision. Despite its simplicity, our approach achieves state-of-the-art results across multiple datasets, demonstrating its effectiveness as a strong baseline for multimodal molecular representation learning.

View on arXivView PDF

Code Implementations(1)

andreimano/MolMixCommunity100%
MIT
70PythonOct 10, 20241 years agoMIT

Similar Papers

Cite this paper

@article{manolache2024molmix,
  title  = {MolMix: A Simple Yet Effective Baseline for Multimodal Molecular Representation Learning},
  author = {Andrei Manolache and Dragos Tantaru and Mathias Niepert},
  year   = {2024},
  eprint = {2410.07981},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.07981v2}
}

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/2410.07981.svg)](https://codeofpaper.com/paper/2410.07981)

Discussion