A Sober Look at LLMs for Material Discovery: Are They Actually Good for Bayesian Optimization Over Molecules?
Agustinus Kristiadi, Felix Strieth-Kalthoff, Marta Skreta, Pascal Poupart, Alán Aspuru-Guzik, Geoff Pleiss
TL;DR
This work critically examines whether large language models truly accelerate Bayesian optimization for molecular discovery. It compares two principled surrogate frameworks: (i) using pretrained LLM embeddings as fixed features for standard Bayesian surrogates, and (ii) fine-tuning LLMs with parameter-efficient methods and performing Bayesian inference via Laplace approximations. Across eight real-world chemistry tasks and multiple LLMs, domain-specific, chemistry-trained models (e.g., T5-Chem, MolFormer) consistently outperform general-purpose LLMs, and finetuning with PEFT generally improves BO performance, yielding reliable uncertainty estimates. The study also demonstrates that a principled, Bayes-based approach with domain-adapted LLMs is cost-effective compared to in-context learning baselines, and it provides an open-source library to facilitate principled BO over discrete molecular spaces.
Abstract
Automation is one of the cornerstones of contemporary material discovery. Bayesian optimization (BO) is an essential part of such workflows, enabling scientists to leverage prior domain knowledge into efficient exploration of a large molecular space. While such prior knowledge can take many forms, there has been significant fanfare around the ancillary scientific knowledge encapsulated in large language models (LLMs). However, existing work thus far has only explored LLMs for heuristic materials searches. Indeed, recent work obtains the uncertainty estimate -- an integral part of BO -- from point-estimated, non-Bayesian LLMs. In this work, we study the question of whether LLMs are actually useful to accelerate principled Bayesian optimization in the molecular space. We take a sober, dispassionate stance in answering this question. This is done by carefully (i) viewing LLMs as fixed feature extractors for standard but principled BO surrogate models and by (ii) leveraging parameter-efficient finetuning methods and Bayesian neural networks to obtain the posterior of the LLM surrogate. Our extensive experiments with real-world chemistry problems show that LLMs can be useful for BO over molecules, but only if they have been pretrained or finetuned with domain-specific data.
