arXiv:2606.13535hep-excs.AI2026-06被引 6

用大模型自动补全粒子物理分析的代码,提升理论与实验的匹配效率

AgentRivet: an automated system for producing Rivet routines from journal publications

  • 基于大模型构建多阶段自动化流程,从论文提取信息并生成可运行的Rivet代码
  • 在ATLAS和CMS的两个最新测量中,生成代码语法错误少,物理逻辑基本正确
  • 适合需要快速复现粒子物理测量的研究者,尤其适用于缺乏公开代码的论文

粒子物理对撞机实验通过Rivet代码库实现分析结果的保存,用于模型无关的测量。Rivet是C++工具包,允许新理论模型与实验测量对比,有助于蒙特卡洛事件生成器的开发与标准模型之外的新物理搜索。然而,分析覆盖率不足,仅有39%的测量拥有已记录且公开的Rivet代码。本文设计并实现了基于大语言模型的自动化工作流AgentRivet,旨在生成缺失的Rivet代码。该流程从已发表论文中提取物理分析信息,并自动生成代码,中间包含代码与物理层面的自主审查。我们使用OpenAI、Anthropic和Google提供的商业大模型,在ATLAS和CMS的两项近期测量上进行了测试。结果显示,AgentRivet生成的代码语法错误极少,物理保真度合理,符合原文说明。但仍存在部分物理实现问题,主要源于论文中细微但模糊的定义,少数模型即使在定义清晰时也难以实现复杂可观测量。

原文摘要 · Abstract (English)

Particle physics collider experiments provide Rivet routines as part of the analysis preservation strategy for model-independent measurements. Rivet is a C++ toolkit that allow new theoretical models to be compared to the measurements, thus aiding the development and tuning of Monte Carlo event generators as well as searches for physics beyond the Standard Model. However, analysis coverage is known to be incomplete, with only 39% of measurements having documented and publicly available Rivet routines. In this article, we design and implement an automated workflow based on Large Language Models with the goal of providing the missing routines. This multi-step workflow, referred to as AgentRivet, extracts the physics analysis information from published papers and writes the missing Rivet routines, with intermediate code- and physics- reviews as part of an autonomous quality control. We report the results obtained using commercial Large Language Models, provided by OpenAI, Anthropic, and Google, for two recent measurements from the ATLAS and CMS experiments. We find that AgentRivet produces competent Rivet routines with few syntax errors. The physics fidelity of the routines is reasonable and follows the explanations given in the relevant publications. Nevertheless, physics-implementation issues do arise and are investigated using the artefacts produced by AgentRivet. The majority of physics implementation issues arise from subtle-but-ambiguous definitions in the given publication, although some models struggle to implement complex observables even when clear definitions are given.

粒子物理大模型代码生成Rivet

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。