Accelerated Charged Particle Tracking with Graph Neural Networks on FPGAs

Aneesh Heintz, Vesal Razavimaleki, Javier M. Duarte, Gage DeZoort, Isobel Ojalvo, Savannah Thais, Markus Atkinson, Mark Neubauer, Lindsey Gray, Sergo Jindariani, Nhan Tran, Philip C. Harris, Dylan S. Rankin, Thea Aarrestad, Vladimir Loncar, Maurizio Pierini, Sioni Summers, Jennifer Ngadiuba, Mia Liu, Edward Kreinar, Zhenbin WuarXiv 2020

Abstract

Particle tracking at the Large Hadron Collider (LHC) is a computationally intensive task that scales poorly with increasing collision density. To meet the sub-microsecond latency requirements of the LHC's Level-1 hardware trigger, researchers have developed high-performance implementations of Interaction Networks (INs) on Field-Programmable Gate Arrays (FPGAs). By leveraging specialized tools such as hls4ml and OpenCL, and employing fixed-point quantization, this work demonstrates that Graph Neural Networks (GNNs) can perform real-time tracking with high accuracy. The hls4ml implementation achieves latencies as low as 650 ns, proving the feasibility of AI-driven tracking in the most demanding environments of high-energy physics.

Introduction

In high-energy physics, "tracking" involves reconstructing the trajectories of charged particles from thousands of discrete "hits" recorded by detector layers. As the LHC moves toward higher beam intensities, the density of these hits increases dramatically. Traditional tracking algorithms, such as the Kalman filter, often exhibit worse-than-quadratic ($O(N^2)$) scaling, making them prohibitively slow for the next generation of experiments.

Furthermore, the "Level-1 trigger"—the hardware system responsible for making real-time decisions on which collision events to record—operates under a strict sub-microsecond latency budget. Standard CPU and GPU architectures are generally unable to meet these constraints, necessitating the development of accelerated, hardware-efficient solutions like FPGAs.

Methodology

Interaction Networks

The researchers focused on Interaction Networks (IN), a specific class of Graph Neural Networks (GNNs) designed to model relational data. In this application, detector hits are represented as nodes, and potential track segments between hits are represented as edges. The IN learns to classify these edges as either valid track segments or noise.

Interaction Network architecture showing the relational processing of hits (nodes) and track segments (edges).

Hardware Implementation Strategies

Two distinct FPGA implementation strategies were evaluated:

  1. hls4ml: An open-source compiler that converts machine learning models into High-Level Synthesis (HLS) firmware. It is optimized for ultra-low latency by unrolling loops and pipelining operations, specifically targeting Xilinx FPGAs for trigger-level applications.
  2. OpenCL: A C-based framework for heterogeneous computing that utilizes a CPU-plus-FPGA coprocessing model. This approach offers greater flexibility for varying graph sizes but introduces communication overhead between the host and the accelerator.

To optimize resource usage, the authors employed quantization, reducing precision from 32-bit floating-point to 8-16 bit fixed-point integers. This significantly reduces the footprint on the FPGA's Digital Signal Processors (DSPs) and Look-Up Tables (LUTs).

Results and Discussion

Latency and Throughput

The hls4ml implementation achieved an execution latency between 650 ns and 1 μs, successfully fitting within the LHC's Level-1 trigger window. In contrast, the OpenCL implementation, while slower (ranging from 10 ms to 1 s), demonstrated the ability to process much larger and more complex graphs, making it suitable for High-Level triggers or offline analysis.

Latency performance of the FPGA-based tracking models across different particle momentum thresholds.

As shown in the latency analysis, the processing time is highly dependent on the minimum transverse momentum ($p_T$) threshold. Lower $p_T$ thresholds include more low-energy particles, resulting in larger graphs (up to ~16,600 edges) and correspondingly higher latencies.

Physics Performance and Resource Efficiency

Despite aggressive quantization, the GNNs maintained high tracking accuracy, with 12-bit and 16-bit models effectively matching the performance of their 32-bit counterparts. The use of 8-bit precision allowed for substantial resource savings, enabling more complex models to be deployed on a single FPGA chip without sacrificing physics reach.

Conclusion

This work demonstrates that GNNs are a powerful and efficient tool for real-time particle tracking. By porting these models to FPGAs using specialized compilers and quantization techniques, researchers have cleared a major hurdle for future high-intensity physics experiments. Future efforts will focus on optimizing CPU-FPGA communication and developing even more compact architectures to handle full-scale collision events without truncation.

Summary updated

BibTeX
@misc{heintz2020accelerated,
  author = {Aneesh Heintz and Vesal Razavimaleki and Javier M. Duarte and Gage DeZoort and Isobel Ojalvo and Savannah Thais and Markus Atkinson and Mark Neubauer and Lindsey Gray and Sergo Jindariani and Nhan Tran and Philip C. Harris and Dylan S. Rankin and Thea Aarrestad and Vladimir Loncar and Maurizio Pierini and Sioni Summers and Jennifer Ngadiuba and Mia Liu and Edward Kreinar and Zhenbin Wu},
  title = {{Accelerated Charged Particle Tracking with Graph Neural Networks on FPGAs}},
  year = {2020},
  eprint = {2012.01563},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.01563},
}
Figure