Skip to main content
QUICK REVIEW

[Paper Review] Translation between Molecules and Natural Language

Carl K. Edwards, Tuan Lai|arXiv (Cornell University)|Apr 25, 2022
Machine Learning in Materials ScienceMaterials Science24 citations
TL;DR

MolT5 pretrains on large unlabeled text and SMILES data to enable two new cross-modal tasks: molecule captioning and text-based de novo molecule generation, using a self-supervised framework and new Text2Mol evaluation metric.

ABSTRACT

We present $ extbf{MolT5}$ $-$ a self-supervised learning framework for pretraining models on a vast amount of unlabeled natural language text and molecule strings. $ extbf{MolT5}$ allows for new, useful, and challenging analogs of traditional vision-language tasks, such as molecule captioning and text-based de novo molecule generation (altogether: translation between molecules and language), which we explore for the first time. Since $ extbf{MolT5}$ pretrains models on single-modal data, it helps overcome the chemistry domain shortcoming of data scarcity. Furthermore, we consider several metrics, including a new cross-modal embedding-based metric, to evaluate the tasks of molecule captioning and text-based molecule generation. Our results show that $ extbf{MolT5}$-based models are able to generate outputs, both molecules and captions, which in many cases are high quality.

Motivation & Objective

  • Motivate higher-level control over molecule design through natural language interfaces.
  • Overcome data scarcity in molecule-captioning/generation by self-supervised pretraining on text and SMILES strings.
  • Propose MolT5 as a joint text-molecule pretraining framework that can be finetuned on cross-modal tasks.

Proposed method

  • Use an encoder-decoder Transformer initialized from T5 checkpoints.
  • Pretrain with a two-language denoising objective by masking spans in both natural language and SMILES sequences.
  • Finetune on molecule captioning (SMILES -> caption) or text-based de novo molecule generation (caption -> SMILES).
  • Introduce Text2Mol-based cross-modal retrieval to evaluate cross-modal outputs.
  • Evaluate with a suite of traditional NLP metrics and chemistry-specific metrics including validity and chemical fingerprint similarities.

Experimental results

Research questions

  • RQ1Can molecules and natural language be translated in a bidirectional manner using a single pretrained model?
  • RQ2Do self-supervised pretraining on both text and SMILES improve performance on molecule captioning and text-guided molecule generation?
  • RQ3What evaluation metrics best capture cross-modal quality for molecules and language?
  • RQ4How does MolT5 compare to baseline seq2seq and pretrained language models on the new tasks?

Key findings

  • MolT5-based models outperform RNN and Transformer baselines on molecule captioning and generation tasks.
  • MolT5-Large achieves the best captioning scores (BLEU-2 0.594, BLEU-4 0.508, ROUGE-1 0.654, ROUGE-2 0.510, ROUGE-L 0.594, METEOR 0.614, Text2Mol 0.582).
  • For generation, MolT5-Large reaches BLEU-2 0.854, Exact 0.311, Levenshtein 16.071, MACCS FTS 0.834, RDK FTS 0.746, Morgan FTS 0.684, FCD 1.20, Text2Mol 0.554, Validity 0.905.
  • MolT5-Specific gains include higher Text2Mol-based similarity and much higher validity in generated molecules compared to baselines.
  • MolT5 demonstrates capability to generate exact or near-exact molecules from textual descriptions, including complex cases like hydrates and peptides, with qualitative evidence across examples.
  • The Text2Mol metric is utilized to assess cross-modal similarity for generated descriptions/molecules, addressing evaluation gaps for single-reference captions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.