Reliable LLM-Generated Programs for High-Energy Physics Experiments through Graph-Grounded Software Knowledge
Yue SunTong LiuYipu LiaoJingde ChenKe Li
Yue Sun
Tong Liu
Yipu Liao
Jingde Chen
Ke Li
+5
This paper improves LLM-generated programs for high-energy physics analyses by grounding generation in structured software knowledge, implemented as a heterogeneous knowledge graph augmented with hybrid retrieval, skill-selected workflow examples, and execution-guided repair. On 275 ROOT-framework tasks, grounding raises first-attempt execution from 58.5% to 76.0% (Claude Code) and final success from 90.5% to 96.0%, with minimal cost increase, and the gains persist under a strong coding agent, suggesting general applicability to complex software ecosystems.

arXiv ·
· September 1, 2026