Fast Inference of Deep Neural Networks for Real-time Particle Physics Applications

Javier M. Duarte, Song Han, Philip C. Harris, Sergo Jindariani, Edward Kreinar, Benjamin Kreis, Vladimir Loncar, Jennifer Ngadiuba, Maurizio Pierini, Dylan S. Rankin, Ryan A. Rivera, Sioni Summers, Nhan Tran, Zhenbin Wu

Abstract

Machine learning methods are ubiquitous and have proven to be very powerful in LHC physics, and particle physics as a whole. However, exploration of such techniques in low-latency, low-power FPGA (Field Programmable Gate Array) hardware has only just begun. FPGA-based trigger and data acquisition systems have extremely low, sub-microsecond latency requirements that are unique to particle physics. We present a case study for neural network inference in FPGAs focusing on a classifier for jet substructure which would enable many new physics measurements. While we focus on a specific example, the lessons are far-reaching. A compiler package is developed based on High-Level Synthesis (HLS) called HLS4ML to build machine learning models in FPGAs. The use of HLS increases accessibility across a broad user community and allows for a drastic decrease in firmware development time. We map out FPGA resource usage and latency versus neural network hyperparameters to allow for directed resource tuning in the low latency environment and assess the impact on our benchmark Physics performance scenario For our example jet substructure model, we fit well within the available resources of modern FPGAs with latency on the scale of 100~ns.
BibTeX
@inproceedings{duarte2019fast,
  author = {Javier M. Duarte and Song Han and Philip C. Harris and Sergo Jindariani and Edward Kreinar and Benjamin Kreis and Vladimir Loncar and Jennifer Ngadiuba and Maurizio Pierini and Dylan S. Rankin and Ryan A. Rivera and Sioni Summers and Nhan Tran and Zhenbin Wu},
  title = {{Fast Inference of Deep Neural Networks for Real-time Particle Physics Applications}},
  booktitle = {FPGA},
  year = {2019},
  doi = {10.1145/3289602.3293986},
}

Loading related content...

Figure