Intelligent experiments through real-time AI: Fast Data Processing and Autonomous Detector Control for sPHENIX and future EIC detectors

Jakub Kvapil, Giorgian Borca-Tasciuc, H. Bossi, K. Chen, Y. Chen, Yasser Corrales Morales, H. Da Costa, C. Da Silva, C. Dean, J. Durham, S. Fu, C. Hao, P. Harris, O. Hen, H. Jheng, Y. Lee, P. Li, X. Li, Y. Lin, M. X. Liu, Vladimir Loncar, Jovan Mitrevski, Alejandro Olvera, Martin L. Purschke, Jimmy S. J. Ren, G. Roland, J. Schambach, Z. Shi, N. Tran, N. Wuerfel, B. Xu, D. Yu, H. ZhangarXiv 2025

Abstract

This R&D project, initiated by the DOE Nuclear Physics AI-Machine Learning initiative in 2022, leverages AI to address data processing challenges in high-energy nuclear experiments (RHIC, LHC, and future EIC). Our focus is on developing a demonstrator for real-time processing of high-rate data streams from sPHENIX experiment tracking detectors. The limitations of a 15 kHz maximum trigger rate imposed by the calorimeters can be negated by intelligent use of streaming technology in the tracking system. The approach efficiently identifies low momentum rare heavy flavor events in high-rate p+p collisions (3MHz), using Graph Neural Network (GNN) and High Level Synthesis for Machine Learning (hls4ml). Success at sPHENIX promises immediate benefits, minimizing resources and accelerating the heavy-flavor measurements. The approach is transferable to other fields. For the EIC, we develop a DIS-electron tagger using Artificial Intelligence - Machine Learning (AI-ML) algorithms for real-time identification, showcasing the transformative potential of AI and FPGA technologies in high-energy nuclear and particle experiments real-time data processing pipelines.

The Challenge of the Data Deluge

In high-energy physics, the "data deluge" is a literal physical constraint. At the sPHENIX experiment (Brookhaven National Laboratory), particles collide at a rate of 3 MHz. However, the experiment's data acquisition system is bottlenecked: the calorimeters can only trigger at 15 kHz, and the massive volume of data from the Time Projection Chamber (TPC) means only about 10% of the total data can be saved for offline analysis.

The challenge is that many of the most interesting physics events—specifically "heavy flavor" signatures like charm and beauty quarks—are rare and low-momentum. Standard triggers often miss them. To capture the remaining 90% of the luminosity, researchers need a way to "look" at the streaming tracking data in real-time, identify these rare events, and signal the TPC to save that specific buffer before it is overwritten. This requires making a complex decision in less than 10 microseconds ((\mu)s).

Architecting an Intelligent Trigger

The proposed solution is an end-to-end pipeline that moves from raw detector hits to a trigger decision using Machine Learning. Instead of traditional grid-based processing, detector clusters are treated as nodes in a graph. This preserves the spatial relationships of the detector geometry more efficiently than standard Convolutional Neural Networks (CNNs).

The core of the decision engine is a Bipartite Graph Network with Set Transformers (BGN-ST). This attention-based algorithm models local track-to-track interactions and global collision vertex information to determine if a group of tracks originated from a heavy-flavor decay. To meet the microsecond latency requirements, these models are translated from Python/PyTorch into VHDL/Verilog using tools like hls4ml (High-Level Synthesis for Machine Learning) and FlowGNN for deployment on FPGAs.

Performance and Hardware Implementation

A critical insight in this research is that simply identifying tracks is insufficient; calculating physical curvature (momentum) in real-time is a vital feature that significantly boosts the signal-to-noise ratio. By including a least-squares method to estimate track curvature, the researchers improved trigger accuracy by approximately 15%.

Performance comparison of different GNN architectures with and without track radius estimation.

As shown in the table above, the BGN-ST model outperforms other architectures like GarNet and Set Transformers, particularly when track radius estimation is utilized. The BGN-ST model achieved 90.22% accuracy for charm signals and 97.38% accuracy for beauty decays. Compared to random selection, this AI approach yielded a 23-fold increase in tagging purity.

Hardware implementation on an Alveo U280 FPGA successfully met the "stretched goal" of 10 (\mu)s latency:

  • The edge classification model achieved a latency of 8.82 (\mu)s.
  • A simplified hit-based beauty model achieved 9.2 (\mu)s latency.

Future Outlook

The primary remaining hurdle is software integration, specifically expanding hls4ml support for advanced libraries like PyTorch Geometric. The team expects full support in 2025, which will allow the deployment of the most sophisticated track-based attention models on FPGAs.

Looking ahead, the team plans to integrate all firmware components onto a single FPGA for full-system testing. Beyond sPHENIX, this "intelligent experiment" framework is being adapted for the future Electron-Ion Collider (EIC), specifically for real-time Deep Inelastic Scattering (DIS) electron tagging, showcasing the transformative potential of AI in high-energy nuclear physics pipelines.

Summary updated

BibTeX
@misc{kvapil2025intelligent,
  author = {Jakub Kvapil and Giorgian Borca-Tasciuc and H. Bossi and K. Chen and Y. Chen and Yasser Corrales Morales and H. Da Costa and C. Da Silva and C. Dean and J. Durham and S. Fu and C. Hao and P. Harris and O. Hen and H. Jheng and Y. Lee and P. Li and X. Li and Y. Lin and M. X. Liu and Vladimir Loncar and Jovan Mitrevski and Alejandro Olvera and Martin L. Purschke and Jimmy S. J. Ren and G. Roland and J. Schambach and Z. Shi and N. Tran and N. Wuerfel and B. Xu and D. Yu and H. Zhang},
  title = {{Intelligent experiments through real-time AI: Fast Data Processing and Autonomous Detector Control for sPHENIX and future EIC detectors}},
  year = {2025},
  eprint = {2501.04845},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.04845},
}
Figure