An Automata-Theoretic Approach to Synthesizing Binarized Neural Networks

Ye Tao, Wanwei Liu, Fu Song, Zhen Liang, J. Wang, Hongxu Zhu
{"title":"An Automata-Theoretic Approach to Synthesizing Binarized Neural Networks","authors":"Ye Tao, Wanwei Liu, Fu Song, Zhen Liang, J. Wang, Hongxu Zhu","doi":"10.48550/arXiv.2307.15907","DOIUrl":null,"url":null,"abstract":"Deep neural networks, (DNNs, a.k.a. NNs), have been widely used in various tasks and have been proven to be successful. However, the accompanied expensive computing and storage costs make the deployments in resource-constrained devices a significant concern. To solve this issue, quantization has emerged as an effective way to reduce the costs of DNNs with little accuracy degradation by quantizing floating-point numbers to low-width fixed-point representations. Quantized neural networks (QNNs) have been developed, with binarized neural networks (BNNs) restricted to binary values as a special case. Another concern about neural networks is their vulnerability and lack of interpretability. Despite the active research on trustworthy of DNNs, few approaches have been proposed to QNNs. To this end, this paper presents an automata-theoretic approach to synthesizing BNNs that meet designated properties. More specifically, we define a temporal logic, called BLTL, as the specification language. We show that each BLTL formula can be transformed into an automaton on finite words. To deal with the state-explosion problem, we provide a tableau-based approach in real implementation. For the synthesis procedure, we utilize SMT solvers to detect the existence of a model (i.e., a BNN) in the construction process. Notably, synthesis provides a way to determine the hyper-parameters of the network before training.Moreover, we experimentally evaluate our approach and demonstrate its effectiveness in improving the individual fairness and local robustness of BNNs while maintaining accuracy to a great extent.","PeriodicalId":335085,"journal":{"name":"Automated Technology for Verification and Analysis","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-07-29","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Automated Technology for Verification and Analysis","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.48550/arXiv.2307.15907","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Deep neural networks, (DNNs, a.k.a. NNs), have been widely used in various tasks and have been proven to be successful. However, the accompanied expensive computing and storage costs make the deployments in resource-constrained devices a significant concern. To solve this issue, quantization has emerged as an effective way to reduce the costs of DNNs with little accuracy degradation by quantizing floating-point numbers to low-width fixed-point representations. Quantized neural networks (QNNs) have been developed, with binarized neural networks (BNNs) restricted to binary values as a special case. Another concern about neural networks is their vulnerability and lack of interpretability. Despite the active research on trustworthy of DNNs, few approaches have been proposed to QNNs. To this end, this paper presents an automata-theoretic approach to synthesizing BNNs that meet designated properties. More specifically, we define a temporal logic, called BLTL, as the specification language. We show that each BLTL formula can be transformed into an automaton on finite words. To deal with the state-explosion problem, we provide a tableau-based approach in real implementation. For the synthesis procedure, we utilize SMT solvers to detect the existence of a model (i.e., a BNN) in the construction process. Notably, synthesis provides a way to determine the hyper-parameters of the network before training.Moreover, we experimentally evaluate our approach and demonstrate its effectiveness in improving the individual fairness and local robustness of BNNs while maintaining accuracy to a great extent.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
综合二值化神经网络的自动机理论方法
深度神经网络(dnn,又称nn)已广泛应用于各种任务中,并已被证明是成功的。然而,随之而来的昂贵的计算和存储成本使得在资源受限设备中的部署成为一个重要的问题。为了解决这个问题,量化已经成为一种有效的方法,通过将浮点数量化为低宽度的定点表示来降低dnn的成本,同时精度降低很小。量化神经网络(QNNs)已经得到了发展,而二值化神经网络(BNNs)作为一种特殊情况仅限于二值化。对神经网络的另一个担忧是它们的脆弱性和缺乏可解释性。尽管对深度神经网络可信度的研究非常活跃,但针对深度神经网络提出的方法却很少。为此,本文提出了一种自动机理论方法来合成满足指定性质的神经网络。更具体地说,我们定义了一种称为BLTL的时间逻辑作为规范语言。我们证明了每个BLTL公式都可以转化为有限词的自动机。为了解决状态爆炸问题,我们在实际实现中提供了一种基于表的方法。对于合成过程,我们利用SMT求解器在构建过程中检测模型(即BNN)的存在性。值得注意的是,综合提供了一种在训练前确定网络超参数的方法。此外,我们通过实验评估了我们的方法,并证明了其在很大程度上保持准确性的同时提高了bnn的个体公平性和局部鲁棒性的有效性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Fast Equivalence Checking of Quantum Circuits of Clifford Gates An Automata-Theoretic Approach to Synthesizing Binarized Neural Networks Syntactic vs Semantic Linear Abstraction and Refinement of Neural Networks Synthesis of Distributed Protocols by Enumeration Modulo Isomorphisms Minimally Comparing Relational Abstract Domains
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1