Instruction Multi-Constraint Molecular Generation Using a Teacher-Student Large Language Model

Peng Zhou, Jianmin Wang, Chunyan Li, Zixu Wang, Yiping Liu +9 more
3/20/2024
10 citations
cs.CLcs.AI
distillation

Official code: HHW-zhou/TSMMG (14 stars, Jupyter Notebook, Apache-2.0, last commit 2025-07-08).

Abstract

While various models and computational tools have been proposed for structure and property analysis of molecules, generating molecules that conform to all desired structures and properties remains a challenge. Here, we introduce a multi-constraint molecular generation large language model, TSMMG, which, akin to a student, incorporates knowledge from various small models and tools, namely, the 'teachers'.

Show full abstract

To train TSMMG, we construct a large set of text-molecule pairs by extracting molecular knowledge from these 'teachers', enabling it to generate novel molecules that conform to the descriptions through various text prompts. We experimentally show that TSMMG remarkably performs in generating molecules meeting complex, natural language-described property requirements across two-, three-, and four-constraint tasks, with an average molecular validity of over 99% and success ratio of 82.58%, 68.03%, and 67.48%, respectively. The model also exhibits adaptability through zero-shot testing, creating molecules that satisfy combinations of properties that have not been encountered. It can comprehend text inputs with various language styles, extending beyond the confines of outlined prompts, as confirmed through empirical validation. Additionally, the knowledge distillation feature of TSMMG contributes to the continuous enhancement of small models, while the innovative approach to dataset construction effectively addresses the issues of data scarcity and quality, which positions TSMMG as a promising tool in the domains of drug discovery and materials science.

View on arXivView PDF

Code Implementations(1)

HHW-zhou/TSMMGOfficial100%
Apache-2.0

Code of "Instruction Multi-Constraint Molecular Generation Using a Teacher-Student Large Language Model"

142Jupyter Notebook, PythonMar 8, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{zhou2024instruction,
  title  = {Instruction Multi-Constraint Molecular Generation Using a Teacher-Student Large Language Model},
  author = {Peng Zhou and Jianmin Wang and Chunyan Li and Zixu Wang and Yiping Liu and Siqi Sun and Jianxin Lin and Leyi Wei and Xibao Cai and Houtim Lai and Wei Liu and Longyue Wang and Yuansheng Liu and Xiangxiang Zeng},
  year   = {2024},
  eprint = {2403.13244},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.13244v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.13244.svg)](https://codeofpaper.com/paper/2403.13244)

Discussion