ChemActor: Enhancing Automated Extraction of Chemical Synthesis Actions with LLM-Generated Data

Yu Zhang, Ruijie Yu, Jidong Tian, Feng Zhu, Jiapeng Liu, Xiaokang Yang, Yaohui Jin, Yanyan Xu

Abstract

Automating chemical synthesis requires the precise translation of unstructured experimental procedures into machine-executable action sequences. However, the scarcity of high-quality, human-annotated data and the ambiguity of chemical language present significant barriers to training effective models. This paper introduces ChemActor, a fine-tuned 7B-parameter language model designed to bridge this gap. By utilizing a novel sequential synthetic data framework and a distribution-based data selection strategy, ChemActor achieves state-of-the-art performance. Furthermore, we propose a "multi-round LLM debate" evaluation metric to better capture semantic accuracy in chemical procedures. Our results demonstrate that ChemActor outperforms existing baselines by over 10% on key benchmarks, providing a robust foundation for the development of self-driving laboratories.

1. Introduction

The realization of "self-driving labs" in chemistry hinges on the ability of robotic systems to execute experiments with minimal human intervention. A primary bottleneck in this pipeline is the extraction of structured data from the vast corpus of chemical literature. Most experimental knowledge is locked in natural language prose, such as "The mixture was stirred at room temperature for three hours." Converting such descriptions into structured commands (e.g., STIR; temp: 25C; duration: 180min) is challenging due to linguistic ambiguity, varied writing styles, and a lack of standardized reporting.

Existing tools often rely on rigid, rule-based systems that struggle with the diverse "slang" of experimental chemistry. Moreover, high-quality human-annotated datasets are expensive and scarce. ChemActor addresses these challenges by leveraging Large Language Models (LLMs) to generate high-fidelity synthetic data and employing advanced selection techniques to ensure data diversity and quality.

2. Methodology

2.1 Sequential LLM-Generated Data Framework

To overcome data scarcity, we developed a pipeline to generate synthetic training data. The process begins with a target molecule, followed by the use of retrosynthesis models to identify reactants. GPT-4o is then prompted to "write" a plausible experimental description based on these components. This description is subsequently converted into structured actions and refined to ensure chemical consistency.

2.2 Data Selection via Distribution Divergence

Not all synthetic data contributes equally to model performance. We implemented a selection module that projects data into a low-dimensional space using UMAP. By calculating the Kullback-Leibler (KL) divergence between the synthetic and real-world data distributions, we identify and select synthetic examples that fill "gaps" in the existing distribution. This ensures the model is exposed to rare or complex chemical scenarios that are underrepresented in standard datasets.

2.3 Multi-Round LLM Circle Review

Traditional metrics like BLEU or ROUGE, which rely on exact string matching, are often inadequate for chemistry. For instance, substituting "mix" for "stir" might be chemically valid but is penalized by standard algorithms. We introduced a "circle review" evaluation where four LLMs (GPT-3.5, GPT-4, LLaMA-3, and Mistral) engage in a multi-round debate to assess the quality of the model's output. This method achieves a more nuanced, semantic consensus that aligns more closely with human expert evaluation.

3. Experimental Setup and Datasets

The study utilizes three primary data sources:

  • CHEMTRANS: A high-quality, human-annotated dataset consisting of 3,950 description-action pairs.
  • OPENEXP: A large-scale open-source dataset containing approximately 274,000 pairs derived from patents and the Open Reaction Database.
  • Synthetic Augmentation: An additional 50,000 high-quality data points generated via our framework to augment the training process.

ChemActor is built upon the LLaMA-2-7B architecture and is trained using a joint learning approach on both Reaction-to-Description (R2D) and Description-to-Action (D2A) tasks. This bi-directional training helps the model acquire a deeper chemical intuition.

4. Results and Discussion

4.1 Performance Benchmarks

On the CHEMTRANS dataset, ChemActor achieved a BLEU-4 score of 76.93% and an Exact Match (EM) score of 36.4%, representing a significant improvement over previous top-performing models. In the OPENEXP benchmark, ChemActor outperformed ReactXT—a specialized scientific model—by 34.2% in BLEU-2, demonstrating that a text-based understanding of procedures is more effective than models relying solely on molecular structures (SMILES).

4.2 Impact of Data Diversity

Ablation studies confirmed the importance of the data selection module. Increasing the divergence threshold ($\tau$) consistently improved model performance, validating the hypothesis that scaling data diversity is more critical than simply scaling quantity for specialized scientific tasks.

5. Limitations and Future Work

Despite its success, ChemActor faces limitations in handling low-frequency actions such as "quench" or "reflux," which appear in less than 2% of the training set. Additionally, while the model is highly accurate, the direct application of LLM-generated actions to physical hardware carries inherent safety risks. Future research will focus on integrating "safety guardrails" to detect chemically hazardous instructions and improving the model's ability to infer missing parameters in sparse experimental descriptions.

6. Conclusion

ChemActor demonstrates the potential of LLM-generated data and sophisticated evaluation frameworks to advance the field of automated chemical synthesis. By focusing on data diversity and semantic accuracy, ChemActor provides a scalable path toward the automated extraction of experimental knowledge from the scientific literature.

Summary updated

BibTeX
@inproceedings{zhang2025chemactor,
  author = {Yu Zhang and Ruijie Yu and Jidong Tian and Feng Zhu and Jiapeng Liu and Xiaokang Yang and Yaohui Jin and Yanyan Xu},
  title = {{ChemActor: Enhancing Automated Extraction of Chemical Synthesis Actions with LLM-Generated Data}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure