FAIR AI Models in High Energy Physics

Javier Duarte, Haoyang Li, Avik Roy, Ruike Zhu, E. A. Huerta, Daniel Diaz, Philip Harris, Raghav Kansal, Daniel S. Katz, Ishaan H. Kavoori, Volodymyr V. Kindratenko, Farouk Mokhtar, Mark S. Neubauer, Sang Eon Park, Melissa Quinnan, Roger Rusack, Zhizhen Zhao · DOI

TL;DR

This paper proposes a practical framework for applying FAIR (Findable, Accessible, Interoperable, Reusable) principles to artificial intelligence models within high energy physics (HEP). The authors introduce an automated project template (cookiecutter4fair) and demonstrate its value by creating a robust, portable, and highly interpretable graph neural network for Higgs boson identification.

What Problem Does This Paper Address?

Artificial intelligence and machine learning are rapidly transforming scientific fields like high energy physics, but sharing, tracking, and reproducing these models remains a major challenge. While the FAIR principles are well-established for datasets and research software, AI models sit at a tricky intersection of both. A trained model is a unique digital asset combining source code, data preprocessing pipelines, specific mathematical architectures, and learned weight parameters.

Because of this complexity, minor changes in backend optimizations, framework versions (e.g., PyTorch vs. ONNX), or underlying hardware architectures can alter inference results. This makes exact, bit-wise reproducibility across different computing environments nearly impossible. The paper addresses this gap by defining what "FAIR" means operationally for AI inference models and providing tools to make compliance easy for researchers.

Methods

The authors outline a concrete set of FAIR AI principles adapted from research software guidelines. To make these principles actionable, they developed cookiecutter4fair, a command-line utility that generates a standardized repository template for data science projects.

Folder hierarchy of the cookiecutter4fair project template.

As shown in Figure 1, the template automates best practices by creating a logical folder hierarchy, generating Dockerfiles for containerization, codifying analysis steps as a directed acyclic graph (DAG) via a Makefile, and populating citation metadata (CITATION.cff) for easy integration with repositories like Zenodo and DLHub.

To validate their template, they implemented a FAIR version of an Interaction Network (IN)—a type of graph neural network—originally designed for jet classification. They evaluated its portability across different hardware platforms (NVIDIA V100 and A100 GPUs) and software frameworks (PyTorch, ONNX, and TensorRT). Finally, they applied Explainable AI (XAI) techniques, specifically Layerwise Relevance Propagation (LRP) and Relative Neural Activity (RNA), to interpret and optimize the network.

Datasets

The framework is demonstrated using a simulated Higgs boson dataset distributed by the CMS Collaboration, available via the CERN Open Data Portal. The dataset contains millions of simulated proton-proton collision events. It focuses specifically on distinguishing Higgs bosons decaying to bottom quarks ($H \rightarrow b\bar{b}$) from background quantum chromodynamics (QCD) multijet events.

Key Insights and Ideas

  • Reproducibility vs. Bit-wise Identity: Due to variations in processor precision and framework intermediate representations (IRs), exact bit-wise reproducibility across different hardware is often impossible. Instead, the authors argue that scientific AI should aim for historical and statistical consistency on an aggregate scale.
  • Model Sparsity and Redundancy: By analyzing neural activity at the layer level, the authors found that the network's internal representations are highly sparse. Many input features and hidden nodes contribute very little to the final prediction, meaning models can be significantly streamlined without sacrificing accuracy.
  • XAI Pitfalls: The authors note that standard explainable AI methods can give inconsistent results when dealing with highly correlated features or when treating categorical and continuous variables identically, highlighting the need for physics-informed validation.

Key Results

  • Performance & Portability: The FAIR-packaged IN model achieved an area under the curve (AUC) of ~0.99, perfectly matching the original non-FAIR publication. It ran seamlessly across different clusters (HAL, DGX, ThetaGPU) and frameworks.
  • Inference Speedup: Converting the model to NVIDIA TensorRT and optimizing batch sizes yielded a peak throughput of 35,000 inferred events per second at a batch size of 1,200.
  • Successful Reoptimization: Guided by their interpretability analysis, the authors successfully trained "ablated" (pruned) versions of the model. They reduced the number of trainable parameters by nearly 90% (from 25,554 down to 2,842) while maintaining an exceptionally high AUC of 98.62%.

Limitations and Future Work

The authors emphasize that their proposed principles are a minimum baseline for inference rather than an exhaustive prescription for the entire AI lifecycle (which would include training and retraining). Key areas for future development include creating fully machine-readable documentation standards and developing standardized APIs to enable federated searches across disparate model repositories (such as Hugging Face, DLHub, and GitHub).

Summary updated

Abstract

The findable, accessible, interoperable, and reusable (FAIR) data principles provide a framework for examining, evaluating, and improving how data is shared to facilitate scientific discovery. Generalizing these principles to research software and other digital products is an active area of research. Machine learning (ML) models -- algorithms that have been trained on data without being explicitly programmed -- and more generally, artificial intelligence (AI) models, are an important target for this because of the ever-increasing pace with which AI is transforming scientific domains, such as experimental high energy physics (HEP). In this paper, we propose a practical definition of FAIR principles for AI models in HEP and describe a template for the application of these principles. We demonstrate the template's use with an example AI model applied to HEP, in which a graph neural network is used to identify Higgs bosons decaying to two bottom quarks. We report on the robustness of this FAIR AI model, its portability across hardware architectures and software frameworks, and its interpretability.
BibTeX
@inproceedings{duarte2022fair,
  author = {Javier Duarte and Haoyang Li and Avik Roy and Ruike Zhu and E. A. Huerta and Daniel Diaz and Philip Harris and Raghav Kansal and Daniel S. Katz and Ishaan H. Kavoori and Volodymyr V. Kindratenko and Farouk Mokhtar and Mark S. Neubauer and Sang Eon Park and Melissa Quinnan and Roger Rusack and Zhizhen Zhao},
  title = {{FAIR AI Models in High Energy Physics}},
  booktitle = {Mach. Learn. Sci. Technol},
  year = {2022},
  url = {https://openreview.net/forum?id=NGyqVc6CyJ},
}
Figure