Dynamic large language model representations for multi-objective chemical reaction optimisation

Joshua W. Sin, David Ming Segura, Bojana Ranković, Siu Lun Chau, Ryan P. Burwood, Kurt Püntener, Raphael Bigler, Philippe Schwaller

TL;DR

Researchers have developed MO-LLM, a framework that replaces rigid chemical descriptors with trainable Large Language Model (LLM) embeddings to optimize chemical reactions. By fine-tuning these models "on the fly" during Bayesian optimization, the system learns increasingly better representations of chemicals, reaching optimal reaction conditions up to twice as fast as traditional methods.

What Problem Does This Paper Address?

Optimizing a chemical reaction is a balancing act. Scientists want the highest yield, the best selectivity (getting the right molecule, not its mirror image), and the lowest cost. Traditionally, computer models help navigate this by representing chemicals in two ways:

  1. One-hot encoding: Simple but "dumb"—it treats every chemical as a unique ID with no relationship to others.
  2. Molecular Descriptors: Sophisticated but "high-maintenance"—they use physics-based calculations (like DFT) to describe a molecule's size or electronics. However, these are slow to compute and often don't work across different classes (e.g., a descriptor for a liquid solvent doesn't translate to a solid inorganic base).

This creates a "representation bottleneck." If the model doesn't understand the underlying chemical similarity between components, it takes many more expensive experiments to find the "sweet spot" of reaction conditions.

Methods

The authors introduce MO-LLM, which treats chemical names as text and uses an LLM to translate them into mathematical vectors (embeddings).

  • The Architecture: They use a pre-trained T5-base model. Instead of keeping the model's chemical knowledge static, they use LoRA (Low-Rank Adaptation) to fine-tune it efficiently during the optimization process.
  • Dynamic Learning: As new experimental data (yield, selectivity) comes in, the LLM is updated. This means the "map" of the chemical space evolves and organizes itself based on actual reaction performance.
  • Surrogate Modeling: These dynamic embeddings are fed into Gaussian Process (GP) surrogates, which predict the outcomes of untested experiments.
  • Multi-Objective Bayesian Optimization (MOBO): The system uses the qLogNParEGO acquisition function to decide which batch of experiments to run next to best improve the "Pareto front" (the set of optimal trade-offs between objectives).

Datasets

The framework was benchmarked against three major reaction datasets:

  1. Nickel-catalysed Suzuki coupling: A low-data regime with 384 experiments chosen from a space of 88,000 possible combinations.
  2. Palladium-catalysed Suzuki coupling: Another low-data set with 404 experiments from a space of ~59,000.
  3. Palladium-catalysed sulfonamide coupling: A virtual benchmark of over 21,000 experiments used to simulate High-Throughput Experimentation (HTE), where 96 reactions are run in parallel.

Key Insights and Ideas

  • Text is a Universal Interface: By using names like "XPhos" or "dioxane," the model can project vastly different chemical entities (ligands, bases, solvents) into a single, unified latent space without needing specialized physics calculations for each.
  • Representations Should Not Be Static: The "aha moment" is that a representation that works for one reaction might be poor for another. By training the LLM and the optimizer together, the model learns which chemical features actually drive performance for that specific transformation.
  • Efficiency in the Lab: The model achieves "practical convergence" (90-95% of the best possible result) significantly faster than baselines. In a 96-well plate setting, this could mean finishing a project in one week instead of two.

Key Results

  • Speed to Discovery: In the nickel-catalysed Suzuki coupling, MO-LLM reached the 90% hypervolume threshold in just 13 iterations, roughly half the time required by one-hot encoding (~24) or DFT descriptors (~26).
  • HTE Performance: In the 96-well plate simulation, MO-LLM reached convergence in about 1.2 plate iterations, whereas traditional methods required roughly double the effort (~2.4 iterations).
  • Robustness: MO-LLM showed a higher success rate across different "random seeds," meaning it is less likely to get stuck or fail to find the optimal conditions compared to fixed-feature models.

Limitations and Future Work

  • Computational Cost: While LoRA makes fine-tuning efficient, retraining an LLM at every step of a Bayesian optimization loop is still more computationally intensive than using a simple lookup table.
  • Prompt Sensitivity: The current model uses a simple template for reaction conditions. Future work could explore if providing more detailed textual descriptions (like "viscous liquid" or "air-sensitive") further improves the model's "intuition."
  • Pre-training Bias: The performance depends on the LLM's initial "knowledge." The authors found that T5-base outperformed other models, suggesting that the choice of the base model remains a critical factor.

Summary updated

BibTeX
@inproceedings{sin2026dynamic,
  author = {Joshua W. Sin and David Ming Segura and Bojana Ranković and Siu Lun Chau and Ryan P. Burwood and Kurt Püntener and Raphael Bigler and Philippe Schwaller},
  title = {{Dynamic large language model representations for multi-objective chemical reaction optimisation}},
  booktitle = {AI4Science @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=j0TN7jU14o},
}
Figure