Ultra Fast Transformers on FPGAs for Particle Physics Experiments

Zhixing Jiang, Dennis Yin, Elham E Khoda, Vladimir Loncar, Ekaterina Govorkova +4 more
2/1/2024
cs.LGcs.ARhep-ex

No confident code implementation found for this paper.

Abstract

This work introduces a highly efficient implementation of the transformer architecture on a Field-Programmable Gate Array (FPGA) by using the \texttt{hls4ml} tool. Given the demonstrated effectiveness of transformer models in addressing a wide range of problems, their application in experimental triggers within particle physics becomes a subject of significant interest. In this work, we have implemented critical components of a transformer model, such as multi-head attention and softmax layers. To evaluate the effectiveness of our implementation, we have focused on a particle physics jet flavor tagging problem, employing a public dataset. We recorded latency under 2 $μ$s on the Xilinx UltraScale+ FPGA, which is compatible with hardware trigger requirements at the CERN Large Hadron Collider experiments.

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{jiang2024ultra,
  title  = {Ultra Fast Transformers on FPGAs for Particle Physics Experiments},
  author = {Zhixing Jiang and Dennis Yin and Elham E Khoda and Vladimir Loncar and Ekaterina Govorkova and Eric Moreno and Philip Harris and Scott Hauck and Shih-Chieh Hsu},
  year   = {2024},
  eprint = {2402.01047},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.01047v1}
}

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/2402.01047.svg)](https://codeofpaper.com/paper/2402.01047)

Discussion