[Paper Review] Real-time Graph Building on FPGAs for Machine Learning Trigger Applications in Particle Physics
This paper presents a semi-automatic, FPGA-based methodology for real-time graph building tailored to particle physics trigger systems, using locally constrained graph algorithms (ε-NN and p-NN) instead of traditional k-NN to meet sub-microsecond latency constraints. The approach achieves constant-time complexity (O(1)) with linear space complexity (O(|E|)), enabling deployment of Graph Neural Networks (GNNs) in first-level triggers, as demonstrated on the Belle II central drift chamber with 32 MHz throughput and 39.06 ns latency.
We present a design methodology that enables the semi-automatic generation of a hardware-accelerated graph building architectures for locally constrained graphs based on formally described detector definitions. In addition, we define a similarity measure in order to compare our locally constrained graph building approaches with commonly used k-nearest neighbour building approaches. To demonstrate the feasibility of our solution for particle physics applications, we implemented a real-time graph building approach in a case study for the Belle~II central drift chamber using Field-Programmable Gate Arrays~(FPGAs). Our presented solution adheres to all throughput and latency constraints currently present in the hardware-based trigger of the Belle~II experiment. We achieve constant time complexity at the expense of linear space complexity and thus prove that our automated methodology generates online graph building designs suitable for a wide range of particle physics applications. By enabling an hardware-accelerated pre-processing of graphs, we enable the deployment of novel Graph Neural Networks~(GNNs) in first level triggers of particle physics experiments.
Motivation & Objective
- To address the lack of real-time, hardware-accelerated graph building in particle physics trigger systems, which currently rely on offline GNN processing.
- To evaluate the feasibility of k-NN and alternative nearest neighbour algorithms under strict latency and throughput constraints of L1 triggers.
- To develop a formal, generator-based methodology for semi-automatically mapping detector-defined graph algorithms to FPGA hardware.
- To demonstrate the feasibility of deploying GNNs in real-time trigger chains by implementing a graph builder for the Belle II central drift chamber.
- To enable low-latency, high-throughput graph construction suitable for online GNN inference in high-energy physics experiments.
Proposed method
- The authors define a formal detector description and a user-specified metric to generalize graph-building algorithms into an intermediate-graph representation.
- They introduce a similarity measure to compare k-NN with locally constrained approaches (ε-NN and p-NN), enabling algorithmic trade-off analysis.
- A generator-based toolchain automatically produces RTL code for FPGA implementation from the formal graph description and metrics.
- The hardware architecture uses parallel processing and statically addressed edge output registers to achieve constant-time graph construction.
- The implementation targets the UT4 FPGA platform using Vivado 2022.2, with resource utilization measured across LUTs, registers, and F7MUXes.
- The design supports flexible output queueing for downstream filtering and is optimized for low-latency, high-throughput operation.

Experimental results
Research questions
- RQ1Can locally constrained nearest neighbour algorithms (ε-NN and p-NN) be used as viable alternatives to k-NN in real-time particle physics trigger systems?
- RQ2Is it feasible to semi-automatically generate FPGA-accelerated graph building hardware from formal detector descriptions and user-defined metrics?
- RQ3Can the proposed methodology achieve O(1) time complexity and meet sub-microsecond latency constraints in real-world trigger environments?
- RQ4How do the structural differences between k-NN and locally constrained NN graphs affect downstream GNN performance in trigger applications?
- RQ5What is the resource and latency overhead of the proposed hardware graph builder in a real detector context, such as the Belle II CDC?
Key findings
- The proposed graph building module achieves a throughput of 32 million samples per second with a total latency of 39.06 ns, equivalent to 10 clock cycles at 250 MHz system clock.
- The implementation demonstrates O(1) time complexity and O(|E|) space complexity, outperforming k-NN algorithms in terms of latency predictability.
- The similarity metric reveals non-negligible structural differences between k-NN and ε-NN/p-NN graphs, indicating that direct replacement may affect downstream GNN performance.
- The semi-automated toolchain successfully generates a functional FPGA design for the Belle II CDC, meeting all required latency and throughput constraints of the L1 trigger.
- The solution leaves significant headroom in FPGA resources and latency budget for subsequent GNN inference stages, enabling end-to-end online processing.
- The open-source code for the graph building toolchain is publicly available, supporting reproducibility and extension to other detectors.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.