Towards Large-scale Chemical Reaction Image Parsing via a Multimodal Large Language Model
Yufan Chen, Ching Ting Leung, Jianwei Sun, Yong Huang, Linyan Li, Hao Chen, Hanyu Gao
TL;DR
RxnIM introduces a first-of-its-kind multimodal LLM designed to parse chemical reaction images into machine-readable data. Trained in three stages on a large synthetic dataset and refined with real images, it jointly performs reaction component identification and reaction condition interpretation, achieving an average F1 of 88% and outperforming existing methods by about 5%. The system is deployed via a Gradio web app (RxnIM.web) and released with open-source data and code to facilitate automated construction of large, machine-readable reaction databases. This work enables scalable, AI-ready curation of chemistry literature data and broadens the use of multimodal models in image-based cheminformatics.
Abstract
Artificial intelligence (AI) has demonstrated significant promise in advancing organic chemistry research; however, its effectiveness depends on the availability of high-quality chemical reaction data. Currently, most published chemical reactions are not available in machine-readable form, limiting the broader application of AI in this field. The extraction of published chemical reactions into structured databases still relies heavily on manual curation, and robust automatic parsing of chemical reaction images into machine-readable data remains a significant challenge. To address this, we introduce the Reaction Image Multimodal large language model (RxnIM), the first multimodal large language model specifically designed to parse chemical reaction images into machine-readable reaction data. RxnIM not only extracts key chemical components from reaction images but also interprets the textual content that describes reaction conditions. Together with specially designed large-scale dataset generation method to support model training, our approach achieves excellent performance, with an average F1 score of 88% on various benchmarks, surpassing literature methods by 5%. This represents a crucial step toward the automatic construction of large databases of machine-readable reaction data parsed from images in the chemistry literature, providing essential data resources for AI research in chemistry. The source code, model checkpoints, and datasets developed in this work are released under permissive licenses. An instance of the RxnIM web application can be accessed at https://huggingface.co/spaces/CYF200127/RxnIM.
