Skip to main content
QUICK REVIEW

[Paper Review] Transformers and Large Language Models for Chemistry and Drug Discovery

Andres M Bran, Philippe Schwaller|arXiv (Cornell University)|Oct 9, 2023
Machine Learning in Materials ScienceMaterials Science8 citations
TL;DR

This chapter surveys how Transformer models and large language models are applied to chemistry and drug discovery, covering representations, task-specific models, multimodal data, and language-model–driven agents that access external tools to solve chemical tasks.

ABSTRACT

Language modeling has seen impressive progress over the last years, mainly prompted by the invention of the Transformer architecture, sparking a revolution in many fields of machine learning, with breakthroughs in chemistry and biology. In this chapter, we explore how analogies between chemical and natural language have inspired the use of Transformers to tackle important bottlenecks in the drug discovery process, such as retrosynthetic planning and chemical space exploration. The revolution started with models able to perform particular tasks with a single type of data, like linearised molecular graphs, which then evolved to include other types of data, like spectra from analytical instruments, synthesis actions, and human language. A new trend leverages recent developments in large language models, giving rise to a wave of models capable of solving generic tasks in chemistry, all facilitated by the flexibility of natural language. As we continue to explore and harness these capabilities, we can look forward to a future where machine learning plays an even more integral role in accelerating scientific discovery.

Motivation & Objective

  • Motivate the study of chemistry as a language problem to accelerate drug discovery.
  • Review textual and multimodal representations of molecules and reactions for Transformer models.
  • Summarize task-specific Transformer approaches for chemistry tasks like retrosynthesis and reaction prediction.
  • Discuss advanced language models, fine-tuning, in-context learning, and agent-based systems in chemistry.

Proposed method

  • Represent molecules and reactions as text sequences (e.g., SMILES, SELFIES) to enable Transformer-based modeling.
  • Use encoder, decoder, or encoder–decoder architectures for translation-style tasks like reaction outcome prediction and retrosynthesis.
  • Pre-train and fine-tune models (e.g., ChemFormer) on chemical tasks to improve transferability across applications.
  • Explore unsupervised learning to learn representations and tools like RXNMapper from attention analyses.
  • Incorporate multimodal data (spectra, synthesis procedures, human language) to build multimodal models.
  • Discuss large language models (LLMs) with fine-tuning and in-context learning for chemistry tasks and uncertainty-aware regression.

Experimental results

Research questions

  • RQ1How can chemical language be effectively modeled using Transformer architectures across single- and multi-modal tasks?
  • RQ2What are the potentials and limitations of large language models in performing general chemistry reasoning and task solving in drug discovery?
  • RQ3Can LLM-powered agents grounded with external tools improve reliability and reach of chemical reasoning tasks?
  • RQ4To what extent do unsupervised representations from Transformers align with chemical knowledge for tasks like reaction prediction and space exploration?

Key findings

  • Transformers enable state-of-the-art performance on chemistry tasks by framing reactions and retrosynthesis as translation problems.
  • Encoder-only and decoder-only variants yield powerful representations and generative capabilities for molecules, reactions, and properties.
  • Multimodal and language-based representations bridge chemical data with human language, enabling tasks like molecular captioning and experimental-step prediction.
  • LLMs, with fine-tuning and in-context learning, can address data-scarce chemistry tasks and approach or surpass specialized methods in some cases.
  • Agent frameworks (e.g., MRKL, ReAct, ChemCrow) demonstrate grounding and tool-use in chemistry, improving reliability and practical applicability of LLMs.

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.