Automatic heterogeneous quantization of deep neural networks for low-latency inference on the edge for particle detectors
Open accessThe DOI matches its Crossref record; 51 of the 51 references it cites were found in a registry or an index.
Abstract
Although the quest for more accurate solutions is pushing deep learning research towards larger and more complex algorithms, edge devices demand efficient inference and therefore reduction in model size, latency and energy consumption. One technique to limit model size is quantization, which implies using fewer bits to represent weights and biases. Such an approach usually results in a decline in performance. Here, we introduce a method for designing optimally heterogeneously quantized versions of deep neural network models for minimum-energy, high-accuracy, nanosecond inference and fully automated deployment on chip. With a per-layer, per-parameter type automatic quantization procedure, sampling from a wide range of quantizers, model energy consumption and size are minimized while high accuracy is maintained. This is crucial for the event selection procedure in proton–proton collisions at the CERN Large Hadron Collider, where resources are strictly limited and a latency of O(1)μs\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\mathcal{O}}(1)\,\upmu{\rm{s}}$$\end{document} is required. Nanosecond inference and a resource consumption reduced by a factor of 50 when implemented on field-programmable gate array hardware are achieved. With edge computing on custom hardware, real-time inference with deep neural networks can reach the nanosecond timescale. An important application in this regime is event processing at particle collision detectors like those at the Large Hadron Collider (LHC). To ensure high performance as well as reduced resource consumption, a method is developed, and made available as an extension of the Keras library, to automatically design optimal quantization of the different layers in a deep neural network.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Deep Residual Learning for Image Recognition
He, K., Zhang, X., Ren, S., & Sun, J. (2016) · 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr.2016.90 · Cited by 235,474 · cited 3×
“For larger convolutional architectures like ResNet [66], hls4ml doesn’t scale due to the very low latency target.”
InfluentialPyTorch: An Imperative Style, High-Performance Deep Learning Library
Paszke, A., Gross, S., Massa, F., Lerer, A., Bradbury, J., Chanan, G., Killeen, T., Lin, Z., Gimelshein, N., Antiga, L., et al. (2019) · arXiv · doi:10.48550/arxiv.1912.01703 · Cited by 31,473 · cited 1×
“An ultra-compressed deep neural network for particle identification on a Xilinx FPGA.”
MobileNetV2: Inverted Residuals and Linear Bottlenecks
Sandler, M., Howard, A., Zhu, M., Zhmoginov, A., & Chen, L.-C. (2018) · 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition · doi:10.1109/cvpr.2018.00474 · Cited by 28,755
MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications
Howard, A. G., Zhu, M., Chen, B., Kalenichenko, D., Wang, W., Weyand, T., Andreetto, M., & Adam, H. (2017) · arXiv · doi:10.48550/arxiv.1704.04861 · Cited by 19,015 · cited 1×
“For larger NNs using a higher reuse factor, and longer latency, BRAM may also be used to store model weights.”
Howard, A., Sandler, M., Chen, B., Wang, W., Chen, L.-C., Tan, M., Chu, G., Vasudevan, V., Zhu, Y., Pang, R., et al. (2019) · 2019 IEEE/CVF International Conference on Computer Vision (ICCV) · doi:10.1109/iccv.2019.00140 · Cited by 9,708 · cited 3×
“Our main application is the efficient implementation of smaller, custom models targeting latencies of O(10) ns to O(1) μs.”
ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Design
Ma, N., Zhang, X., Zheng, H.-T., & Sun, J. (2018) · Lecture notes in computer science · doi:10.1007/978-3-030-01264-9_8 · Cited by 7,356
SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and <0.5MB model size
Iandola, F. N., Han, S., Moskewicz, M. W., Ashraf, K., Dally, W. J., & Keutzer, K. (2016) · arXiv · doi:10.48550/arxiv.1602.07360 · Cited by 6,201
XNOR-Net: ImageNet Classification Using Binary Convolutional Neural Networks
Rastegari, M., Ordonez, V., Redmon, J., & Farhadi, A. (2016) · Lecture Notes in Computer Science · doi:10.1007/978-3-319-46493-0_32 · Cited by 4,408 · cited 1×
“Two LogicNets models have been evaluated: One using the same architecture as in this paper, JSC-M, and another using a larger architecture (32, 64, 192, 192, 16 number of neurons), JSC-L.”
Reading digits in natural images with unsupervised feature learning
Netzer, Y. (2024) · doi:10.57702/e7wwo0zk · Cited by 4,149
Channel Pruning for Accelerating Very Deep Neural Networks
He, Y., Zhang, X., & Sun, J. (2017) · 2017 IEEE International Conference on Computer Vision (ICCV) · doi:10.1109/iccv.2017.155 · Cited by 2,647 · cited 1×
“This includes compact network design [6–10], weight and filter pruning [11, 12] or quantization.”
Advances in Neural Information Processing Systems 27 (NIPS 2014)
Zhong, M., Goddard, N., & Sutton, C. A. (2014) · Cited by 2,636
BinaryConnect: Training Deep Neural Networks with binary weights during propagations
Courbariaux, M., Bengio, Y., & David, J.-P. (2015) · arXiv · doi:10.48550/arxiv.1511.00363 · Cited by 2,180
1.1 Computing's energy problem (and what we can do about it)
Horowitz, M. (2014) · 2014 IEEE International Solid-State Circuits Conference Digest of Technical Papers (ISSCC) · doi:10.1109/isscc.2014.6757323 · Cited by 2,069
DoReFa-Net: Training Low Bitwidth Convolutional Neural Networks with Low Bitwidth Gradients
Zhou, S., Wu, Y., Ni, Z., Zhou, X., Wen, H., & Zou, Y. (2016) · arXiv · doi:10.48550/arxiv.1606.06160 · Cited by 1,690 · cited 1×
“This allows compression of the model size, but to some extent sacrifices accuracy.”
Deep Learning with Limited Numerical Precision
Gupta, S., Agrawal, A., Gopalakrishnan, K., & Narayanan, P. (2015) · arXiv · doi:10.48550/arxiv.1502.02551 · Cited by 1,364 · cited 1×
“[71] suggested using stochastic rounding, which uses the fractional part of the number as a probability to round the number up or down.”
FINN: A Framework for Fast, Scalable Binarized Neural Network Inference
Umuroglu, Y., Fraser, N. J., Gambardella, G., Blott, M., Leong, P., Jahre, M., & Vissers, K. (2017) · Proceedings of the 2017 ACM/SIGDA International Symposium on Field-Programmable Gate Arrays · doi:10.1145/3020078.3021744 · Cited by 1,189 · cited 2×
“Closely related to the work presented here are the FINN [44] and FINN-R [45] frameworks from Xilinx Research Labs, which aim to deploy quantized neural networks on Xilinx FPGAs.”
Micikevicius, P., Narang, S., Alben, J., Diamos, G., Elsen, E., Garcia, D., Ginsburg, B., Houston, M., Kuchaiev, O., Venkatesh, G., et al. (2017) · arXiv · doi:10.48550/arxiv.1710.03740 · Cited by 1,179
HAQ: Hardware-Aware Automated Quantization With Mixed Precision
Wang, K., Liu, Z., Lin, Y., Lin, J., & Han, S. (2019) · 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr.2019.00881 · Cited by 978 · cited 2×
“This model was compressed through post-training quantization in order to further reduce the FPGA resource consumption and provides a baseline to measure the benefits of quantization-aware training with heterogeneous quantization, over post-training quantization.”
To prune, or not to prune: exploring the efficacy of pruning for model compression
Zhu, M., & Gupta, S. (2017) · arXiv · doi:10.48550/arxiv.1710.01878 · Cited by 805 · cited 2×
“This model has 70% of its weights set to zero through an iterative process where small weights are removed using the TensorFlow Pruning API [59], following what was done in Ref.”
LQ-Nets: Learned Quantization for Highly Accurate and Compact Deep Neural Networks
Zhang, D., Yang, J., Ye, D., & Hua, G. (2018) · Lecture Notes in Computer Science · doi:10.1007/978-3-030-01237-3_23 · Cited by 693
Data-Free Quantization Through Weight Equalization and Bias Correction
Nagel, M., Baalen, M. V., Blankevoort, T., & Welling, M. (2019) · 2019 IEEE/CVF International Conference on Computer Vision (ICCV) · doi:10.1109/iccv.2019.00141 · Cited by 500
FPGA-Based Accelerators of Deep Learning Networks for Learning and Classification: A Review
Shawahna, A., Sait, S. M., & El-Maleh, A. (2019) · IEEE Access · doi:10.1109/access.2018.2890150 · Cited by 496
HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
Dong, Z., Yao, Z., Gholami, A., Mahoney, M., & Keutzer, K. (2019) · 2019 IEEE/CVF International Conference on Computer Vision (ICCV) · doi:10.1109/iccv.2019.00038 · Cited by 492 · cited 1×
“Here, a dataset [58] for the discrimination of jets , a collimated spray of particles, stemming from the decay and/or hadronization of five different particles was presented.”
FINN- R: An End-to-End Deep-Learning Framework for Fast Exploration of Quantized Neural Networks
Blott, M., Preußer, T. B., Fraser, N. J., Gambardella, G., O’brien, K., Umuroglu, Y., Leeser, M., & Vissers, K. (2018) · ACM Transactions on Reconfigurable Technology and Systems · doi:10.1145/3242897 · Cited by 446
Fast inference of deep neural networks in FPGAs for particle physics
Duarte, J., Han, S., Harris, P., Jindariani, S., Kreinar, E., Kreis, B., Ngadiuba, J., Pierini, M., Rivera, R., Tran, N., et al. (2018) · Journal of Instrumentation · doi:10.1088/1748-0221/13/07/p07027 · Cited by 443
Self-citationFrom high-level deep neural models to FPGAs
Sharma, H., Park, J., Mahajan, D., Amaro, E., Kim, J. K., Shao, C., Mishra, A., & Esmaeilzadeh, H. (2016) · 2016 49th Annual IEEE/ACM International Symposium on Microarchitecture (MICRO) · doi:10.1109/micro.2016.7783720 · Cited by 365 · cited 1×
“For instance, high-frequency trading machine learning (ML) algorithms are running on field-programmable gate arrays (FPGAs) to make decisions within nanoseconds [3].”
AI Benchmark: Running Deep Neural Networks on Android Smartphones
Ignatov, A., Timofte, R., Chou, W., Wang, K., Wu, M., Hartley, T., & Van Gool, L. (2019) · Lecture Notes in Computer Science · doi:10.1007/978-3-030-11021-5_19 · Cited by 347
Guan, Y., Liang, H., Xu, N., Wang, W., Shi, S., Chen, X., Sun, G., Zhang, W., & Cong, J. (2017) · 2017 IEEE 25th Annual International Symposium on Field-Programmable Custom Computing Machines (FCCM) · doi:10.1109/fccm.2017.25 · Cited by 308 · cited 1×
“The FP-DNN [48] framework takes TensorFlow [33]-described DNNs as input and maps them onto FPGAs.”
A high performance FPGA-based accelerator for large-scale convolutional neural networks
Li, H., Fan, X., Jiao, L., Cao, W., Zhou, X., & Wang, L. (2016) · 2016 26th International Conference on Field Programmable Logic and Applications (FPL) · doi:10.1109/fpl.2016.7577308 · Cited by 299 · cited 2×
“This is crucial for the event selection procedure in proton–proton collisions at the CERN Large Hadron Collider, where resources are strictly limited and a latency of O (1) µ s is required.”
[DL] A Survey of FPGA-based Neural Network Inference Accelerators
Guo, K., Zeng, S., Yu, J., Wang, Y., & Yang, H. (2019) · ACM Transactions on Reconfigurable Technology and Systems · doi:10.1145/3289185 · Cited by 292
fpgaConvNet: A Framework for Mapping Convolutional Neural Networks on FPGAs
Venieris, S. I., & Bouganis, C.-S. (2016) · 2016 IEEE 24th Annual International Symposium on Field-Programmable Custom Computing Machines (FCCM) · doi:10.1109/fccm.2016.22 · Cited by 267 · cited 2×
“This is crucial for the event selection procedure in proton–proton collisions at the CERN Large Hadron Collider, where resources are strictly limited and a latency of O (1) µ s is required.”
Towards Effective Low-Bitwidth Convolutional Neural Networks
Zhuang, B., Shen, C., Tan, M., Liu, L., & Reid, I. (2018) · 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition · doi:10.1109/cvpr.2018.00826 · Cited by 251
Fixed-point feedforward deep neural network design using weights +1, 0, and −1
Hwang, K., & Sung, W. (2014) · 2014 IEEE Workshop on Signal Processing Systems (SiPS) · doi:10.1109/sips.2014.6986082 · Cited by 244 · cited 1×
“The final Softmax function has been removed from this estimate.”
Improving Neural Network Quantization without Retraining using Outlier Channel Splitting
Zhao, R., Hu, Y., Dotzel, J., De Sa, C., & Zhang, Z. (2019) · arXiv · doi:10.48550/arxiv.1901.09504 · Cited by 231
Fast convolutional neural networks on FPGAs with hls4ml
Aarrestad, T. K., Lončar, V., Ghielmetti, N., Pierini, M., Summers, S., Ngadiuba, J., Petersson, C., Linander, H., Iiyama, Y., Guglielmo, G. D., et al. (2021) · Machine Learning Science and Technology · doi:10.1088/2632-2153/ac0ea1 · Cited by 228 · cited 1×
“The QTools library provides an additional metric for model tuning when both accuracy and energy consumption, or model size, needs to be considered.”
Self-citationJEDI-net: a jet identification algorithm based on interaction networks
Moreno, E. A., Cerri, O., Duarte, J. M., Newman, H. B., Nguyen, T. Q., Periwal, A., Pierini, M., Serikova, A., Spiropulu, M., & Vlimant, J.-R. (2020) · The European Physical Journal C · doi:10.1140/epjc/s10052-020-7608-4 · Cited by 201
Self-citationToolflows for Mapping Convolutional Neural Networks on FPGAs: A Survey and Future Directions
Venieris, S. I., Kouris, A., & Bouganis, C.-S. (2019) · ACM Computing Surveys · doi:10.1145/3186332 · Cited by 189
LogicNets: Co-Designed Neural Networks and Circuits for Extreme-Throughput Applications
Umuroglu, Y., Akhauri, Y., Fraser, N. J., & Blott, M. (2020) · International Conference on Field Programmable Logic and Applications (FPL) · doi:10.1109/fpl50879.2020.00055 · Cited by 189 · cited 2×
“Smartphone companies are incorporating Artificial Intelligence (AI) chips in their design for on-device inference to improve user experience and tighten data security, and the autonomous vehicle industry is turning to application-specific integrated circuits (ASICs) to keep the latency low.”
Mixed Precision Quantization of ConvNets via Differentiable Neural Architecture Search
Wu, B., Wang, Y., Zhang, P., Tian, Y., Vajda, P., & Keutzer, K. (2018) · arXiv · doi:10.48550/arxiv.1812.00090 · Cited by 186 · cited 1×
“An ultra-compressed deep neural network for particle identification on a Xilinx FPGA.”
Minimum energy quantized neural networks
Moons, B., Goetschalckx, K., Berckelaer, N. V., & Verhelst, M. (2017) · Asilomar Conference on Signals, Systems and Computers (ACSSC) · doi:10.1109/acssc.2017.8335699 · Cited by 184
Compressing deep neural networks on FPGAs to binary and ternary precision with hls4ml
Ngadiuba, J., Lončar, V., Pierini, M., Summers, S., Guglielmo, G. D., Duarte, J., Harris, P. C., Rankin, D. S., Jindariani, S., Liu, M., et al. (2020) · Machine Learning Science and Technology · doi:10.1088/2632-2153/aba042 · Cited by 152
Self-citationGlobal Sparse Momentum SGD for Pruning Very Deep Neural Networks
Ding, X., Ding, G., Zhou, X., Guo, Y., Han, J., & Liu, J. (2019) · Warwick Research Archive Portal (University of Warwick) · doi:10.48550/arxiv.1909.12778 · Cited by 124 · cited 1×
“This includes compact network design [6–10], weight and filter pruning [11, 12] or quantization.”
Mixed Precision Training of Convolutional Neural Networks using Integer Operations
Das, D., Mellempudi, N., Mudigere, D., Kalamkar, D. D., Avancha, S., Banerjee, K., Sridharan, S., Vaidyanathan, K., Kaul, B., Georganas, E., et al. (2018) · arXiv (Cornell University) · doi:10.48550/arxiv.1802.00930 · Cited by 118 · cited 1×
“Two LogicNets models have been evaluated: One using the same architecture as in this paper, JSC-M, and another using a larger architecture (32, 64, 192, 192, 16 number of neurons), JSC-L.”
HAWQ-V2: Hessian Aware trace-Weighted Quantization of Neural Networks
Dong, Z., Yao, Z., Cai, Y., Arfeen, D., Gholami, A., Mahoney, M. W., & Keutzer, K. (2019) · arXiv · doi:10.48550/arxiv.1911.03852 · Cited by 110 · cited 2×
“Here, a dataset [58] for the discrimination of jets , a collimated spray of particles, stemming from the decay and/or hadronization of five different particles was presented.”
Accelerating CNN inference on FPGAs: A Survey
Abdelouahab, K., Pelcat, M., Serot, J., & Berry, F. (2018) · arXiv · doi:10.48550/arxiv.1806.01683 · Cited by 107 · cited 3×
“This is crucial for the event selection procedure in proton–proton collisions at the CERN Large Hadron Collider, where resources are strictly limited and a latency of O (1) µ s is required.”
Iiyama, Y., Cerminara, G., Gupta, A., Kieseler, J., Lončar, V., Pierini, M., Qasim, S. R., Rieger, M., Summers, S., Onsem, G. V., et al. (2021) · Frontiers in Big Data · doi:10.3389/fdata.2020.598927 · Cited by 97
Self-citationSnowflake: An efficient hardware accelerator for convolutional neural networks
Gokhale, V., Zaidy, A., Chang, A. X. M., & Culurciello, E. (2017) · 2017 IEEE International Symposium on Circuits and Systems (ISCAS) · doi:10.1109/iscas.2017.8050809 · Cited by 90 · cited 1×
“At the extreme inference spectrum end of both the low-latency (as in high-frequency trading) and limited-area (as in smartphone applications) is the processing of data from proton-proton collisions at the Large Hadron Collider (LHC) at CERN [4].”
The Architectural Implications of Autonomous Driving: Constraints and Acceleration
Lin, S.-C., Zhang, Y., Hsu, C.-H., Skach, M., Haque, M. E., Tang, L., & Mars, J. (2018) · ACM SIGPLAN Notices · doi:10.1145/3296957.3173191 · Cited by 90
Same, Same But Different - Recovering Neural Network Quantization Error Through Weight Factorization
Meller, E., Finkelstein, A., Almog, U., & Grobman, M. (2019) · arXiv · doi:10.48550/arxiv.1902.01917 · Cited by 60
fpgaConvNet: Automated Mapping of Convolutional Neural Networks on FPGAs (Abstract Only)
Venieris, S. I., & Bouganis, C.-S. (2017) · ACM/SIGDA International Symposium on Field-Programmable Gate Arrays (FPGA) · doi:10.1145/3020078.3021791 · Cited by 45
Hardware Compilation of Deep Neural Networks: An Overview
Zhao, R., Liu, S., Ng, H.-C., Wang, E., Davis, J. J., Niu, X., Wang, X., Shi, H.-F., Constantinides, G. A., Cheung, P. Y. K., et al. (2018) · IEEE International Conference on Application-specific Systems, Architectures and Processors (ASAP) · doi:10.1109/asap.2018.8445088 · Cited by 23 · cited 1×
“At the extreme inference spectrum end of both the low-latency (as in high-frequency trading) and limited-area (as in smartphone applications) is the processing of data from proton-proton collisions at the Large Hadron Collider (LHC) at CERN [4].”
Cited by
Industrial IoT in 5G-and-Beyond Networks: Vision, Architecture, and Design Trends
Mahmood, A., Beltramelli, L., Fakhrul Abedin, S., Zeb, S., Mowla, N. I., Hassan, S. A., Sisinni, E., & Gidlund, M. (2022) · IEEE Transactions on Industrial Informatics · doi:10.1109/tii.2021.3115697 · Cited by 294
Single chip photonic deep neural network with accelerated training
Bandyopadhyay, S., Sludds, A., Krastanov, S., Hamerly, R., Harris, N., Bunandar, D., Streshinsky, M., Hochberg, M., & Englund, D. (2022) · arXiv · doi:10.48550/arxiv.2208.01623 · Cited by 265
“…by processing and learning from sensor readings acquired by LiDAR systems [19]; scientific research in astronomy [20, 21] and particle physics [22] requires rapid analysis of weak signals; and recently introduced “smart” optical transceivers rely on machine learning to receive, process, and…”
Machine Learning for Microcontroller-Class Hardware: A Review
Saha, S. S., Sandha, S. S., & Srivastava, M. (2022) · IEEE Sensors Journal · doi:10.1109/jsen.2022.3210773 · Cited by 253
Single-chip photonic deep neural network with forward-only training
Bandyopadhyay, S., Sludds, A., Krastanov, S., Hamerly, R., Harris, N., Bunandar, D., Streshinsky, M., Hochberg, M., & Englund, D. (2024) · Nature Photonics · doi:10.1038/s41566-024-01567-z · Cited by 201
“…by processing and learning from sensor readings acquired by LiDAR systems [19]; scientific research in astronomy [20, 21] and particle physics [22] requires rapid analysis of weak signals; and recently introduced “smart” optical transceivers rely on machine learning to receive, process, and…”
Zeb, S., Mahmood, A., Hassan, S. A., Piran, M. J., Gidlund, M., & Guizani, M. (2022) · Journal of Network and Computer Applications · doi:10.1016/j.jnca.2021.103309 · Cited by 132
Metadata
- Authors
- Coelho, C. N., Kuusela, A., Li, S., Zhuang, H., Ngadiuba, J., Aarrestad, T. K., Loncar, V., Pierini, M., Pol, A. A., & Summers, S.
- Venue
- Nature Machine Intelligence
- Published
- 2021-06-21
- Volume
- 3
- Issue
- 8
- Pages
- 675-686
- ISSN
- 2522-5839 (ISSN-L)
- OpenAlex
- W3175548485
- Cited by
- 197
- References
- 51
- FWCI
- 11.82
- Type
- journal article
- Language
- en
- Open access
- green
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.