TL;DR
This paper systematically investigates when and how Large Language Models (LLMs) can enhance Bayesian Optimization (BO) for scientific discovery tasks like molecular and protein design. They find that LLMs excel in protein design by generating hypotheses but struggle with molecular design due to representation challenges. Agentic LLM workflows with tools prove effective for molecular design, while fine-tuned LLMs offer a cost-effective alternative to statistical methods.
What Problem Does This Paper Address?
Scientific discovery, particularly in fields like drug design and protein engineering, often involves navigating vast search spaces of potential candidates. Classical Bayesian Optimization (BO) is a powerful tool for this, but it can struggle with incorporating complex prior knowledge, providing interpretable explanations for promising candidates, and can be computationally demanding. Large Language Models (LLMs) offer potential solutions with their strong reasoning abilities and access to vast domain knowledge. However, it's unclear when and how LLMs can reliably improve BO campaigns, leading to a need for a systematic comparison of different LLM-based approaches against traditional BO methods.
Methods
The authors compare three main categories of LLM-based approaches against classical statistical BO methods:
- Off-the-shelf reasoning LLMs: These are pre-trained LLMs used directly with in-context learning (prompting). They are evaluated for their ability to act as acquisition functions (for molecular design) or as both predictive models and acquisition functions (for protein design).
- Agentic workflows: These systems use an LLM to orchestrate a more complex, multi-step reasoning process involving external tools (like cheminformatics tools for filtering). This approach aims to overcome limitations of direct LLM reasoning by offloading certain tasks.
- Fine-tuned non-reasoning LLMs: These LLMs are trained on specific datasets to mimic statistical acquisition strategies. This approach explores whether simpler, fine-tuned models can achieve comparable or better performance at a lower computational cost.
The comparison is conducted across two distinct BO tasks: SMILES-based molecular optimization and four-residue protein motif design.
Datasets
The paper utilizes existing datasets for its benchmarks:
- Molecular Optimization: Datasets from Gorantla et al. [2024] containing thousands of medium-sized molecules with measured binding affinities to protein targets (specifically D2R and TYK2).
- Protein Optimization: Datasets from Yang et al. [2025] providing fitness values for nearly all sequences in the full combinatorial search space of two highly epistatic four-residue protein motifs (on GB1 and TrpB).
Key Insights and Ideas
- LLMs are not a one-size-fits-all solution for BO: Their effectiveness is highly dependent on the task and the LLM's architecture and how it's applied.
- SMILES representation is a major hurdle for LLMs: Off-the-shelf LLMs struggle to accurately parse and reason over SMILES strings, leading to poor performance in molecular optimization. This is exacerbated by the need to process large in-context inputs.
- Agentic workflows bridge the gap for molecular design: By leveraging external tools (like SMARTS filtering and similarity searches), agentic LLM workflows can overcome the limitations of direct SMILES comprehension and significantly improve performance in molecular optimization.
- Reasoning LLMs shine in protein design: For tasks with simpler representations (like amino acid sequences) and less constrained search spaces, pure reasoning LLMs can excel by generating domain-knowledge-driven hypotheses, leading to efficient exploration.
- Fine-tuned LLMs offer a compelling alternative: Non-reasoning LLMs fine-tuned via supervised fine-tuning (SFT) can effectively mimic statistical BO strategies, sometimes outperforming reasoning models at a fraction of the computational cost. This suggests a path towards more efficient and scalable LLM-driven BO.
- Tool-mediated reasoning enhances LLM performance: Constraining LLMs to use tools for reasoning, rather than relying solely on their internal knowledge, can lead to more effective and robust performance, especially when domain knowledge can be effectively translated into tool operations.
Key Results
- Molecular Optimization (SMILES-based):
- Off-the-shelf reasoning LLMs failed to outperform statistical baselines, often mimicking greedy algorithms.
- Agentic workflows significantly surpassed both statistical and off-the-shelf LLM models, especially when initialized in a "bad start" scenario.
- Removing SMILES-specific information from the agent's prompt further improved performance, highlighting the benefit of tool-mediated reasoning over direct SMILES comprehension.
- Protein Optimization (four-residue motifs):
- Pure reasoning LLMs (like GPT-5) excelled, generating diverse hypotheses and outperforming statistical methods in some scenarios.
- Agentic workflows underperformed in this task, relying too heavily on tools and failing to leverage the LLM's reasoning capabilities effectively.
- GPT-5 showed strong performance in smaller campaigns but plateaued in larger ones.
- Fine-tuned LLMs:
- Supervised Fine-Tuning (SFT) of non-reasoning LLMs achieved performance competitive with statistical methods and significantly outperformed reasoning LLMs on certain tasks, at a much lower computational cost.
Limitations and Future Work
- LLM Scalability: While GPT-5 performed well in protein design, its performance plateaued in larger campaigns with high batch sizes. This suggests limitations in current LLM scalability for very large-scale optimization problems.
- Tool Integration Complexity: The agentic workflows required significant prompt engineering and fallback mechanisms to achieve reliable and moderately efficient performance, indicating that seamless tool integration is still an area for improvement.
- SMILES Comprehension: The fundamental difficulty LLMs have in accurately parsing and reasoning over SMILES strings remains a significant challenge for molecular design.
- Future Work: The authors propose a path toward hybrid methods that combine LLM-hypothesis generation with statistical rigor. Further research could explore more sophisticated agentic architectures, improved LLM representations for chemical structures, and more efficient fine-tuning strategies. The study also highlights the need for careful adaptation of LLMs to specific BO/AL settings to maximize their benefits.
Summary updated