Locally-Deployed Chain-of-Thought (CoT) Reasoning Model in Chemical Engineering: Starting from 30 Experimental Data
Tianhang Zhou, Yingchun Niu, Xingying Lan, Chunming Xu
TL;DR
This work tackles the challenge of predicting molecular solubility and related properties with very limited data in chemical engineering by introducing locally deployed Chain-of-Thought (CoT) reasoning. It combines traditional surrogate models (Gaussian processes) with large-language models (LLMs) in two configurations: LLM-CoT and ML-LLM-CoT (the latter embeds a Gaussian ML model within the CoT loop). Through careful deployment of local models (DeepSeek-R1:14b, Qwen-2:7b) and error-driven prompting, the study shows that ML-LLM-CoT offers superior efficiency and lower high-deviation occurrences compared to LLM-CoT, particularly for dissimilar molecular structures, while maintaining strong performance for similar structures. The results suggest that CoT-based hybrid reasoning can improve rapid property predictions and process optimization in chemical engineering, with potential for privacy-preserving, local deployment and extension to larger models and broader molecular-property tasks.
Abstract
In the field of chemical engineering, traditional data-processing and prediction methods face significant challenges. Machine-learning and large-language models (LLMs) also have their respective limitations. This paper explores the application of the Chain-of-Thought (CoT) reasoning model in chemical engineering, starting from 30 experimental data points. By integrating traditional surrogate models like Gaussian processes and random forests with powerful LLMs such as DeepSeek-R1, a hierarchical architecture is proposed. Two CoT-building methods, Large Language Model-Chain of Thought (LLM-CoT) and Machine Learning-Large Language Model-Chain of Thought (ML-LLM-CoT), are studied. The LLM-CoT combines local models DeepSeek-r1:14b and Qwen2:7b with Ollama. The ML-LLM-CoT integrates a pre-trained Gaussian ML model with the LLM-based CoT framework. Our results show that during construction, ML-LLM-CoT is more efficient. It only has 2 points that require rethink and a total of 4 rethink times, while LLM-CoT has 5 points that need to be re-thought and 34 total rethink times. In predicting the solubility of 20 molecules with dissimilar structures, the number of molecules with a prediction deviation higher than 100\% for the Gaussian model, LLM-CoT, and ML-LLM-CoT is 7, 6, and 4 respectively. These results indicate that ML-LLM-CoT performs better in controlling the number of high-deviation molecules, optimizing the average deviation, and achieving a higher success rate in solubility judgment, providing a more reliable method for chemical engineering and molecular property prediction. This study breaks through the limitations of traditional methods and offers new solutions for rapid property prediction and process optimization in chemical engineering.
