Formalizing Piecewise Affine Activation Functions of Neural Networks in COQ

被引:4
作者
Aleksandrov, Andrei [1 ]
Voellinger, Kim [1 ]
机构
[1] Tech Univ Berlin, Berlin, Germany
来源
NASA FORMAL METHODS, NFM 2023 | 2023年 / 13903卷
关键词
Piecewise Affine Function; Neural Network; Interactive Theorem Prover; Coq; Verification;
D O I
10.1007/978-3-031-33170-1_4
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Verification of neural networks relies on activation functions being piecewise affine (pwa)-enabling an encoding of the verification problem for theorem provers. In this paper, we present the first formalization of pwa activation functions for an interactive theorem prover tailored to verifying neural networks within Coq using the library Coquelicot for real analysis. As a proof-of-concept, we construct the popular pwa activation function ReLU. We integrate our formalization into a Coq model of neural networks, and devise a verified transformation from a neural network N to a pwa function representing N by composing pwa functions that we construct for each layer. This representation enables encodings for proof automation, e.g. Coq's tactic lra - a decision procedure for linear real arithmetic. Further, our formalization paves the way for integrating Coq in frameworks of neural network verification as a fallback prover when automated proving fails.
引用
收藏
页码:62 / 78
页数:17
相关论文
共 33 条
[1]  
Aggarwal C.C., 2021, Neural Networks, P211
[2]   Effect of Web atmospherics and satisfaction on purchase behavior: stimulus-organism-response model [J].
Albarq, Abbas N. .
FUTURE BUSINESS JOURNAL, 2021, 7 (01)
[3]  
Bagnall A, 2019, AAAI CONF ARTIF INTE, P2662
[4]  
Bai J., 2019, ONNX: Open Neural Network Exchange
[5]   A Formal Proof of the Expressiveness of Deep Learning [J].
Bentkamp, Alexander ;
Blanchette, Jasmin Christian ;
Klakow, Dietrich .
JOURNAL OF AUTOMATED REASONING, 2019, 63 (02) :347-368
[6]   Coquelicot: A User-Friendly Library of Real Analysis for Coq [J].
Boldo, Sylvie ;
Lelay, Catherine ;
Melquiond, Guillaume .
MATHEMATICS IN COMPUTER SCIENCE, 2015, 9 (01) :41-62
[7]  
Botoeva E, 2020, AAAI CONF ARTIF INTE, V34, P3291
[8]   Verifying Feedforward Neural Networks for Classification in Isabelle/HOL [J].
Brucker, Achim D. ;
Stell, Amy .
FORMAL METHODS, FM 2023, 2023, 14000 :427-444
[9]  
Bunel R, 2018, ADV NEUR IN, V31
[10]  
Calin O, 2020, SPRINGER SER DATA SC, P1, DOI 10.1007/978-3-030-36721-3