Sound Mixed Fixed-Point Quantization of Neural Networks

Author:

Lohar Debasmita1ORCID,Jeangoudoux Clothilde2ORCID,Volkova Anastasia3ORCID,Darulova Eva4ORCID

Affiliation:

1. MPI-SWS, Saarland Informatics Campus, Germany

2. MPI-SWS, Germany

3. Nantes Université, France

4. Uppsala University, Sweden

Abstract

Neural networks are increasingly being used as components in safety-critical applications, for instance, as controllers in embedded systems. Their formal safety verification has made significant progress but typically considers only idealized real-valued networks. For practical applications, such neural networks have to be quantized, i.e., implemented in finite-precision arithmetic, which inevitably introduces roundoff errors. Choosing a suitable precision that is both guaranteed to satisfy a roundoff error bound to ensure safety and that is as small as possible to not waste resources is highly nontrivial to do manually. This task is especially challenging when quantizing a neural network in fixed-point arithmetic, where one can choose among a large number of precisions and has to ensure overflow-freedom explicitly. This paper presents the first sound and fully automated mixed-precision quantization approach that specifically targets deep feed-forward neural networks. Our quantization is based on mixed-integer linear programming (MILP) and leverages the unique structure of neural networks and effective over-approximations to make MILP optimization feasible. Our approach efficiently optimizes the number of bits needed to implement a network while guaranteeing a provided error bound. Our evaluation on existing embedded neural controller benchmarks shows that our optimization translates into precision assignments that mostly use fewer machine cycles when compiled to an FPGA with a commercial HLS compiler than code generated by (sound) state-of-the-art. Furthermore, our approach handles significantly more benchmarks substantially faster, especially for larger networks.

Funder

CominLabs Excellence Laboratory

National Research Agency

Publisher

Association for Computing Machinery (ACM)

Subject

Hardware and Architecture,Software

Reference55 articles.

1. 2020. ARCH-COMP2020 Github Repository. (2020).https://github.com/verivital/ARCH-COMP2020

2. Assalé Adjé, Dorra Ben Khalifa, and Matthieu Martel. 2021. Fast and efficient bit-level precision tuning. In SAS.

3. Adolfo Anta, Rupak Majumdar, Indranil Saha, and Paulo Tabuada. 2010. Automatic verification of control system implementations. In EMSOFT.

4. Christian Artigues, Oumar Koné, Pierre Lopez, and Marcel Mongeau. 2015. Mixed-integer linear programming formulations. In Handbook on Project Management and Scheduling Vol. 1. Springer, 17–41.

5. Marek Baranowski, Shaobo He, Mathias Lechner, Thanh Son Nguyen, and Zvonimir Rakamarić. 2020. An SMT theory of fixed-point arithmetic. In IJCAR. Springer.

Cited by 1 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Efficient Implementation of Neural Networks Usual Layers on Fixed-Point Architectures;Proceedings of the 25th ACM SIGPLAN/SIGBED International Conference on Languages, Compilers, and Tools for Embedded Systems;2024-06-20

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3