Multimodal Large Language Models for Inverse Molecular Design with Retrosynthetic Planning
Gang Liu, Michael Sun, Wojciech Matusik, Meng Jiang, Jie Chen
TL;DR
We address the challenge of integrating graph-structured molecular data with large language models for inverse molecular design. We propose Llamole, a graph-text multimodal LLM that interleaves text, molecular graphs, and reactions using trigger-query mechanisms and an A* planner; we validate on MolQA and MolPair, showing substantial gains over 14 adapted LLM baselines in controllability and retrosynthetic planning, with retrosynthesis success rising from 5.5% to 35% and property control improvements up to 80.9%. The work demonstrates the value of graph-text multimodality for practical molecular discovery and provides new datasets and a benchmarking framework for future research.
Abstract
While large language models (LLMs) have integrated images, adapting them to graphs remains challenging, limiting their applications in materials and drug design. This difficulty stems from the need for coherent autoregressive generation across texts and graphs. To address this, we introduce Llamole, the first multimodal LLM capable of interleaved text and graph generation, enabling molecular inverse design with retrosynthetic planning. Llamole integrates a base LLM with the Graph Diffusion Transformer and Graph Neural Networks for multi-conditional molecular generation and reaction inference within texts, while the LLM, with enhanced molecular understanding, flexibly controls activation among the different graph modules. Additionally, Llamole integrates A* search with LLM-based cost functions for efficient retrosynthetic planning. We create benchmarking datasets and conduct extensive experiments to evaluate Llamole against in-context learning and supervised fine-tuning. Llamole significantly outperforms 14 adapted LLMs across 12 metrics for controllable molecular design and retrosynthetic planning.
