2025-01-14 · 专家 · 机器学习 · 计算机视觉 · 其他 · 数据科学

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

ChemAgent通过构建一个动态自我更新的库,显著提高了大型语言模型在化学推理任务中的性能。

更新于 2025-01-14。作者:Xiangru Tang、Tianyu Hu、Muyang Ye、Yanjun Shao、Xunjian Yin、Siru Ouyang、Wangchunshu Zhou、Pan Lu、Zhuosheng Zhang、Yilun Zhao、Arman Cohan、Mark Gerstein。

中文摘要

化学推理通常涉及复杂的多步骤过程,需要精确的计算,即使是微小的错误也可能导致连锁失败。此外,大型语言模型(LLMs)在处理特定领域的公式、执行推理步骤的准确性以及有效地整合代码时,都会遇到困难。为了解决这些挑战,我们提出了ChemAgent,这是一个新型框架,旨在通过动态、自更新的库来提高LLMs的性能。这个库通过将化学任务分解为子任务,并将这些子任务编译成一个结构化的集合,以便于未来查询而开发。然后,当面对一个新的问题时,ChemAgent会从所谓的“记忆”库中检索和提炼相关信息,从而促进有效的任务分解和解决方案的生成。我们的方法设计了三种类型的记忆和一个库增强的推理组件,使LLMs能够通过经验不断改进。在SciBench的四个化学推理数据集上的实验结果表明,ChemAgent实现了高达46%(GPT-4)的性能提升,显著优于现有方法。我们的发现表明,ChemAgent在药物发现和材料科学等领域的未来应用具有巨大潜力。我们的代码可以在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

解读

一句话总结

ChemAgent通过构建一个动态自我更新的库,显著提高了大型语言模型在化学推理任务中的性能。

问题1:这篇论文想要解决什么具体问题?

• 问题背景:化学推理任务对精确计算和复杂推理有严格要求,大型语言模型在处理特定领域公式、执行推理步骤和整合代码时存在困难。 • 现有方案不足:现有方法通常依赖于人类编写的知识或固定的工作流程,缺乏从过去类似问题中学习和记忆的能力。 • 研究目标:开发一个名为ChemAgent的框架,通过动态自我更新的库来提高大型语言模型在化学推理任务中的性能。

问题2:论文的核心创新点是什么?

• 技术创新:设计了一个动态自我更新的库,将化学任务分解为子任务,并编译成结构化集合以供未来查询。 • 方法改进:引入了三种类型的记忆(规划记忆、执行记忆和知识记忆)和一个库增强推理组件,使大型语言模型能够通过经验不断改进。 • 优势:与现有方法相比,ChemAgent在性能上显著提升,特别是在处理复杂化学问题时。

问题3:实验结果如何验证了方法的有效性?

• 关键实验:在SciBench的四个化学推理数据集上进行的实验。 • 性能提升:ChemAgent在性能上实现了高达46%的提升(GPT-4),显著优于现有方法。 • 对比结果:与基线方法(如StructChem)相比,ChemAgent的平均性能提升10%,最大提升15%。

问题4:这个研究的实际应用价值是什么?

• 应用场景:药物发现、材料科学等领域。 • 实施建议:利用ChemAgent构建的库和记忆组件,提高大型语言模型在化学推理任务中的性能。 • 局限与展望:目前主要应用于化学领域,未来可扩展到其他科学领域。需要进一步研究记忆机制的优化和更复杂的化学问题解决策略。

来源

机器可读索引:llms.txt