用于FPGA上喷注标记的亚微秒级Transformer
Sub-microsecond Transformers for Jet Tagging on FPGAs
AI总结:
本研究首次在FPGA上实现亚微秒级Transformer用于喷注标记,通过高粒度量化等优化达到约100纳秒延迟,还为hls4ml新增注意力支持,推动高能物理实时触发系统发展。
摘要:
我们提出了首个在FPGA上实现的亚微秒级Transformer,在最先进的高能物理基准测试中取得了具有竞争力的性能。Transformer在现代机器学习应用的多项任务中展现出卓越性能,包括欧洲核子研究中心大型强子对撞机(LHC)的喷注标记任务。然而,其计算复杂度导致此前无法应用于对撞机实验的硬件触发系统等实时场景。在本研究中,我们首次实现了Transformer在FPGA上用于喷注标记,达到$\boldsymbol{\text{约100}}$纳秒的延迟,且性能优于其他基线模型。我们利用高粒度量化和分布式算术优化,将完整的Transformer模型部署在单块FPGA上,满足了所需的吞吐量和延迟要求。此外,我们为hls4ml(高层综合机器学习框架)新增了多头注意力和线性注意力支持,让更广泛的快速机器学习社区能够使用我们的方法。这项工作推动了高亮度LHC下一代触发系统的发展,使Transformer可应用于高能物理及其他领域的实时场景。
英文摘要:
We present the first sub-microsecond transformer implementation on an FPGA achieving competitive performance for state-of-the-art high-energy physics benchmarks. Transformers have shown exceptional performance on multiple tasks in modern machine learning applications, including jet tagging at the CERN Large Hadron Collider (LHC). However, their computational complexity prohibits use in real-time applications, such as the hardware trigger system of the collider experiments up until now. In this work, we demonstrate the first application of transformers for jet tagging on FPGAs, achieving $\mathcal{O}(100)$ nanosecond latency with superior performance compared to alternative baseline models. We leverage high-granularity quantization and distributed arithmetic optimization to fit the entire transformer model on a single FPGA, achieving the required throughput and latency. Furthermore, we add multi-head attention and linear attention support to hls4ml, making our work accessible to the broader fast machine learning community. This work advances the next-generation trigger systems for the High Luminosity LHC, enabling the use of transformers for real-time applications in high-energy physics and beyond.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。