Abstract
The field of natural language processing (NLP) has witnessed a transformative shift with the emergence of large language models (LLMs), revolutionizing various language tasks and applications. The integration of LLMs into specialized domains enhances their capabilities for domain-specific applications. Notably, NLP has made significant strides in organic chemistry, particularly in predicting synthetic tasks, paving the way for the development of LLMs tailored to the organic chemistry field. In this work, we introduce SynAsk, a comprehensive organic chemistry domain-specific LLM platform developed by AIChemEco Inc. By finetuning an LLM with domain-specific data and integrating it with a chain of thought approach, SynAsk seamlessly accesses our knowledge base and advanced chemistry tools in a question-and-answer format. This includes functionalities such as a basic chemistry knowledge base, molecular information retrieval, reaction performance prediction, retrosynthesis prediction, chemical literature acquisition, and more. This novel methodology synergizes fine-tuning techniques with external resource integration, resulting in an organic chemistry-specific model poised to facilitate research and discovery in the field.
Introduction
While general-purpose LLMs like ChatGPT have demonstrated remarkable versatility, they often face an "expertise gap" when applied to the rigorous demands of organic chemistry. These models frequently struggle with high-dimensional chemical structures (represented as SMILES strings) and may "hallucinate" when tasked with precise synthetic planning. SynAsk addresses these limitations by combining a fine-tuned foundation model with a suite of 22 specialized computational tools, creating a platform that understands when to transition from linguistic reasoning to precise chemical calculation.
Methods and Architecture
The researchers developed SynAsk using a three-pronged strategy designed to maximize domain expertise and reasoning depth:
- Foundation Selection: The Qwen-1.5-14B model was selected as the base. Testing revealed that models with fewer than 14 billion parameters lacked the necessary reasoning capacity to manage complex tool invocations effectively.
- Two-Stage Fine-Tuning:
- Supervised Fine-Tuning (SFT): Focused on establishing the model’s identity as a chemistry expert using domain-specific datasets.
- Instruction-Based Fine-Tuning: This stage utilized "Chain of Thought" (CoT) reasoning to teach the model how to differentiate between chemical identifiers (such as CAS numbers vs. SMILES strings) and how to correctly call external APIs.
- Tool Integration: Using the LangChain framework, the LLM was connected to 12 internal and 10 external tools. This allows for seamless molecular information retrieval, retrosynthesis, and literature searches within a single chat interface.
The "Agent" Workflow
SynAsk operates as an intelligent agent rather than a simple text predictor. As shown in the workflow, the system follows a structured path: Query → Task Segmentation → Knowledge Base Retrieval → Tool Invocation → Final Synthesis. This prevents the model from guessing when a precise tool—such as a yield predictor or retrosynthesis engine—is available. This structural literacy allows SynAsk to recognize complex scaffolds that general models often misidentify.
Key Results
SynAsk significantly outperforms general-purpose models and existing specialized tools across several benchmarks:
- Chemistry Expertise: On the C-Eval College Chemistry benchmark, SynAsk achieved a score of 70.83%, vastly outperforming its base model, Qwen-14B, which scored 50%.
- Retrosynthesis Mastery: The model successfully planned synthetic routes for 55% of a drug dataset from ChEMBL. In comparison, the current State-of-the-Art (SOTA) tool, AIZynthFinder, achieved only 27%.
- Yield Prediction: SynAsk’s in-house SNAr (nucleophilic aromatic substitution) tool achieved a Mean Absolute Error (MAE) of 14.1% on external literature data from 2022–2024, demonstrating strong generalization to novel substrates.
Conclusion and Future Outlook
SynAsk represents a significant advancement in leveraging NLP for synthetic applications. While its proposed synthetic routes still require validation by experienced chemists, the platform serves as a powerful bridge between AI and the laboratory. The authors envision SynAsk eventually serving as the "brain" for autonomous reaction laboratories, where the model could generate programming scripts to drive robotic chemists, closing the loop between digital prediction and physical discovery.
Summary updated