Journal of Cheminformatics

ChemPrompt: a genetic algorithm-based prompt engineering framework for enhanced QSAR prediction with large language models

Taeung Song, Jeong Tae Lee, Jonghwan Choi

Computational

Key points

From the paper's conclusion
  • In addition, optimized prompts showed no measurable performance loss at 16-bit (Float16) precision, indicating that ChemPrompt is practical in research settings with limited high-performance computing resources.

Abstract

Background Quantitative structure–activity relationship (QSAR) prediction remains a challenging problem in drug discovery, yet it offers a promising avenue to reduce time- and cost-intensive experimental workloads. Recently, studies utilizing large language models (LLMs) to process molecular structure data, such as the simplified molecular-input line-entry system (SMILES), have gained attention; however, such approaches still struggle to improve prediction accuracy owing to the absence of physicochemical property information, which is difficult to infer from structural information alone. Methods To address this issue, we propose ChemPrompt, a framework that employs prompt engineering to integrate physicochemical information into SMILES strings. Furthermore, we present a genetic algorithm to search for the molecular prompt best suited to each prediction task. Results We evaluated the proposed method on four regression benchmark datasets (FreeSolv, ESOL, Lipophilicity, and Caco-2) and one classification benchmark (ClinTox). Compared with using SMILES alone as input, ChemPrompt reduced the root mean square error (RMSE) on the regression tasks and improved F1-scores on the classification task, and it also outperformed prompts that simply appended all available descriptors. Across the five datasets, it achieved the best mean rank among the compared fingerprint- and SMILES-based methods under both five-fold cross-validation and a scaffold split. In addition, optimized prompts showed no measurable performance loss at 16-bit (Float16) precision, indicating that ChemPrompt is practical in research settings with limited high-performance computing resources. Conclusion These results indicate that optimizing the descriptor content of molecular prompts is an effective and computationally practical strategy for molecular property prediction with LLMs, and that it can be applied without fine-tuning in resource-constrained settings.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers