MTSwitch: A Web-based System for Translation between Molecules and Texts

Nijia Han, Zimu Wang, Yuqi Wang, Haiyang Zhang, Daiyun Huang, Wei WangINLG (System Demonstrations) 2024

TL;DR

Researchers have developed MTSwitch, a web-based system that translates between molecular structures (represented as SMILES strings) and natural language descriptions. This tool leverages large language models (LLMs) to perform two key tasks: explaining a molecule's properties (captioning) and designing a molecule based on desired characteristics (generation), making complex molecular information more accessible.

What Problem Does This Paper Address?

The field of chemistry is increasingly benefiting from the power of Large Language Models (LLMs), which are traditionally used for natural language processing. However, applying these advanced models to chemistry requires specialized knowledge to invoke them, creating a barrier for researchers who aren't AI experts. This paper addresses the need for an intuitive and user-friendly system that bridges the gap between molecular representations (like SMILES strings) and descriptive text, simplifying tasks like understanding molecular properties or designing new molecules.

Methods

MTSwitch is a web-based platform that facilitates bidirectional translation between molecules and text. Users interact with the system through a simple interface where they select a task (molecule captioning or generation) and a specific LLM. They then input either a SMILES string or a natural language description. The system processes this input, executes the chosen LLM for the specified task, and presents the output. The system incorporates four LLMs:

  • MolT5 and Meditron: These are LLMs pre-trained specifically for the molecule-text translation task on the L+M-24 dataset.
  • Llama 3 and Mistral: These are fine-tuned versions of state-of-the-art LLMs, adapted for the molecule-text translation task using a subset of the L+M-24 dataset and similar training procedures as Meditron.

Datasets

The primary dataset used for training and evaluation is L+M-24. This is described as a large-scale dataset specifically designed for translating between molecules and natural language. The authors also mention fine-tuning Llama 3 and Mistral using a subset of this dataset.

Key Insights and Ideas

  • Democratizing Molecular AI: MTSwitch aims to make advanced LLM capabilities for chemistry accessible to a broader audience, reducing the technical overhead for researchers.
  • Bridging Modalities: The system effectively bridges the gap between the symbolic representation of molecules (SMILES) and their semantic descriptions, fostering better understanding and communication in chemistry.
  • Versatile LLM Integration: By supporting multiple LLMs (both specialized and general-purpose fine-tuned), MTSwitch offers flexibility and allows users to explore different model performances.

Key Results

The paper presents experimental results for both molecule captioning and generation tasks, evaluated using metrics like ROUGE, BLEU, and METEOR for text quality, and validity, uniqueness, and fingerprint similarities (MACCS, RDK, Morgan) for molecular generation.

  • Molecule Captioning: Meditron showed particularly strong performance across several captioning metrics, including ROUGE-2 and BLEU-2.
  • Molecule Generation: MolT5 and Meditron demonstrated superior performance in molecular generation, aligning with their previously reported capabilities. Llama 3 showed good performance in some metrics but struggled with coherence and lexical diversity in text generation tasks.

Limitations and Future Work

Limitations: * The paper notes that Llama 3 exhibited potential coherence and lexical diversity issues in specific text generation tasks.

Future Work: The authors plan to expand MTSwitch by incorporating more LLMs and additional tasks to make the system even more comprehensive and effective.

Summary updated

Abstract

We introduce MTSwitch, a web-based system for the bidirectional translation between molecules and texts, leveraging various large language models (LLMs). It supports two crucial tasks, including molecule captioning (explaining the properties of a molecule) and molecule generation (designing a molecule based on specific properties). To the best of our knowledge, MTSwitch is currently the first accessible system that allows users to translate between molecular representations and descriptive text contents. The system and a screencast can be found in https://github.com/hanninaa/MTSwitch.
BibTeX
@inproceedings{han2024mtswitch,
  author = {Nijia Han and Zimu Wang and Yuqi Wang and Haiyang Zhang and Daiyun Huang and Wei Wang},
  title = {{MTSwitch: A Web-based System for Translation between Molecules and Texts}},
  booktitle = {INLG (System Demonstrations)},
  year = {2024},
  url = {https://openreview.net/forum?id=fGr20JmLZa},
}
Figure