InstructMol: Multi-Modal Integration for Building a Versatile and Reliable Molecular Assistant in Drug Discovery

He Cao, Zijing Liu, Xingyu Lu, Yuan Yao, Yu Li

Abstract

The rapid evolution of artificial intelligence in drug discovery encounters challenges with generalization and extensive training, yet Large Language Models (LLMs) offer promise in reshaping interactions with complex molecular data. Our novel contribution, InstructMol, a multi-modal LLM, effectively aligns molecular structures with natural language via an instruction-tuning approach, utilizing a two-stage training strategy that adeptly combines limited domain-specific data with molecular and textual information. InstructMol showcases substantial performance improvements in drug discovery-related molecular tasks, surpassing leading LLMs and significantly reducing the gap with specialists, thereby establishing a robust foundation for a versatile and dependable drug discovery assistant.

Introduction

Artificial Intelligence-driven drug discovery (AIDD) has historically relied on "specialist models"—tools optimized for singular tasks like toxicity prediction or retrosynthesis. While effective, these models lack the flexible reasoning and conversational interface of modern Large Language Models (LLMs). However, general-purpose LLMs struggle with the complex structural language of chemistry, often failing to interpret molecular graphs or chemical sequences accurately.

InstructMol addresses this "chemistry problem" by creating a unified framework that allows an LLM to process molecules as both structural graphs and chemical sequences. This multi-modal approach enables the model to perform a wide range of tasks, from property prediction to complex chemical reaction analysis, using natural language instructions.

InstructMol supports a variety of molecular tasks including property prediction, description generation, and reaction analysis.

Methods

The InstructMol architecture integrates three primary components to bridge the gap between chemical structures and natural language:

  1. The Brain: A pre-trained Vicuna-7B LLM serves as the core reasoning engine.
  2. The Eyes: A MoleculeSTM graph encoder extracts node-level representations from 2D molecular structures.
  3. The Bridge: A lightweight linear projector maps chemical representations into the LLM's textual embedding space.
Overview of the InstructMol architecture and its two-stage training scheme involving alignment pretraining and task-specific instruction tuning.

The model is trained using a two-stage strategy:

  • Stage 1 (Alignment Pretraining): The LLM and graph encoder are frozen while the projector is trained on 330,000 molecule-text pairs from PubChem. This stage establishes the fundamental translation between chemical features and linguistic tokens.
  • Stage 2 (Instruction Tuning): The LLM is fine-tuned using LoRA (Low-Rank Adaptation) on specific chemical tasks. A key innovation is the "GS" (Graph + Sequence) approach, where the model receives both the 2D graph and a SELFIES string, providing a robust dual-representation of the molecule.

Results

InstructMol demonstrates significant performance gains over generalist models across several benchmarks:

  • Property Prediction: On the QM9 regression dataset, InstructMol achieved a Mean Absolute Error (MAE) of 0.0050, compared to 0.7510 for Llama-2. It also showed competitive performance on MoleculeNet classification tasks (BACE, BBBP, HIV).
  • Molecular Descriptions: Using the ChEBI-20 dataset, InstructMol-GS achieved a BLEU-4 score of 0.371, outperforming other specialized models like BioMedGPT.
  • Chemical Reactions: In forward reaction prediction using USPTO data, InstructMol achieved an Exact Match score of 0.536, a task where general LLMs typically fail.

Discussion and Conclusion

InstructMol represents a significant step toward a versatile molecular assistant. The integration of graph and sequence data (GS) proved crucial, as the sequence acts as a supplementary structural anchor. While the model narrows the gap with domain-specific specialists, challenges remain regarding data scarcity for rare molecules and the potential for "hallucinated" chemical structures. Future work will focus on integrating external verification tools and developing more scientifically rigorous evaluation metrics to ensure reliability in real-world drug discovery workflows.

Summary updated

BibTeX
@inproceedings{cao2025instructmol,
  author = {He Cao and Zijing Liu and Xingyu Lu and Yuan Yao and Yu Li},
  title = {{InstructMol: Multi-Modal Integration for Building a Versatile and Reliable Molecular Assistant in Drug Discovery}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=lnfJR79eAe},
}
Figure