Sub-microsecond Transformers for Jet Tagging on FPGAs

Lauri Laatu, Chang Sun, Arianna Cox, Abhijith Gandrakota, Benedikt Maier +5 more
10/26/2025
physics.ins-detcs.LGcs.PF

No confident code implementation found for this paper.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{laatu2025submicrosecond,
  title  = {Sub-microsecond Transformers for Jet Tagging on FPGAs},
  author = {Lauri Laatu and Chang Sun and Arianna Cox and Abhijith Gandrakota and Benedikt Maier and Jennifer Ngadiuba and Zhiqiang Que and Wayne Luk and Maria Spiropulu and Alexander Tapper},
  year   = {2025},
  eprint = {2510.24784},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.24784v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.24784.svg)](https://codeofpaper.com/paper/2510.24784)

Discussion