使用大型语言模型进行量子多体物理计算
Quantum Many-Body Physics Calculations with Large Language Models
AI总结:
本文设计了多步提示模板,使GPT-4能够执行量子物理中Hartree-Fock方法的解析计算,在15篇论文中13篇正确推导最终哈密顿量,并实现了论文信息提取与计算步骤自动评分,为大规模自动探索理论假设迈出第一步。
摘要:
大型语言模型(LLMs)已在多个领域展现出前所未有的复杂任务执行能力,包括数学与科学推理。我们证明,借助精心设计的提示,LLMs能够准确完成理论物理研究论文中的关键计算。我们聚焦于量子物理中广泛使用的近似方法:Hartree-Fock方法,该方法需要进行解析的多步计算,以推导近似哈密顿量及相应的自洽方程。为了利用LLMs执行这些计算,我们设计了多步提示模板,将解析计算分解为标准化步骤,并为具体问题信息预留占位符。我们评估了GPT-4在完成过去十年15篇研究论文中计算任务的表现,结果表明,在修正中间步骤后,它能够在13个案例中正确推导出最终的Hartree-Fock哈密顿量,在2个案例中出现轻微错误。汇总所有研究论文,我们发现单个计算步骤执行的平均得分为87.5分(满分100分)。总体而言,完成这些计算所需的技能处于量子凝聚态理论的研究生水平。我们进一步使用LLMs缓解该评估过程中的两个主要瓶颈:(i)从论文中提取信息以填充模板,以及(ii)对计算步骤进行自动评分,并在这两方面均展示了良好结果。这一强劲表现是开发能够以前所未有规模自动探索理论假设的算法的第一步。
英文摘要:
Large language models (LLMs) have demonstrated an unprecedented ability to perform complex tasks in multiple domains, including mathematical and scientific reasoning. We demonstrate that with carefully designed prompts, LLMs can accurately carry out key calculations in research papers in theoretical physics. We focus on a broadly used approximation method in quantum physics: the Hartree-Fock method, requiring an analytic multi-step calculation deriving approximate Hamiltonian and corresponding self-consistency equations. To carry out the calculations using LLMs, we design multi-step prompt templates that break down the analytic calculation into standardized steps with placeholders for problem-specific information. We evaluate GPT-4's performance in executing the calculation for 15 research papers from the past decade, demonstrating that, with correction of intermediate steps, it can correctly derive the final Hartree-Fock Hamiltonian in 13 cases and makes minor errors in 2 cases. Aggregating across all research papers, we find an average score of 87.5 (out of 100) on the execution of individual calculation steps. Overall, the requisite skill for doing these calculations is at the graduate level in quantum condensed matter theory. We further use LLMs to mitigate the two primary bottlenecks in this evaluation process: (i) extracting information from papers to fill in templates and (ii) automatic scoring of the calculation steps, demonstrating good results in both cases. The strong performance is the first step for developing algorithms that automatically explore theoretical hypotheses at an unprecedented scale.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。