From Generalist to Specialist: A Survey of Large Language Models for Chemistry

Yang Han, Ziping Wan, Lu Chen, Kai Yu, Xin Chen

Abstract

Large Language Models (LLMs) have significantly transformed our daily life and established a new paradigm in natural language processing (NLP). However, the predominant pretraining of LLMs on extensive web-based texts remains insufficient for advanced scientific discovery, particularly in chemistry. The scarcity of specialized chemistry data, coupled with the complexity of multi-modal data such as 2D graph, 3D structure and spectrum, present distinct challenges. Although several studies have reviewed Pretrained Language Models (PLMs) in chemistry, there is a conspicuous absence of a systematic survey specifically focused on chemistry-oriented LLMs. In this paper, we outline methodologies for incorporating domain-specific chemistry knowledge and multi-modal information into LLMs, we also conceptualize chemistry LLMs as agents using chemistry tools and investigate their potential to accelerate scientific research. Additionally, we conclude the existing benchmarks to evaluate chemistry ability of LLMs. Finally, we critically examine the current challenges and identify promising directions for future research.

Introduction

While general-purpose LLMs like GPT-4 have demonstrated remarkable capabilities in general reasoning, they often fall short when faced with the rigorous, multi-modal demands of chemistry. This survey explores the transition from "generalist" to "specialist" models, detailing how researchers are integrating deep domain knowledge, structural molecular data (2D/3D), and external laboratory tools to create AI agents capable of genuine scientific discovery.

Standard LLMs struggle with chemistry for three primary reasons:

  1. Knowledge Scarcity: Pretraining on general web text lacks the depth of specialized chemical literature and experimental data.
  2. Perceptual Blindness: Chemistry involves non-textual modalities like 2D molecular graphs, 3D structures, and complex spectra (NMR, IR) that general LLMs cannot natively interpret.
  3. Tool Underutilization: LLMs are prone to hallucinations, which is critical in chemistry where precision is paramount. They often fail to leverage high-precision chemical software and databases.

Methodologies for Specialization

The specialization of LLMs in chemistry is built upon three technical pillars: domain knowledge injection, multi-modal alignment, and agentic frameworks.

A taxonomy of Chemistry LLMs categorized by domain knowledge, multi-modal data, and chemistry tools.
  • Domain Knowledge Injection: This involves continued pre-training on massive chemical corpora (e.g., ChemDFM’s 34 billion tokens), Supervised Fine-Tuning (SFT) for specific tasks like retrosynthesis, and Reinforcement Learning from Human Feedback (RLHF) to align outputs with chemical reality.
  • Multi-modal Alignment: Researchers connect LLMs to specialized encoders, such as Graph Neural Networks (GNNs) for 2D structures or Uni-Mol for 3D conformations, using "projectors" to translate structural features into the LLM's language space.
  • Agentic Frameworks: Models are designed as agents that use Retrieval-Augmented Generation (RAG) to query databases like PubChem, call specialized ML models for property prediction, and interface with robotic systems for physical experiments.

Bridging the Modality Gap

A significant challenge in chemistry is that molecules are represented in various formats. While LLMs can process text-based SMILES strings, this representation is often lossy and insufficient for understanding complex spatial dynamics.

Different modalities of molecular representation including 1D sequences, 2D graphs, 3D structures, and analytical spectra.

True specialized models must integrate 2D graphs and 3D spatial coordinates to accurately model protein-ligand interactions and molecular dynamics. Furthermore, the integration of analytical spectra (NMR, Mass Spec) is a burgeoning area of research essential for real-world structure elucidation.

Datasets and Benchmarks

The survey highlights critical resources for training and evaluation:

  • Training Sets: Key datasets include ChemDFM (3.9M papers), Mol-Instructions (biomolecular instructions), and LlaSMol.
  • Image Datasets: Synthetic sets like USPTO-680K and realistic sets like MolNexTR for handwritten molecular images.
  • Benchmarks: Frameworks like SciEval (scientific reasoning), ChemLLMBench (8 core chemistry tasks), and MassSpecGym (spectral elucidation) are used to measure progress.

Key Insights and Results

  • The Power of Tool-Use: The most successful chemistry LLMs are those that know how to use external tools. Models that autonomously call RDKit or search the Materials Project database are significantly more reliable than those relying solely on internal weights.
  • Hallucination Mitigation: Integrating quantum chemical feedback during training is essential for grounding models in physical reality, preventing the generation of chemically impossible structures.
  • State-of-the-Art Performance: ChemDFM has emerged as a leading open-source model for chemical dialogue. Meanwhile, task-specific SFT (e.g., GPTChem) shows that smaller, niche-trained models can outperform generalist giants in specific areas like polymer property prediction.
  • Autonomous Discovery: Systems like Coscientist have successfully designed and executed complex chemical reactions, such as palladium-catalyzed cross-couplings, by orchestrating internet searches and robotic control.

Future Directions

Despite rapid progress, several gaps remain. Future research should focus on better integration of analytical spectra, the development of Chain-of-Thought (CoT) datasets that explicitly detail chemical reasoning paths, and robust safety alignment to prevent the misuse of chemical knowledge for creating hazardous substances.

Summary updated

BibTeX
@inproceedings{han2025from,
  author = {Yang Han and Ziping Wan and Lu Chen and Kai Yu and Xin Chen},
  title = {{From Generalist to Specialist: A Survey of Large Language Models for Chemistry}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=xVYzpjQ4mJ},
}
Figure