HEPTAPOD: Orchestrating High Energy Physics Workflows Towards Autonomous Agency
Tony Menzo, Alexander Roman, Sergei Gleyzer, Konstantin Matchev · 2025
Read HEPTAPOD: Orchestrating High Energy Physics Workflows Towards Autonomous Agency by Tony Menzo, Alexander Roman, Sergei Gleyzer, Konstantin Matchev (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2512-15867.txt.
Introduction
Tony Menzo and co authors present HEPTAPOD, a framework that lets language models orchestrate high energy physics workflows, in a 2025 paper. Modern language models can run multi step tasks through tools and structured context, and physics workflows in theory, simulation, and data analysis stand to gain. Trust and oversight, though, must survive the automation.
HEPTAPOD gives models an auditable layer between researchers and computing infrastructure, with transparency and reproducibility built in. A case study validates a beyond Standard Model Monte Carlo signal, spanning model generation, event simulation, and analysis in one reproducible pipeline. The goal is human in the loop, agent assisted work across high energy physics.
Catalog record
| CREATOR | Tony Menzo, Alexander Roman, Sergei Gleyzer, Konstantin Matchev |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 71 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2512-15867
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
HEPTAPOD: Orchestrating High Energy Physics Workflows Towards Autonomous Agency Tony Menzo, Alexander Roman, Sergei Gleyzer, Konstantin Matchev Abstract Abstract Many workflows in high-energy-physics (HEP) stand to benefit from recent advances in transformer-based large language models (LLMs). While early applications of LLMs focused on text generation and code completion, modern LLMs now support orchestrated agency : the coordinated execution of complex, multi-step tasks through tool use, structured context, and iterative reasoning. We introduce the HEP T oolkit for A gentic P lanning, O rchestration, and D eployment (HEPTAPOD), an orchestration framework designed to bring this emerging paradigm to HEP pipelines. The framework enables LLMs to interface with domain-specific tools, construct and manage simulation workflows, and assist in common utility and data analysis tasks through schema-validated operations and run-card-driven configuration. To demonstrate these capabilities, we consider a representative Beyond the Standard Model (BSM) Monte Carlo validation pipeline that spans model generation, event simulation, and downstream analysis within a unified, reproducible workflow. HEPTAPOD provides a structured and auditable layer between human researchers, LLMs, and computational infrastructure, establishing a foundation for transparent, human-in-the-loop systems. 1 Introduction Large language models (LLMs) have evolved from text generators into general-purpose computational interfaces, capable of planning and executing multi-step workflows through structured prompting and function calls [ 60 , 29 , 70 , 68 , 57 , 42 ] . Their capabilities appear to scale predictably with model size, dataset quality, and training compute, following empirical scaling laws that remain robust across architectures and domains [ 51 , 45 ] . This progression has introduced the notion of LLM agency , in which models operate autonomously or cooperatively to complete complex objectives [ 44 , 65 , 55 ] . As investments in large-scale compute infrastructure continue, these systems are expected to improve in reasoning, tool use, and generalization, suggesting a near-term transition from passive language processors to reliable orchestrators of scientific workflows [ 66 ] . High-energy physics (HEP) presents a natural testing ground for these capabilities. Modern theory and phenomenology rely on sophisticated computational stacks spanning symbolic algebra, matrix-element generation, parton showering and hadronization, detector simulation, and numerical analysis, all of which must operate in coordinated, reproducible sequences [ 12 ] . Yet most pipelines remain manually managed, requiring researchers to orchestrate long chains of interdependent calculations, propagate parameters across tools, interpret heterogeneous outputs, and debug failures at any stage. Concurrently, machine learning (ML) methods have reshaped HEP research across simulation [ 15 ] (including phase-space integration and event unweighting [ 27 , 39 ] , hadronization modeling [ 47 , 22 , 23 , 13 , 33 ] , and fast detector simulation using generative models [ 31 ] ), theory inputs such as parton distribution function determinations [ 18 , 17 ] , event reconstruction [ 50 ] , triggering [ 46 , 38 ] , anomaly detection [ 1 , 52 ] , unfolding [ 9 , 20 ] , and analysis [ 2 , 43 ] . Transformers in particular have become standard architectures for particle-cloud reasoning in jet physics, with applications ranging from task-specific jet classification [ 62 , 63 ] to autoregressive generative modeling of jet radiation [ 32 ] and more recently to pretrained foundation models for jet representations [ 26 , 41 ] . Related but more general efforts have begun to explore pretrained transformer foundation models for collider-level data [ 19 ] . Early applications of transformer-based LLMs in HEP have focused on code generation, documentation, and integration with existing software infrastructures [ 69 , 14 ] . More recently, agentic frameworks have begun coordinating multi-tool pipelines; for example, ArgoLOOM provides an agentic AI framework for cosmology, collider physics and nuclear science and produces reproducible artifacts such as run cards and plots [ 16 ] . We introduce the HEP T oolkit for A gentic P lanning, O rchestration, and D eployment (HEPTAPOD) 1 1 1 Not to be confused with the image autoregressive model for language modeling on visual signals introduced in [ 71 ] . That model, also referred to as HEPTAPOD, is named after the alien species in the film Arrival (2016). , an orchestration framework that integrates LLMs directly into HEP theory pipelines. The agentic execution layer is implemented using the Orchestral AI framework [ 64 ] . 2 2 2 A companion paper showcases an analogous application of Orchestral AI for the analysis and simulation of exoplanet transit spectroscopy [ 61 ] . Rather than pursuing full autonomy, HEPTAPOD emphasizes human-in-the-loop control: the LLM acts as a workflow coordinator that invokes domain-specific tools, interprets intermediate outputs, and proposes next steps, while researchers retain oversight and validation. This provides the necessary structure so that increasingly-capable scientific agents can operate safely and reproducibly within established computational workflows. The HEPTAPOD framework is well aligned with emerging initiatives that seek to leverage agentic AI systems for discovery-driven science. 3 3 3 In particular, it supports the objectives of the recently launched Genesis Mission, including the Discovery Science challenge of “Understanding the universe, from quarks to cosmos” [ 40 ] . By abstracting theory tasks into modular, schema-validated tools, HEPTAPOD enables applications ranging from effective-field-theory construction to automated event-generation pipelines and symbolic-numerical translation. More broadly, it provides a blueprint for how agentic LLMs can augment scientific reasoning without displacing human judgment, establishing a foundation for reproducible, adaptive, and interpretable AI-assisted research in theoretical physics. The rest of this paper is organized as follows. Section 2 introduces a representative leptoquark workflow that will serve as a running example throughout the paper. Section 3 describes the orchestration architecture underlying HEPTAPOD, including schema-validated tools, LLM-friendly event formats, run-card-driven coordination, and the distinction between orchestration and traditional scripting approaches. Section 4 demonstrates the complete framework through a BSM leptoquark parameter scan and signal validation. Section 5 concludes with a discussion of future work and perspectives on increasingly agentic scientific systems. 2 An example workflow To motivate the design goals of HEPTAPOD and to illustrate the challenges involved in coordinating multi-stage high-energy-physics workflows, we introduce a representative example that will serve as a running case study. Specifically, we consider the Monte Carlo simulation pipeline required to study new BSM models that are not available by default in general-purpose event generators. In this situation, model implementation, event generation, and downstream simulation must be manually composed across multiple software packages. The design and automation of this pipeline was the subject of a series of international workshops, Monte Carlo Tools for Beyond the Standard Model Physics (MC4BSM), which ran in the 2000’s and 2010’s [ 58 ] . The example considered here is very close to the test case study demonstrated in the MC4BSM tutorials [ 12 ] . For concreteness, we consider a scalar leptoquark [ 37 ] S_{1}\sim(\bar{\mathbf{3}},\mathbf{1},1/3), (2.1) with a simplified interaction Lagrangian \mathcal{L}\supset(D_{\mu}S_{1})^{\dagger}(D^{\mu}S_{1})+y_{ij}\,\overline{u^{c}_{Ri}}\,e_{Rj}\,S_{1}+\mathrm{h.c.} (2.2) Assuming diagonal Yukawa couplings, pair production proceeds dominantly through QCD, pp\to S_{1}S_{1}^{\dagger}\to(\ell^{+}j)(\ell^{-}j), (2.3) yielding a characteristic 2\ell+2j topology. The task is to perform MC signal generation over a scan of the leptoquark mass m_{S_{1}} and predict the distribution of the reconstructed leptoquark mass m^{\text{min}}_{\text{LQ}} , which for concreteness is taken as the smaller of the two reconstructed masses of the leptoquark candidates m_{\text{LQ}}^{(1)} and m_{\text{LQ}}^{(2)} m^{\min}_{\text{LQ}}\;=\;\min\left\{m_{\text{LQ}}^{(1)},m_{\text{LQ}}^{(2)}\right\}, (2.4)