Reliable LLM-Generated Programs for High-Energy Physics Experiments through Graph-Grounded Software Knowledge

📅 2026-09-01
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
为解决高能物理实验中软件生成不可靠问题,通过构建软件知识图谱并在推理时检索相关知识,结合执行引导修复,提高程序生成的成功率。
📝 Abstract
Extracting physics information from modern particle-physics experiments requires multistage analyses implemented on top of large and highly interconnected software ecosystems. General-purpose large language models (LLMs) often produce unreliable programs for such tasks because a user request alone rarely specifies the required APIs, dependencies, and usage conventions. We organize these software relations before generation and retrieve task-relevant knowledge at inference time. Using the open-source ROOT framework as a representative and reproducible testbed, we evaluate a complete grounding system that combines hybrid retrieval over a heterogeneous software knowledge graph, skill-selected workflow examples, and execution-guided repair. On a benchmark of 275 ROOT tasks, grounding improves first-attempt execution from 58.5% to 76.0% under Claude Code orchestration and from 51.3% to 64.0% under standalone orchestration. Final success increases from 90.5% to 96.0% and from 78.9% to 90.9%, respectively, while the average generation cost per successful task increases by only 1.3% and 3.2%. The gains persist under a strong coding agent, indicating that explicit software knowledge remains valuable even when agentic scaffolding is already in place. Because the method captures software relations common to large codebases rather than facts specific to ROOT or a particular model, it should transfer to other experiment frameworks and proprietary software, especially where documentation is sparse or internal dependencies are complex.
Problem

Research questions and friction points this paper is trying to address.

large language models
particle-physics experiments
software ecosystems
APIs and dependencies
unreliable programs
Innovation

Methods, ideas, or system contributions that make the work stand out.

Graph-Grounded Software Knowledge
Hybrid Retrieval
Execution-Guided Repair
Software Ecosystems
Y
Yue Sun
Institute of High Energy Physics, Chinese Academy of Sciences, Beijing 100049, China and University of Chinese Academy of Sciences, Beijing 100049, China
Tong Liu
Tong Liu
Institute of Information Engineering, Chinese Academy of Sciences
AI SecuritySoftware Security
Y
Yipu Liao
Institute of High Energy Physics, Chinese Academy of Sciences, Beijing 100049, China and University of Chinese Academy of Sciences, Beijing 100049, China
J
Jingde Chen
Institute of High Energy Physics, Chinese Academy of Sciences, Beijing 100049, China and University of Chinese Academy of Sciences, Beijing 100049, China
Ke Li
Ke Li
Institute of Biomedical Engineering, Shandong University
Motor controlbiomechanicsneurophysiologynonlinear dynamicscardiovascular system evaluation