ChemAgent: Self-updating Library in Large Language Models Improves Chemical Reasoning

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Tang, Xiangru, Hu, Tianyu, Ye, Muyang, Shao, Yanjun, Yin, Xunjian, Ouyang, Siru, Zhou, Wangchunshu, Lu, Pan, Zhang, Zhuosheng, Zhao, Yilun, Cohan, Arman, Gerstein, Mark
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866916562820136960
author Tang, Xiangru
Hu, Tianyu
Ye, Muyang
Shao, Yanjun
Yin, Xunjian
Ouyang, Siru
Zhou, Wangchunshu
Lu, Pan
Zhang, Zhuosheng
Zhao, Yilun
Cohan, Arman
Gerstein, Mark
author_facet Tang, Xiangru
Hu, Tianyu
Ye, Muyang
Shao, Yanjun
Yin, Xunjian
Ouyang, Siru
Zhou, Wangchunshu
Lu, Pan
Zhang, Zhuosheng
Zhao, Yilun
Cohan, Arman
Gerstein, Mark
contents Chemical reasoning usually involves complex, multi-step processes that demand precise calculations, where even minor errors can lead to cascading failures. Furthermore, large language models (LLMs) encounter difficulties handling domain-specific formulas, executing reasoning steps accurately, and integrating code effectively when tackling chemical reasoning tasks. To address these challenges, we present ChemAgent, a novel framework designed to improve the performance of LLMs through a dynamic, self-updating library. This library is developed by decomposing chemical tasks into sub-tasks and compiling these sub-tasks into a structured collection that can be referenced for future queries. Then, when presented with a new problem, ChemAgent retrieves and refines pertinent information from the library, which we call memory, facilitating effective task decomposition and the generation of solutions. Our method designs three types of memory and a library-enhanced reasoning component, enabling LLMs to improve over time through experience. Experimental results on four chemical reasoning datasets from SciBench demonstrate that ChemAgent achieves performance gains of up to 46% (GPT-4), significantly outperforming existing methods. Our findings suggest substantial potential for future applications, including tasks such as drug discovery and materials science. Our code can be found at https://github.com/gersteinlab/chemagent
format Preprint
id arxiv_https___arxiv_org_abs_2501_06590
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle ChemAgent: Self-updating Library in Large Language Models Improves Chemical Reasoning
Tang, Xiangru
Hu, Tianyu
Ye, Muyang
Shao, Yanjun
Yin, Xunjian
Ouyang, Siru
Zhou, Wangchunshu
Lu, Pan
Zhang, Zhuosheng
Zhao, Yilun
Cohan, Arman
Gerstein, Mark
Computation and Language
Artificial Intelligence
Chemical reasoning usually involves complex, multi-step processes that demand precise calculations, where even minor errors can lead to cascading failures. Furthermore, large language models (LLMs) encounter difficulties handling domain-specific formulas, executing reasoning steps accurately, and integrating code effectively when tackling chemical reasoning tasks. To address these challenges, we present ChemAgent, a novel framework designed to improve the performance of LLMs through a dynamic, self-updating library. This library is developed by decomposing chemical tasks into sub-tasks and compiling these sub-tasks into a structured collection that can be referenced for future queries. Then, when presented with a new problem, ChemAgent retrieves and refines pertinent information from the library, which we call memory, facilitating effective task decomposition and the generation of solutions. Our method designs three types of memory and a library-enhanced reasoning component, enabling LLMs to improve over time through experience. Experimental results on four chemical reasoning datasets from SciBench demonstrate that ChemAgent achieves performance gains of up to 46% (GPT-4), significantly outperforming existing methods. Our findings suggest substantial potential for future applications, including tasks such as drug discovery and materials science. Our code can be found at https://github.com/gersteinlab/chemagent
title ChemAgent: Self-updating Library in Large Language Models Improves Chemical Reasoning
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2501.06590