From RooWorkspaces to Computational Graphs: HS3 and pyhs3

Used for: [1]

Abstract:

Statistical modeling is central to discovery in particle physics, yet the tools used to define, share, and evaluate these models are often fragmented or tightly coupled to legacy systems. The HEP Statistics Serialization Standard (HS³) addresses this with a framework-agnostic structure for serializing statistical models (distributions, functions, data, domains, parameter points, likelihoods, and analyses). Strongly motivated by the success of pyhf in enabling likelihood publishing and theory-side reinterpretation, HS³ extends this paradigm to the full scope of RooFit models and beyond. With growing adoption across ATLAS and CMS, a dedicated HEPData badge, integration into reinterpretation frameworks like CheckMATE, and an expanding interdisciplinary scope through the BMBF-funded DEMOS initiative, HS³ is rapidly becoming the community standard for FAIR statistical model exchange.

Additionally, this talk covers pyhs3, an ongoing pure-Python implementation that allows researchers to quickly get started working with HS³ workspaces without depending on ROOT or other legacy frameworks. Built on PyTensor, RustWorkX, SymPy, and Pydantic, pyhs3 constructs and evaluates computational graphs for likelihood ratio calculations with modularity, auto-differentiability, and integration with modern scientific computing ecosystems in mind. By providing a lightweight, well-documented entry point to the HS³ ecosystem, pyhs3 fills a key gap: enabling reinterpretation tools and theory workflows to consume published HS³ models directly, lowering the barrier for collaboration-independent reanalysis, likelihood combination, and EFT reparametrization. On-going work is done to validate its results against established calculations, examine performance relative to existing systems, and will outline future development plans.

Statistical modeling is central to discovery in particle physics, yet the tools used to define, share, and evaluate these models are often fragmented or tightly coupled to legacy systems. The HEP Statistics Serialization Standard (HS${}^{3}$) addresses this with a framework-agnostic structure for serializing statistical models (distributions, functions, data, domains, parameter points, likelihoods, and analyses). Strongly motivated by the success of pyhf in enabling likelihood publishing and theory-side reinterpretation, HS${}^{3}$ extends this paradigm to the full scope of RooFit models and beyond. With growing adoption across ATLAS and CMS, a dedicated HEPData badge, integration into reinterpretation frameworks like CheckMATE, and an expanding interdisciplinary scope through the BMBF-funded DEMOS initiative, HS${}^{3}$ is rapidly becoming the community standard for FAIR statistical model exchange.

Additionally, this talk covers pyhs3, an ongoing pure-Python implementation that allows researchers to quickly get started working with HS${}^{3}$ workspaces without depending on ROOT or other legacy frameworks. Built on PyTensor, RustWorkX, SymPy, and Pydantic, pyhs3 constructs and evaluates computational graphs for likelihood ratio calculations with modularity, auto-differentiability, and integration with modern scientific computing ecosystems in mind. By providing a lightweight, well-documented entry point to the HS${}^{3}$ ecosystem, pyhs3 fills a key gap: enabling reinterpretation tools and theory workflows to consume published HS${}^{3}$ models directly, lowering the barrier for collaboration-independent reanalysis, likelihood combination, and EFT reparametrization. On-going work is done to validate its results against established calculations, examine performance relative to existing systems, and will outline future development plans.