arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.02688cond-mat.mtrl-scics.SE
收藏

MatClaw: 一种用于端到端材料探索的自主代码优先LLM代理

MatClaw: An Autonomous Code-First LLM Agent for End-to-End Materials Exploration

Rice University(莱斯大学)

Chenmu Zhang, Boris I. Yakobson

AI总结:

提出MatClaw,一种代码优先的LLM代理,通过直接编写和执行Python代码、结合四层记忆架构和检索增强生成,实现多代码工作流在远程HPC集群上的自主运行,并在铁电CuInP2S6的三个端到端演示中验证了其可靠性,同时通过文献自学习和专家约束弥合隐性领域知识差距。

摘要:

现有的用于计算材料科学的LLM代理受到管道绑定架构的限制,这些架构与特定模拟代码相关联,并且依赖于随任务范围增长而手动编写的工具函数。我们提出了MatClaw,一种代码优先的代理,它直接编写和执行Python代码,组合任何已安装的领域库,在远程HPC集群上编排多代码工作流,无需预定义工具函数。为了在跨多天的工作流中维持连贯执行,MatClaw使用四层记忆架构来防止渐进式上下文丢失,并通过领域源代码的检索增强生成将每步API调用准确率提高到约99%。在铁电CuInP2S6上的三个端到端演示(通过主动学习进行机器学习力场训练、居里温度预测和启发式参数空间搜索)表明,该代理能可靠地处理代码生成,但在隐性领域知识方面存在困难。缺失的知识,如适当的模拟时间尺度、平衡协议和采样策略,是研究人员通过经验积累但很少形式化的知识。两种轻量级干预措施——文献自学习和专家指定约束——弥补了这些差距,定义了一种引导式自主模型,其中研究人员提供高层领域知识,而代理处理工作流执行。我们的结果表明,引导式与完全自主的计算材料研究之间的差距比以往任何时候都更小:LLM已经能够可靠地处理代码生成和科学解释,其能力的快速提升将加速材料发现,超越手动工作流所能达到的水平。所有代码和基准测试均为开源。

英文摘要:

Existing LLM agents for computational materials science are constrained by pipeline-bounded architectures tied to specific simulation codes and by dependence on manually written tool functions that grow with task scope. We present MatClaw, a code-first agent that writes and executes Python directly, composing any installed domain library to orchestrate multi-code workflows on remote HPC clusters without predefined tool functions. To sustain coherent execution across multi-day workflows, MatClaw uses a four-layer memory architecture that prevents progressive context loss, and retrieval-augmented generation over domain source code that raises per-step API-call accuracy to ${\sim}$99 %. Three end-to-end demonstrations on ferroelectric CuInP2S6 (machine-learning force field training via active learning, Curie temperature prediction, and heuristic parameter-space search) reveal that the agent handles code generation reliably but struggles with tacit domain knowledge. The missing knowledge, such as appropriate simulation timescales, equilibration protocols, and sampling strategies, is the kind that researchers accumulate through experience but rarely formalize. Two lightweight interventions, literature self-learning and expert-specified constraints, bridge these gaps, defining a guided autonomy model in which the researcher provides high-level domain knowledge while the agent handles workflow execution. Our results demonstrate that the gap between guided and fully autonomous computational materials research is narrower than ever before: LLMs already handle code generation and scientific interpretation reliably, and the rapid improvement in their capabilities will accelerate materials discovery beyond what manual workflows can achieve. All code and benchmarks are open-source.

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

↑