Title: Ultra-low latency recurrent neural network inference on FPGAs for physics applications with hls4ml

Journal Article · · Machine Learning: Science and Technology

Abstract Recurrent neural networks have been shown to be effective architectures for many tasks in high energy physics, and thus have been widely adopted. Their use in low-latency environments has, however, been limited as a result of the difficulties of implementing recurrent architectures on field-programmable gate arrays (FPGAs). In this paper we present an implementation of two types of recurrent neural network layers—long short-term memory and gated recurrent unit—within the hls4ml framework. We demonstrate that our implementation is capable of producing effective designs for both small and large models, and can be customized to meet specific design requirements for inference latencies and FPGA resources. We show the performance and synthesized designs for multiple neural networks, many of which are trained specifically for jet identification tasks at the CERN Large Hadron Collider.

Research Organization:
SLAC National Accelerator Laboratory (SLAC), Menlo Park, CA (United States)
Sponsoring Organization:
National Science Foundation (NSF); USDOE
Grant/Contract Number:
AC02-76SF00515; SC0021943
OSTI ID:
1968930
Journal Information:
Machine Learning: Science and Technology, Journal Name: Machine Learning: Science and Technology Journal Issue: 2 Vol. 4; ISSN 2632-2153
Publisher:
IOP PublishingCopyright Statement
Country of Publication:
United Kingdom
Language:
English

References (20)

The automated computation of tree-level and next-to-leading order differential cross sections, and their matching to parton shower simulations journal July 2014
Jet charge and machine learning journal October 2018
Artificial Neural Networks on FPGAs for Real-Time Energy Reconstruction of the ATLAS LAr Calorimeters journal October 2021
An introduction to PYTHIA 8.2 journal June 2015
Using LSTM recurrent neural networks for monitoring the LHC superconducting magnets
  • Wielgosz, Maciej; Skoczeń, Andrzej; Mertik, Matej
  • Nuclear Instruments and Methods in Physics Research Section A: Accelerators, Spectrometers, Detectors and Associated Equipment, Vol. 867 https://doi.org/10.1016/j.nima.2017.06.020
journal September 2017
Parton distributions with LHC data journal February 2013
The importance of calorimetry for highly-boosted jet substructure journal January 2018
Fast inference of deep neural networks in FPGAs for particle physics journal July 2018
Compressing deep neural networks on FPGAs to binary and ternary precision with hls4ml journal December 2020
Fast convolutional neural networks on FPGAs with hls4ml journal July 2021
Using a Recurrent Neural Network to Reconstruct Quantum Dynamics of a Superconducting Qubit from Physical Observations journal January 2020
FINN-L: Library Extensions and Design Trade-Off Analysis for Variable Precision LSTM Networks on FPGAs
  • Rybalkin, Vladimir; Pappalardo, Alessandro; Ghaffar, Muhammad Mohsin
  • 2018 28th International Conference on Field Programmable Logic and Applications (FPL) https://doi.org/10.1109/FPL.2018.00024
conference August 2018
FPGAs-as-a-Service Toolkit (FaaST) conference November 2020
FPGA-Based Low-Power Speech Recognition with Recurrent Neural Networks conference October 2016
A Survey and Evaluation of FPGA High-Level Synthesis Tools journal October 2016
A Reconfigurable Neural Network ASIC for Detector Front-End Data Compression at the HL-LHC journal August 2021
Tuning PYTHIA 8.1: the Monash 2013 tune journal August 2014
FINN: A Framework for Fast, Scalable Binarized Neural Network Inference
  • Umuroglu, Yaman; Fraser, Nicholas J.; Gambardella, Giulio
  • Proceedings of the 2017 ACM/SIGDA International Symposium on Field-Programmable Gate Arrays - FPGA '17 https://doi.org/10.1145/3020078.3021744
conference January 2017
Long Short-Term Memory journal November 1997
Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation
  • Cho, Kyunghyun; van Merrienboer, Bart; Gulcehre, Caglar
  • Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP) https://doi.org/10.3115/v1/D14-1179
conference January 2014