arXiv:2609.11790cs.LGSep 2026

Manuscript Offprint

arXiv:2609.11790

Dynamic language model representations for multi-objective reaction optimisation

Joshua W. Sin, David Ming Segura, Bojana Ranković, Siu Lun Chau, Marius D. R. Lutz, Andrea Anelli, Ryan P. Burwood, Kurt Püntener, Maximilian J. Notheis, Raphael Bigler, Philippe Schwaller

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Optimising chemical reactions across multiple objectives, such as yield, selectivity, and safety, is central to chemical synthesis, and model-driven approaches depend critically on how reaction components are represented. Established featurisations are either chemically uninformative, as with one-hot encodings, or, as with molecular descriptors, do not readily extend across chemically distinct components. For structurally and functionally diverse components, it is therefore unclear what a shared representation should contain. Constructing such a representation is itself a challenging research undertaking that must be revisited for each new reaction system. Here we bypass this step by learning the reaction representation dynamically from text. Textual descriptions of reaction conditions are encoded by a fine-tuned language model trained jointly with Gaussian process surrogates, yielding task-adaptive representations within a multi-objective Bayesian optimisation loop. Across nickel- and palladium-catalysed cross-couplings in both sequential and parallel experimentation regimes, this approach reaches optimisation convergence in fewer experiments than descriptor libraries or one-hot encoding. Applied

prospectively to a palladium-catalysed cyanation spanning mixed ligand denticity and heterogeneous additives, and to a three-objective asymmetric hydrogenation across chiral iridium and ruthenium catalyst families, two rounds of high-throughput experimentation (192 reactions, under 3% of each design space) delivered conditions translating directly to gram scale in 94% and 84% isolated yield, the latter at 99.6% enantiomeric excess.

1. Introduction

Chemical reaction optimisation is essential to chemical synthesis, and optimising reaction conditions requires navigating vast combinatorial spaces of reaction components such as ligands, catalysts, and bases, while balancing multiple objectives such as yield, selectivity, and cost [1–5]. This challenge is particularly acute in pharmaceutical process and preclinical chemistry, where identifying robust conditions for active pharmaceutical ingredient (API) synthesis entails additional environmental, health, and safety considerations [6–9], and in academic settings where enabling novel transformations often requires extensive exploration of many diverse reaction parameters [10, 11].

Machine learning approaches have proved remarkably effective, with Bayesian optimisation emerging as the leading framework for data-efficient reaction optimisation. It has been applied in low-data regimes [12–19] and, more recently, in parallel high-throughput settings [20, 21]. Despite these algorithmic advances, how best to represent reactions for model-driven optimisation remains an open and consequential challenge.

Molecular descriptors have been the dominant featurisation strategy in reaction optimisation and prediction (Figure 1a). Pre-computed descriptor libraries such as Kraken [25] and the COSMO-RS [26] database provide readily available steric and electronic properties for established compound classes and have been widely adopted [15, 16, 20, 21, 27–30]. Alternatively, tailored and often laborious feature en-

∗^{*}Equal contribution 1^{1}Process Chemistry & Catalysis, Synthetic Molecules Technical Development, F. Hoffmann-La Roche AG, Basel, Switzerland 2^{2}Laboratory of Artificial Chemical Intelligence (LIAC), EPFL, Lausanne, Switzerland 3^{3}National Centre of Competence in Research (NCCR) Catalysis, EPFL, Lausanne, Switzerland 4^{4}Epistemic Intelligence & Computation Lab, College of Computing & Data Science, Nanyang Technological University, Singapore 5^{5}Roche Pharma Research and Early Development (pRED), F. Hoffmann-La Roche AG, Basel, Switzerland 6^{6}Solid State Sciences, Synthetic Molecules Technical Development, F. Hoffmann-La Roche AG, Basel, Switzerland. Correspondence to: Joshua W. Sin wing-pong.sin@roche.com, David Ming Segura david.segura@epfl.ch, Bojana Ranković bojana.rankovic@epfl.ch, Philippe Schwaller philippe.schwaller@epfl.ch.

Preliminary work. Under review.

a Approaches for featuring chemical entities in model-driven reaction optimisation

Figure

Static representations which do not adapt to the optimisation task as more data is collected

b This approach: trainable large language model embeddings for reaction optimisation

Figure

Figure 1. Featurisation approaches for model-driven reaction optimisation. a, Conventional approaches for representing chemical entities. Left: molecular descriptors (e.g., Sterimol parameters, buried volume, and bite angle) incorporate physicochemical properties derived from density functional theory (DFT) [22] or extended tight-binding (xTB) [23], enabling chemical similarity-aware representations. However, descriptor sets are inflexible across entity classes, require domain-specific expertise for feature engineering, and can be computationally expensive to generate. Right: one-hot encoding assigns a binary indicator vector to each categorical component (e.g., different ligands, bases, and precursors), yielding sparse, high-dimensional representations that encode no chemical similarity. b, This approach: trainable large language model (LLM) embeddings for reaction optimisation. Textual descriptions of reaction conditions are encoded by a LoRA-fine-tuned [24] language model into dense, continuous embeddings. These embeddings are passed through objective-specific projection heads into independent Gaussian process (GP) surrogate models, and the entire architecture (LLM-GP) is trained jointly. The architecture is embedded within a multi-objective Bayesian optimisation cycle, with the reaction representations improving at each iteration, organising representations by reaction performance. This yields a unified, task-adaptive representation without requiring descriptor computation or domain-specific feature engineering.

gineering workflows, involving computationally expensive density functional theory (DFT) or semi-empirical calculations, conformer ensemble analysis, and reaction-specific mechanistic interrogation, can yield informative descriptors [22, 23, 31–37].

Despite their widespread use, descriptor-based approaches face fundamental limitations. Selecting which descriptors to compute relies on a priori chemical intuition about which molecular properties govern reactivity, a process that is biased by existing mechanistic understanding and must often be revisited for each new reaction system. More critically, descriptors are often not transferable across chemically distinct reaction components. Steric and electronic parameters for monodentate phosphines, for example, are only partially applicable to bidentate ligands, and reactions involving chemically heterogeneous components such as inorganic bases and organometallic additives may lack any meaningful shared descriptor space, making feature engineering increasingly prohibitive as chemical diversity grows. One-hot encoding offers a simpler alternative that is universally applicable and has shown competitive performance in some settings [12, 13, 38]. However, it produces sparse, high-dimensional representations that encode no chemical similarity, and its dimensionality scales unfavourably with the number of reaction components [20, 38] (Figure 1a).

Advances in large language models (LLMs) have shown strong performance across chemical tasks [39–47] and demonstrated that their learned embeddings can serve as dense, informative representations for predictive modelling [48–51]. Recent work has further shown that LLM representations can be adapted to specific optimisation tasks through joint fine-tuning with Gaussian process surrogates, demonstrated for single-objective, sequential optimisation [52]. Crucially, LLMs can encode arbitrarily complex chemical information into fixed-length representations directly from text, offering a naturally unified featurisation method across component classes. These important advances notwithstanding, a general framework for multi-objective reaction optimisation, applicable across chemically heterogeneous reaction components and validated across experimental regimes from low-data to high-throughput settings, has yet to be realised.

Here, we introduce Alice, a multi-objective chemical reaction optimisation framework that uses trainable LLM embeddings as a unified reaction representation (Figure 1b). Textual descriptions of reaction conditions are encoded by a low-rank adaptation (LoRA)-fine-tuned language model and passed through reaction objective-specific projection heads into independent Gaussian process surrogates, with the architecture trained end-to-end via joint marginal log-likelihood maximisation. This jointly trained architecture, hereafter referred to as the LLM-GP framework, produces dynamic embeddings that are refined at each optimisation iteration, adapting the reaction representation to the optimisation task at hand. We first benchmark the LLM-GP framework retrospectively against established descriptor libraries and one-hot encoding baselines across sequential low-data optimisation of nickel- and palladium-catalysed cross-couplings and large-batch 96-well plate high-throughput experimentation campaigns, converging on high-performing conditions in fewer experiments across all settings.

We then apply the framework prospectively to two wet-lab campaigns executed on an automated high-throughput platform, each chosen for a form of chemical heterogeneity for which descriptor libraries are not readily available. In a palladium-catalysed cyanation, a single representation spans mono- and bidentate phosphine catalysts alongside additives ranging from elemental zinc to organic and inorganic bases; within this space the framework identified conditions using a lower-hazard cyanide source that gave >99% conversion and >99% selectivity, and 94% isolated yield on gram scale. In an asymmetric dynamic kinetic hydrogenation, the framework balanced conversion, diastereomeric excess (de), and enantiomeric excess (ee) across chiral catalysts spanning different metals, donor sets, and coordination geometries, delivering the target syn alcohol in 84% isolated yield and 99.6% ee on scale-up. Both campaigns used only two rounds of 96 experiments, sampling under 3% of their respective design spaces. Neither required descriptor computation or feature engineering, indicating that effective multi-objective optimisation is achievable in reaction spaces where constructing a shared descriptor representation would itself be a substantial undertaking.