Search arXivSearch

arXiv · 2605.01423

HepScript: A Dual-Use DSL for Human-AI Collaborative Data Analysis Workflows in High-Energy Physics

Abstract

The escalating data scale in High-Energy Physics (HEP) fuels a growing aspiration for higher analytical efficiency. While Large Language Models (LLMs) offer a path toward automation via agentic AI, they struggle with complex scientific workflows that require deep domain knowledge and are tightly coupled to experiment-specific codebases. To address this, we introduce a methodology centered on HepScript, a dual-use Domain-Specific Language (DSL) for HEP data analysis workflows. HepScript serves as a shared formal interface, abstracting HEP analysis logic into a constrained syntax that is both intuitive for human experts and reliably generable by AI agents. First developed for the Beijing Spectrometer III (BESIII) experiment, HepScript hides the complexity of the underlying software stack, translating high-level analysis intent into low-level, production-ready code. In our case studies, this abstraction reduces the required human-written code by 93\%. Crucially, HepScript's constrained grammar defines a tractable action space, enabling AI agents to autonomously generate executable specifications for core analysis stages directly from published literature with a 95\% success rate. Our work demonstrates a scalable pathway toward human-AI collaborative systems, where a formally specified DSL acts as an unambiguous translation layer between human expertise, AI automation, and production environment, rendering previously intractable automation problems solvable.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Junkun Jiao, Tong Liu, Ke Li, Weimin Song, Yipu Liao, Bolun Zhang, Beijiang Liu, Chang-Zheng Yuan, Yue Sun. 2026-05-02. HepScript: A Dual-Use DSL for Human-AI Collaborative Data Analysis Workflows in High-Energy Physics. https://arxiv.org/abs/2605.01423

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Charge-dependent atmospheric muon flux at 17 GV geomagnetic cutoff with the mini-ICAL detector

The Iron CALorimeter (ICAL) detector at the India-Based Neutrino Observatory (INO) was conceived as an underground experiment designed to measure atmospheric neutrino oscillation parameters. As part of the R\&D programme, a scaled prototype (mini-ICAL), 85\,ton, approximately 1/600$^{\mathrm{th}}$ the mass of the full detector, was constructed at the IICHEP Transit Campus, Madurai (altitude 150\,m; latitude 9.9372$^\circ$\,N; longitude 78.013$^\circ$\,E; geomagnetic latitude 1.44$^\circ$\,N; vertical cutoff rigidity 17\,GV) and operated between 2018 and 2022. The prototype enabled measurements of charge-dependent cosmic muon spectra in the vicinity of the geomagnetic equator and provided an important validation of detector performance, reconstruction algorithms, and simulation frameworks for the ICAL experiment. Differential fluxes of $μ^{-}$ and $μ^{+}$ were measured over the momentum range $\sim$\,1--5\,GeV/c. The obtained momentum spectra are systematically lower than those reported at sites with smaller geomagnetic cutoff rigidities, consistent with the suppression of low- and intermediate-rigidity primary cosmic rays at the 17\,GV cutoff. The measurements are compared with predictions from different hadronic interaction models available in CORSIKA simulations.

hep-ex

Laboratory constraints on peV-scale mass splitting between ordinary and sterile neutron states

Sterile states of matter, represented by a parallel ``mirror'' sector, may contribute to the observed dark matter in the Universe. We investigated the parameter space of neutron $(n)$ to mirror-neutron $(n')$ oscillations, in the case where the two states are not necessarily mass-degenerate, taking into account interactions in the mirror sector. By tuning the magnitude of an applied magnetic-field in the range $5~μ\mathrm{T} < B < 360~μ\mathrm{T}$ to corresponding resonance conditions for finite mass splitting, we derive exclusion limits for the $n-n'$ oscillation time constant reaching about $20~\text{s}$ over the mass-difference range $0.3 - 22~\text{peV}$. In parts of this parameter range, our limits exceed the model-dependent neutron-star-cooling bound, providing the first experimental constraints in this scenario that are more stringent than this astrophysical estimate.

hep-ex

Search for the $^{16}\text{O}(ppp) \rightarrow ^{13}\text{C} π^+ π^+ e^+$ Decay Mode in Super-Kamiokande Using Machine Learning Techniques

We report a new partial lifetime limit of $4.2 \times 10^{32}$ years for the trinucleon decay mode $^{16}\text{O}(ppp) \rightarrow ^{13}\text{C} π^+ π^+ e^+$, obtained from a search conducted using the Super-Kamiokande detector with 0.401 megaton-years of exposure across five operational periods (SK-I: 1996--2001, SK-II: 2002--2005, SK-III: 2006--2008, SK-IV: 2008--2018, SK-V: 2019--2020). This represents an improvement of six orders of magnitude over previous experimental constraints. The analysis utilizes a convolutional neural network (CNN) incorporating an attention mechanism---a computational technique that enables the model to focus on the most relevant regions of Cherenkov ring patterns---to enhance event classification, thereby improving the sensitivity of the search. This is the first application of a CNN to a nucleon decay search in Super-Kamiokande. Furthermore, the large dataset available in Super-Kamiokande (hereafter "SK") strengthens the statistical power of the study, enabling a more stringent constraint than those set by prior experiments.

hep-ex