Leveraging Large Language Models for enzymatic reaction prediction and characterization
Lorenzo Di Fruscia, Jana Marie Weber
TL;DR
This work probes whether large language models (LLMs) can serve as biochemical reasoning engines for enzymatic reactions by evaluating EC-number prediction, forward synthesis, and retrosynthesis with Llama-3.1 8B/70B models using in-context learning and parameter-efficient fine-tuning (LoRA). By curating a BRENDA-derived dataset and enforcing leakage-free, group-based splits, the study shows that fine-tuned LLMs capture biochemical knowledge, with multitask training delivering notable gains in forward and retrosynthetic tasks. The 70B model achieves strong EC1 accuracy (~91.7%), and multitask learning enhances forward/retrosynthesis predictions, while still lagging behind specialized SOTA models in some metrics; results are particularly compelling in low-data regimes, where fine-tuning yields substantial gains over zero-shot performance. Overall, the findings underscore the potential of LoRA-enabled LLMs to accelerate biocatalysis design and enzyme-substrate prediction, while highlighting limitations related to EC hierarchy, data diversity, and computational cost that warrant further research.
Abstract
Predicting enzymatic reactions is crucial for applications in biocatalysis, metabolic engineering, and drug discovery, yet it remains a complex and resource-intensive task. Large Language Models (LLMs) have recently demonstrated remarkable success in various scientific domains, e.g., through their ability to generalize knowledge, reason over complex structures, and leverage in-context learning strategies. In this study, we systematically evaluate the capability of LLMs, particularly the Llama-3.1 family (8B and 70B), across three core biochemical tasks: Enzyme Commission number prediction, forward synthesis, and retrosynthesis. We compare single-task and multitask learning strategies, employing parameter-efficient fine-tuning via LoRA adapters. Additionally, we assess performance across different data regimes to explore their adaptability in low-data settings. Our results demonstrate that fine-tuned LLMs capture biochemical knowledge, with multitask learning enhancing forward- and retrosynthesis predictions by leveraging shared enzymatic information. We also identify key limitations, for example challenges in hierarchical EC classification schemes, highlighting areas for further improvement in LLM-driven biochemical modeling.
