Compressing deep neural networks on FPGAs to binary and ternary precision with hls4ml. Issue 1 (1st December 2020)
- Record Type:
- Journal Article
- Title:
- Compressing deep neural networks on FPGAs to binary and ternary precision with hls4ml. Issue 1 (1st December 2020)
- Main Title:
- Compressing deep neural networks on FPGAs to binary and ternary precision with hls4ml
- Authors:
- Ngadiuba, Jennifer
Loncar, Vladimir
Pierini, Maurizio
Summers, Sioni
Di Guglielmo, Giuseppe
Duarte, Javier
Harris, Philip
Rankin, Dylan
Jindariani, Sergo
Liu, Mia
Pedro, Kevin
Tran, Nhan
Kreinar, Edward
Sagear, Sheila
Wu, Zhenbin
Hoang, Duc - Abstract:
- Abstract: We present the implementation of binary and ternary neural networks in the hls4ml library, designed to automatically convert deep neural network models to digital circuits with field-programmable gate arrays (FPGA) firmware. Starting from benchmark models trained with floating point precision, we investigate different strategies to reduce the network's resource consumption by reducing the numerical precision of the network parameters to binary or ternary. We discuss the trade-off between model accuracy and resource consumption. In addition, we show how to balance between latency and accuracy by retaining full precision on a selected subset of network components. As an example, we consider two multiclass classification tasks: handwritten digit recognition with the MNIST data set and jet identification with simulated proton-proton collisions at the CERN Large Hadron Collider. The binary and ternary implementation has similar performance to the higher precision implementation while using drastically fewer FPGA resources.
- Is Part Of:
- Machine learning: science and technology. Volume 2:Issue 1(2021)
- Journal:
- Machine learning: science and technology
- Issue:
- Volume 2:Issue 1(2021)
- Issue Display:
- Volume 2, Issue 1 (2021)
- Year:
- 2021
- Volume:
- 2
- Issue:
- 1
- Issue Sort Value:
- 2021-0002-0001-0000
- Page Start:
- Page End:
- Publication Date:
- 2020-12-01
- Subjects:
- high-energy physics -- fast machine learning inference -- FPGAs -- quantized neural networks
006.31 - Journal URLs:
- https://iopscience.iop.org/journal/2632-2153 ↗
- DOI:
- 10.1088/2632-2153/aba042 ↗
- Languages:
- English
- ISSNs:
- 2632-2153
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library HMNTS - ELD Digital store
- Ingest File:
- 15439.xml