CheMatAgent: Enhancing LLMs for Chemistry and Materials Science through Tree-Search Based Tool Learning

Mengsong Wu, YaFei Wang, Yidong Ming, Yuqi An, Yuwei Wan +5 more
6/9/2025
cs.LGcs.AIcs.CE

Official code: AI4Chem/ChemistryAgent (30 stars, last commit 2025-06-11).

Abstract

Large language models (LLMs) have recently demonstrated promising capabilities in chemistry tasks while still facing challenges due to outdated pretraining knowledge and the difficulty of incorporating specialized chemical expertise. To address these issues, we propose an LLM-based agent that synergistically integrates 137 external chemical tools created ranging from basic information retrieval to complex reaction predictions, and a dataset curation pipeline to generate the dataset ChemToolBench that facilitates both effective tool selection and precise parameter filling during fine-tuning and evaluation. We introduce a Hierarchical Evolutionary Monte Carlo Tree Search (HE-MCTS) framework, enabling independent optimization of tool planning and execution. By leveraging self-generated data, our approach supports step-level fine-tuning (FT) of the policy model and training task-adaptive PRM and ORM that surpass GPT-4o. Experimental evaluations demonstrate that our approach significantly improves performance in Chemistry QA and discovery tasks, offering a robust solution to integrate specialized tools with LLMs for advanced chemical applications. All datasets and code are available at https://github.com/AI4Chem/ChemistryAgent .

View on arXivView PDF

Code Implementations(1)

303PythonMay 7, 20251 years ago

Similar Papers

Cite this paper

@article{wu2025chematagent,
  title  = {CheMatAgent: Enhancing LLMs for Chemistry and Materials Science through Tree-Search Based Tool Learning},
  author = {Mengsong Wu and YaFei Wang and Yidong Ming and Yuqi An and Yuwei Wan and Wenliang Chen and Binbin Lin and Yuqiang Li and Tong Xie and Dongzhan Zhou},
  year   = {2025},
  eprint = {2506.07551},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.07551v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.07551.svg)](https://codeofpaper.com/paper/2506.07551)

Discussion