Low Latency Edge Classification GNN for Particle Trajectory Tracking on FPGAs

Shi-Yu Huang, Yun-Chen Yang, Yu-Ru Su, Bo-Cheng Lai, Javier M. Duarte, Scott Hauck, Shih-Chieh Hsu, Jin-Xuan Hu, Mark S. Neubauer

Introduction

In the high-stakes environment of the Large Hadron Collider (LHC), particle detectors must process an immense volume of data in real-time. With proton collisions occurring 40 million times per second, the resulting 40 TB/s data stream necessitates a sophisticated "trigger system" to filter and retain only the most significant events. As the LHC transitions toward its High-Luminosity phase (HL-LHC) in 2027, the complexity of particle trajectories is expected to grow quadratically, rendering traditional tracking algorithms like Kalman filters computationally prohibitive.

Graph Neural Networks (GNNs) have emerged as a promising alternative due to their ability to model detector hits as nodes and potential trajectories as edges. However, implementing GNNs on hardware accelerators like Field Programmable Gate Arrays (FPGAs) presents significant challenges, primarily due to the irregular data access patterns inherent in graph structures. This paper presents a novel, resource-efficient GNN architecture optimized for edge classification, achieving the microsecond-level latency required for next-generation physics experiments.

The Challenge of Edge Classification on FPGAs

While many GNN accelerators focus on node classification, particle trajectory tracking is fundamentally an edge classification problem: the system must determine whether a connection between two detector hits represents a valid physical path. On FPGAs, this is complicated by memory bottlenecks; the dynamic connections between nodes lead to irregular memory access, which conflicts with the high-throughput, deterministic nature of hardware pipelines.

Proposed Architecture: Modular and Geometrically Aware

The researchers developed a modular GNN architecture using the hls4ml framework, specifically designed to overcome these hardware constraints through several key innovations:

1. Modular Streaming Pipeline

The architecture is decomposed into three primary stages connected via FIFO buffers to support continuous data streaming:

  • Edgeblock: Re-embeds edge features based on connected nodes.
  • Aggregate: Sums features for receiver nodes.
  • Nodeblock: Updates node features based on aggregated information.

2. Parallel Processing Elements (PEs)

To mitigate the irregular access problem, the design utilizes multiple Parallel Processing Elements. Each PE contains its own dedicated "node array," allowing the system to process multiple edges simultaneously without memory contention. This parallelism is essential for meeting the strict throughput requirements of the LHC.

3. Geometric Partitioning and Resource Allocation

The "secret sauce" of this design is the exploitation of the detector's physical geometry. Rather than processing the entire detector as a single, massive graph, the authors partitioned the graph into 13 independent sub-graphs based on the physical layers of the detector.

Recognizing that hit density is not uniform—the "barrel" (middle) regions of the detector experience significantly more hits than the "endcap" (side) regions—the architecture (designated as MPA_geo_rsrc) employs data-aware resource allocation. By assigning more PEs to high-density regions, the design balances the workload across the FPGA, maximizing efficiency and minimizing idle cycles.

Experimental Evaluation

The architecture was evaluated using the TrackML dataset, a standard CERN benchmark for particle tracking. The study focused on graphs representing the 95th percentile of collision events, typically containing approximately 739 nodes and 1,252 edges. To optimize the hardware footprint without sacrificing precision, the researchers utilized a fixed-point data format (7 integer bits and 7 fractional bits).

Performance Results

The design was implemented on a Xilinx Virtex UltraScale+ VU9P FPGA and compared against traditional CPU and GPU benchmarks. The results demonstrate a transformative leap in performance:

  • Latency: The system achieved a total processing time of just 2.07 microseconds, well within the requirements for real-time trigger decisions.
  • Throughput: The architecture reached 3.225 Million Graphs Per Second (MGPS), comfortably exceeding the LHC’s target of 2.22 MGPS.
  • Acceleration: Compared to an Intel Xeon CPU, the FPGA design provided a 1,625x speedup. It also outperformed an NVIDIA RTX2080 GPU by a factor of 1,574x.
  • Resource Efficiency: Geometric partitioning significantly reduced the BlockRAM (BRAM) requirements compared to generic GNN implementations, allowing for a more compact and scalable design.

Conclusion and Future Work

By leveraging the physical constraints of the detector as an optimization tool, this research demonstrates that GNNs can be effectively deployed for ultra-low latency edge classification on FPGAs. The modular, edge-centric design provides a scalable blueprint for real-time data processing in high-energy physics.

Despite these successes, BRAM remains the primary bottleneck for scaling to larger graph sizes. Future research will focus on optimizing memory sharing between Processing Elements and exploring multi-FPGA configurations to handle the increasingly dense environments of future particle physics experiments.

Summary updated

BibTeX
@inproceedings{huang2023low,
  author = {Shi-Yu Huang and Yun-Chen Yang and Yu-Ru Su and Bo-Cheng Lai and Javier M. Duarte and Scott Hauck and Shih-Chieh Hsu and Jin-Xuan Hu and Mark S. Neubauer},
  title = {{Low Latency Edge Classification GNN for Particle Trajectory Tracking on FPGAs}},
  booktitle = {FPL},
  year = {2023},
  doi = {10.1109/fpl60245.2023.00050},
}
Figure