ExLLM: Experience-Enhanced LLM Optimization for Molecular Design and Beyond
Nian Ran, Yue Wang, Xiaoyuan Zhang, Zhongzheng Li, Qingsong Ran, Wenhao Li, Richard Allmendinger
TL;DR
ExLLM reframes molecular design as an optimization task guided by an LLM, introducing three lightweight yet powerful mechanisms: a compact evolving experience to distill non-redundant cues, a $k$-offspring exploration strategy to widen search per query, and a unified feedback adapter to harmonize heterogeneous signals. With a fixed evaluation budget, ExLLM achieves state-of-the-art PMO performance and strong cross-domain results, including circle packing and stellarator design, while maintaining efficiency across multiple LLM backbones. The framework transfers with a simple task-template and evaluation functions, and demonstrates robust exploration, scalable memory usage, and practical applicability to diverse scientific design problems. Together, these contributions offer a practical, transfer-ready optimizer for large discrete spaces in chemistry and beyond.
Abstract
Molecular design involves an enormous and irregular search space, where traditional optimizers such as Bayesian optimization, genetic algorithms, and generative models struggle to leverage expert knowledge or handle complex feedback. Recently, LLMs have been used as optimizers, achieving promising results on benchmarks such as PMO. However, existing approaches rely only on prompting or extra training, without mechanisms to handle complex feedback or maintain scalable memory. In particular, the common practice of appending or summarizing experiences at every query leads to redundancy, degraded exploration, and ultimately poor final outcomes under large-scale iterative search. We introduce ExLLM (Experience-Enhanced LLM optimization), an LLM-as-optimizer framework with three components: (1) a compact, evolving experience snippet tailored to large discrete spaces that distills non-redundant cues and improves convergence at low cost; (2) a simple yet effective k-offspring scheme that widens exploration per call and reduces orchestration cost; and (3) a lightweight feedback adapter that normalizes objectives for selection while formatting constraints and expert hints for iteration. ExLLM sets new state-of-the-art results on PMO and generalizes strongly in our setup, it sets records on circle packing and stellarator design, and yields consistent gains across additional domains requiring only a task-description template and evaluation functions to transfer.
