Skip to main content
QUICK REVIEW

[Paper Review] ChemVLM: Exploring the Power of Multimodal Large Language Models in Chemistry Area

Junxian Li, Di Zhang|arXiv (Cornell University)|Aug 14, 2024
Topic ModelingComputer Science3 citations
TL;DR

ChemVLM is an open-source multimodal large language model designed for chemistry, combining a Vision Transformer with a domain-specific LLM to process molecular images and text. It achieves state-of-the-art performance on chemical OCR, multimodal reasoning, and molecule understanding tasks, outperforming even GPT-4V on key benchmarks.

ABSTRACT

Large Language Models (LLMs) have achieved remarkable success and have been applied across various scientific fields, including chemistry. However, many chemical tasks require the processing of visual information, which cannot be successfully handled by existing chemical LLMs. This brings a growing need for models capable of integrating multimodal information in the chemical domain. In this paper, we introduce extbf{ChemVLM}, an open-source chemical multimodal large language model specifically designed for chemical applications. ChemVLM is trained on a carefully curated bilingual multimodal dataset that enhances its ability to understand both textual and visual chemical information, including molecular structures, reactions, and chemistry examination questions. We develop three datasets for comprehensive evaluation, tailored to Chemical Optical Character Recognition (OCR), Multimodal Chemical Reasoning (MMCR), and Multimodal Molecule Understanding tasks. We benchmark ChemVLM against a range of open-source and proprietary multimodal large language models on various tasks. Experimental results demonstrate that ChemVLM achieves competitive performance across all evaluated tasks. Our model can be found at https://huggingface.co/AI4Chem/ChemVLM-26B.

Motivation & Objective

  • Address the limitation of purely text-based LLMs in processing visual chemical data such as molecular structures and reaction diagrams.
  • Overcome the gap in multimodal chemical reasoning (MMCR) by developing a model that integrates visual and textual information with domain-specific knowledge.
  • Create a comprehensive evaluation suite to rigorously benchmark multimodal models in chemistry, focusing on OCR, reasoning, and molecule understanding.
  • Develop a two-stage fine-tuning strategy to enhance modality alignment and downstream task performance while preserving domain-specific knowledge.
  • Provide an open-source, accessible model that outperforms existing open-source and proprietary models on chemical multimodal tasks.

Proposed method

  • Architect a ViT-MLP-LLM framework: uses a Vision Transformer (ViT) for image encoding, a Multi-Layer Perceptron (MLP) for image-text projection, and a domain-specific LLM (ChemLLM) for text generation.
  • Train on a curated bilingual multimodal dataset combining molecular images, SMILES, IUPAC names, and chemistry exam questions to enhance cross-modal understanding.
  • Implement a two-stage supervised fine-tuning: first freeze the LLM to align vision and text via the MLP, then fine-tune all parameters for downstream tasks.
  • Apply LoRA (Low-Rank Adaptation) for efficient fine-tuning: use LoRA rank 16 for the LLM and 32 for the ViT in stage 2, with AdamW optimizer and cosine learning rate decay.
  • Use 448×448 input resolution and mixed-precision training (bfloat16) with DeepSpeed for efficient training on 16 A100 GPUs.
  • Generate diverse training data via GPT-4 prompting to create varied linguistic templates for OCR, captioning, property prediction, and exam-style questions.

Experimental results

Research questions

  • RQ1Can a multimodal LLM trained on chemistry-specific visual and textual data outperform generalist MLLMs in chemical reasoning and perception tasks?
  • RQ2To what extent can a two-stage fine-tuning strategy improve modality alignment and downstream performance in chemical multimodal tasks?
  • RQ3How does ChemVLM compare to state-of-the-art models like GPT-4V in multimodal chemical reasoning and OCR accuracy?
  • RQ4Can a specialized vision-language model reduce hallucinations and improve accuracy in interpreting complex chemical images and diagrams?
  • RQ5Does integrating domain-specific pretraining (via ChemLLM) significantly enhance performance on molecule captioning and property prediction compared to generic LLMs?

Key findings

  • ChemVLM achieves state-of-the-art performance on the ChemOCR benchmark, demonstrating superior accuracy in converting molecular images to SMILES format.
  • On the MMCR-Bench, ChemVLM outperforms both open-source and proprietary models, including GPT-4V, on complex chemistry exam-style reasoning tasks.
  • In molecule captioning and property prediction (MMChemBench), ChemVLM achieves high BLEU and ROUGE scores, indicating strong multimodal understanding and generation capabilities.
  • The two-stage fine-tuning strategy significantly improves performance, with the second stage (full fine-tuning) yielding substantial gains over modality alignment alone.
  • ChemVLM surpasses GPT-4V on multiple benchmarks, indicating that domain-specific design and training yield better results than generic multimodal models in chemistry.
  • The model demonstrates robust zero-shot generalization on unseen chemical image types, suggesting strong generalization and alignment between visual and textual representations.

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.