Many-Shot In-Context Learning for Molecular Inverse Design
Saeed Moayedpour, Alejandro Corrochano-Navarro, Faryad Sahneh, Shahriar Noroozizadeh, Alexander Koetter, Jiri Vymetal, Lorenzo Kogler-Anele, Pablo Mas, Yasser Jangjou, Sizhen Li, Michael Bailey, Marc Bianciotto, Hans Matter, Christoph Grebner, Gerhard Hessler, Ziv Bar-Joseph, Sven Jager
TL;DR
This work tackles the scarcity of experimental data in molecular design by introducing a semi-supervised many-shot in-context learning framework that iteratively augments LLM-driven molecule generation with self-generated high-performing candidates and experimental data. It combines a multi-modal, interactive design interface with task-specific evaluators trained on diverse molecular representations to robustly guide design across single and multi-objective criteria. Empirical results demonstrate improved generation quality, greater novelty, and the ability to satisfy multiple property constraints, while highlighting that LLM-based QSAR can learn structure–activity relationships even when not outperforming strong traditional models. The approach offers a scalable, human-in-the-loop pathway for accelerated lead optimization and property-guided molecular design in drug discovery.
Abstract
Large Language Models (LLMs) have demonstrated great performance in few-shot In-Context Learning (ICL) for a variety of generative and discriminative chemical design tasks. The newly expanded context windows of LLMs can further improve ICL capabilities for molecular inverse design and lead optimization. To take full advantage of these capabilities we developed a new semi-supervised learning method that overcomes the lack of experimental data available for many-shot ICL. Our approach involves iterative inclusion of LLM generated molecules with high predicted performance, along with experimental data. We further integrated our method in a multi-modal LLM which allows for the interactive modification of generated molecular structures using text instructions. As we show, the new method greatly improves upon existing ICL methods for molecular design while being accessible and easy to use for scientists.
