Skip to main content
QUICK REVIEW

[论文解读] Real-time Graph Building on FPGAs for Machine Learning Trigger Applications in Particle Physics

M. Neu, Jürgen Becker|arXiv (Cornell University)|Jul 14, 2023
Parallel Computing and Optimization TechniquesComputer Science参考文献 54被引用 3
一句话总结

本文提出了一种半自动的、基于FPGA的实时图构建方法,专为粒子物理触发系统设计,采用局部约束图算法(ε-NN 和 p-NN)替代传统k-NN,以满足亚微秒级延迟要求。该方法实现时间复杂度O(1),空间复杂度O(|E|),使图神经网络(GNN)可在一级触发中部署,如在Belle II中央漂移室上实现的32 MHz吞吐量和39.06 ns延迟所示。

ABSTRACT

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.

研究动机与目标

  • 为解决粒子物理触发系统中缺乏实时、硬件加速图构建的问题,目前该类系统仍依赖离线GNN处理。
  • 评估k-NN及替代最近邻算法在L1触发严格延迟与吞吐量约束下的可行性。
  • 开发一种形式化、基于生成器的方法论,实现将探测器定义的图算法半自动映射至FPGA硬件。
  • 通过在Belle II中央漂移室上实现图构建器,证明在实时触发链中部署GNN的可行性。
  • 实现适用于高能物理实验在线GNN推理的低延迟、高吞吐量图构建。

提出的方法

  • 作者定义了一种形式化探测器描述及用户指定的度量标准,将图构建算法泛化为中间图表示。
  • 引入一种相似性度量,用于比较k-NN与局部约束方法(ε-NN 和 p-NN),支持算法层面的权衡分析。
  • 基于生成器的工具链可从形式化图描述和度量标准自动生成FPGA实现的RTL代码。
  • 硬件架构采用并行处理和静态地址的边输出寄存器,实现常数时间图构建。
  • 实现基于UT4 FPGA平台,使用Vivado 2022.2,资源利用率通过LUT、寄存器和F7MUX进行测量。
  • 设计支持灵活的输出队列机制以供下游过滤,并针对低延迟、高吞吐量操作进行了优化。
Figure 1 : Typical event display showing the transverse plane of the Belle II CDC. Hits generated by signal muon particles are shown with purple markers and background hits by black markers.
Figure 1 : Typical event display showing the transverse plane of the Belle II CDC. Hits generated by signal muon particles are shown with purple markers and background hits by black markers.

实验结果

研究问题

  • RQ1局部约束最近邻算法(ε-NN 和 p-NN)是否可作为实时粒子物理触发系统中k-NN的可行替代方案?
  • RQ2是否可行从形式化探测器描述和用户定义度量标准半自动生成FPGA加速图构建硬件?
  • RQ3所提出的方法论是否可在真实触发环境中实现O(1)时间复杂度并满足亚微秒级延迟约束?
  • RQ4k-NN与局部约束NN图之间的结构差异如何影响触发应用中下游GNN的性能?
  • RQ5在真实探测器场景(如Belle II CDC)中,所提出硬件图构建器的资源与延迟开销如何?

主要发现

  • 所提出的图构建模块实现3200万样本/秒的吞吐量,总延迟为39.06 ns,相当于250 MHz系统时钟下的10个时钟周期。
  • 实现展示了O(1)时间复杂度和O(|E|)空间复杂度,在延迟可预测性方面优于k-NN算法。
  • 相似性度量揭示了k-NN与ε-NN/p-NN图之间存在不可忽略的结构差异,表明直接替换可能影响下游GNN性能。
  • 半自动工具链成功为Belle II CDC生成了功能完整的FPGA设计,满足L1触发所有要求的延迟与吞吐量约束。
  • 该解决方案在FPGA资源和延迟预算方面留有显著余量,支持后续GNN推理阶段,实现端到端在线处理。
  • 图构建工具链的开源代码已公开,支持可复现性,并可扩展至其他探测器。
(a) $k$ -NN, for $k=3$
(a) $k$ -NN, for $k=3$

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。