Low latency transformer inference on FPGAs for physics applications with hls4ml

Abstract This study presents an efficient implementation of transformer architectures in Field-Programmable Gate Arrays (FPGAs) using hls4ml . We demonstrate the strategy for implementing the multi head attention, softmax, and normalization layer and evaluate three distinct models. Their deployment on VU13P FPGA chip achieved latency less than 2 μs, demonstrating the potential for real-time applications. hls4ml 's compatibility with any TensorFlow-built transformer model further enhances the scalability and applicability of this work.

Authors

Institutions

Publication Details

Journal
Journal of Instrumentation
Published
2025-04-01
DOI
https://doi.org/10.1088/1748-0221/20/04/p04014
Citations
2
Primary Topic
Particle Detector Development and Performance
Type
article
Field-Weighted Citation Impact
3.74
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Low latency transformer inference on FPGAs for physics applications with hls4ml

Scott Hauck, Z. Jiang, Philip Harris, Vladimir Lončar et al.
2 citations
Journal of Instrumentation
Particle Detector Development and Performance
3.74
article

Low latency transformer inference on FPGAs for physics applications with hls4ml

Scott Hauck, Z. Jiang, Philip Harris, Vladimir Lončar, Ekaterina Govorkova, Eric Moreno, Yi-Hui Chen, E. E. Khoda, S.‐C. Hsu, Dennis Yin
article en
2 citations

Abstract

Abstract This study presents an efficient implementation of transformer architectures in Field-Programmable Gate Arrays (FPGAs) using hls4ml . We demonstrate the strategy for implementing the multi head attention, softmax, and normalization layer and evaluate three distinct models. Their deployment on VU13P FPGA chip achieved latency less than 2 μs, demonstrating the potential for real-time applications. hls4ml 's compatibility with any TensorFlow-built transformer model further enhances the scalability and applicability of this work.

Journal of InstrumentationVol. 20(04)
University of Washington (US), University of Washington Applied Physics Laboratory (US), Massachusetts Institute of Technology (US)
Openalex Percentile: Top 8%
Particle Detector Development and Performance
3.74
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.