English

Fast convolutional neural networks on FPGAs with hls4ml

Machine Learning 2021-07-19 v2 Computer Vision and Pattern Recognition High Energy Physics - Experiment Instrumentation and Detectors Machine Learning

Abstract

We introduce an automated tool for deploying ultra low-latency, low-power deep neural networks with convolutional layers on FPGAs. By extending the hls4ml library, we demonstrate an inference latency of 5μ5\,\mus using convolutional architectures, targeting microsecond latency applications like those at the CERN Large Hadron Collider. Considering benchmark models trained on the Street View House Numbers Dataset, we demonstrate various methods for model compression in order to fit the computational constraints of a typical FPGA device used in trigger and data acquisition systems of particle detectors. In particular, we discuss pruning and quantization-aware training, and demonstrate how resource utilization can be significantly reduced with little to no loss in model accuracy. We show that the FPGA critical resource consumption can be reduced by 97% with zero loss in model accuracy, and by 99% when tolerating a 6% accuracy degradation.

Keywords

Cite

@article{arxiv.2101.05108,
  title  = {Fast convolutional neural networks on FPGAs with hls4ml},
  author = {Thea Aarrestad and Vladimir Loncar and Nicolò Ghielmetti and Maurizio Pierini and Sioni Summers and Jennifer Ngadiuba and Christoffer Petersson and Hampus Linander and Yutaro Iiyama and Giuseppe Di Guglielmo and Javier Duarte and Philip Harris and Dylan Rankin and Sergo Jindariani and Kevin Pedro and Nhan Tran and Mia Liu and Edward Kreinar and Zhenbin Wu and Duc Hoang},
  journal= {arXiv preprint arXiv:2101.05108},
  year   = {2021}
}

Comments

18 pages, 18 figures, 4 tables

R2 v1 2026-06-23T22:07:26.639Z