arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.06590cs.CLcs.AI
收藏

ChemAgent:大语言模型中的自更新库提升化学推理能力

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

Yale University(耶鲁大学);UIUC(伊利诺伊大学厄巴纳-香槟分校);Stanford University(斯坦福大学);Shanghai Jiao Tong University(上海交通大学)

Xiangru Tang, Tianyu Hu, Muyang Ye, Yanjun Shao, Xunjian Yin, Siru Ouyang, Wangchunshu Zhou, Pan Lu, Zhuosheng Zhang, Yilun Zhao, Arman Cohan, Mark Gerstein

AI总结:

针对大语言模型在化学推理中存在的公式处理、步骤执行等难题,提出带自更新记忆库的ChemAgent框架,通过任务分解与信息检索优化推理,在SciBench数据集上最高提升46%性能,可应用于药物发现等领域。

摘要:

化学推理通常涉及复杂的多步骤过程,需要精确的计算,即使是微小的错误也可能导致级联失败。此外,大语言模型(LLMs)在处理化学推理任务时,难以应对领域特定公式、准确执行推理步骤以及有效整合代码。为解决这些挑战,我们提出ChemAgent——一种通过动态自更新库提升LLMs性能的新型框架。该库通过将化学任务分解为子任务,并将这些子任务编译为结构化集合构建而成,可供未来查询参考。当遇到新问题时,ChemAgent从这个被我们称为记忆的库中检索并优化相关信息,从而促进有效的任务分解和解决方案生成。我们的方法设计了三种记忆类型和一个库增强推理组件,使LLMs能够通过经验随时间不断提升性能。在来自SciBench的四个化学推理数据集上的实验结果表明,ChemAgent实现了最高达46%的性能提升(基于GPT-4),显著优于现有方法。我们的研究结果显示其在未来应用中具有巨大潜力,包括药物发现和材料科学等任务。我们的代码可在https://github.com/gersteinlab/chemagent获取。

英文摘要:

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

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑