在Coq中形式化神经网络的分段仿射激活函数
Formalizing Piecewise Affine Activation Functions of Neural Networks in Coq
摘要:
神经网络的验证依赖于激活函数是分段仿射的(pwa)--使得定理证明者能够对验证问题进行编码。在本文中,我们提出了第一个形式化的pwa激活函数的交互式定理证明器,用于验证神经网络内Coq库Coquelicot真正的分析。作为概念验证,我们构建了流行的pwa激活函数ReLU。我们将我们的形式化到一个Coq模型的神经网络,并设计了一个验证的转换从一个神经网络N到一个PWA功能表示N组成PWA功能,我们构造的每一层。这种表示使编码证明自动化,例如Coq的战术lra -线性实数算术的决策过程。此外,我们的形式化铺平了道路,集成Coq的框架中的神经网络验证作为后备证明时,自动证明失败。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。