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. Through this comprehensive survey, we aim to assist researchers in staying at the forefront of developments in chemistry LLMs and to inspire innovative applications in the field.

The "Chemistry Gap" in General LLMs

While general-purpose LLMs like GPT-4 are remarkably proficient in natural language, they often face a significant "chemistry gap." Most models are trained on general web text, which lacks the depth of specialized scientific literature. Furthermore, chemistry is inherently multi-modal, involving 1D sequences (SMILES), 2D molecular graphs, 3D atomic coordinates, and complex spectra (NMR, IR).

General LLMs frequently "hallucinate" non-existent molecules, fail to understand structural relationships, and cannot perform the precise calculations or up-to-date knowledge retrieval necessary for advanced research. The authors identify three core challenges:

  1. Insufficient Domain Knowledge: General training data is too thin on chemistry.
  2. Perceptual Blindness: LLMs struggle to process non-textual chemical modalities.
  3. Lack of Tool Integration: LLMs cannot natively run simulations or operate lab hardware.
Diverse modalities for molecular representation, including 1D sequences, 2D graphs, 3D structures, and spectral data.

Methodology: Building Specialist Models

The survey categorizes the strategies used to build "Chemistry LLMs" into a clear taxonomy focusing on domain knowledge, multi-modal perception, and tool use.

Taxonomy of Chemistry LLMs categorized by domain knowledge, multi-modal data, and tool integration.

Domain Knowledge Enhancement

This includes Continued Pre-training (CPT) on massive chemical corpora (e.g., ChemDFM used 34 billion tokens), Supervised Fine-Tuning (SFT) using instruction-output pairs, and Reinforcement Learning from Human Feedback (RLHF). Interestingly, the field is moving toward RLXF, where the "X" represents environmental feedback from docking software or chemical simulators rather than just human intuition.

Multi-modal Alignment

To help LLMs "see" molecules, researchers use specialized encoders (like Graph Neural Networks or Vision Transformers) and "projectors" to map 2D graphs or 3D structures into the LLM’s token space. While 1D SMILES strings are easy for LLMs to read as text, they lose critical spatial information, making 2D and 3D integration essential for physical chemistry tasks.

Agentic Tool Use

Instead of forcing the LLM to memorize everything, researchers are building "agents" that can call external APIs (like PubChem), run ML models for property prediction (like ChemCrow), or even command physical robots (like Coscientist).

Datasets and Benchmarks

The survey highlights several pivotal resources:

  • Training Sets: ChemDFM (3.9M papers, 1.4K books), Mol-Instructions (a large-scale biomolecular instruction dataset), and LlaSMol.
  • Benchmarks: Evaluation tools include ChemLLMBench (8 tasks), SciKnowEval (50k problems covering knowledge and reasoning), and MassSpecGym (focused on structure elucidation from mass spectrometry data).

Key Insights and Results

  • From Encyclopedia to Agent: The most successful models aren't those that try to memorize the periodic table, but those that know how to use a calculator, a simulator, or a search engine.
  • The Rise of RLXF: In chemistry, "truth" can be verified by physics-based software. Using docking scores as reward signals allows models to self-improve without constant human intervention.
  • State-of-the-Art Performance: ChemDFM stands out as a leading open-source model. Agentic frameworks like ChemCrow have demonstrated the ability to autonomously plan and execute the synthesis of insect repellents and organocatalysts by orchestrating multiple expert tools.

Limitations and Future Work

Despite progress, data quality remains a hurdle, as much chemical data is trapped behind paywalls or in non-machine-readable formats like PDF tables. Even specialized LLMs struggle with complex, multi-step "Chain-of-Thought" reasoning for retrosynthesis. Furthermore, as these models become better at synthesis planning, the risk of misuse for creating hazardous substances increases, necessitating robust "red-teaming" and safety alignment.

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