arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.13334cs.LGcs.CVcs.PL
收藏

基于Lipschitz的浮点执行下的鲁棒性认证

Lipschitz-Based Robustness Certification Under Floating-Point Execution

University of Melbourne(墨尔本大学)

Toby Murray

AI总结:

本文提出基于Lipschitz的鲁棒性认证方法,解决浮点执行与精确实数运算之间的语义差距问题,通过理论分析和实验证明其在神经网络中的有效性。

摘要:

基于灵敏度的鲁棒性认证已成为验证神经网络鲁棒性的一种实用方法,尤其在需要可验证保证的场景中。这些方法的主要优势在于通过具体的数值计算(而非符号推理)进行认证,并且能够高效地扩展到网络规模。然而,与大多数先前的鲁棒性认证和验证工作类似,这些方法的正确性通常是在假设精确实数运算的语义模型下证明的。在实际部署的神经网络实现中,使用的是浮点运算。这种不匹配导致了认证鲁棒性属性与执行系统行为之间的语义鸿沟。作为动机证据,我们展示了具体的反例,表明在浮点执行下,实数运算的鲁棒性保证可能失效,即使对于之前已验证的认证器也是如此。在较低精度格式如float16下,差异尤为明显,并且在对抗性构造的模型下,可以达到具有语义意义的扰动半径。我们随后开发了一个正式的、组合性的理论,将实数运算的Lipschitz基于灵敏度界限与标准舍入误差模型下的浮点执行灵敏度联系起来,专门针对具有ReLU激活函数的前馈神经网络。我们推导了在浮点执行下的鲁棒性条件,包括证书退化界限和无溢出的充分条件。我们正式化了该理论及其主要正确性结果,并实现了基于这些原则的可执行认证器,通过实验证明其实用性。

英文摘要:

Lipschitz-based certification checks a neural network's robustness with a small numerical computation: milliseconds per input, and small enough to be formally verified. Its soundness is proved for execution in real arithmetic, whereas deployed networks execute in floating point, so rounding must be accounted for in the network and in the certifier itself. We show that the conservatism of Lipschitz-based certification does not absorb the rounding in the network's execution: we exhibit counterexamples to a formally verified real-arithmetic certifier that computes in exact arithmetic, and show that an adversary who controls the weights can make it issue false certificates for ordinary test images at standard perturbation bounds. We present the first Lipschitz-based certification method that is both efficient and sound with respect to floating-point execution. It keeps the real-arithmetic network's Lipschitz constant and bounds separately how far the floating-point outputs can depart from the real-arithmetic ones, through a compositional theory of the deviation that also rules out overflow; pre-deployment measurements of a high-precision execution tighten the bound. Its spectral norms come from a float64 Gram iteration proved never to under-estimate the true norm. We mechanise the theory in Rocq and implement it in a certifier, evaluated on dense image, tabular and many-class classifiers. It rejects every certificate a counterexample refutes and certifies entire test sets at milliseconds per instance on a CPU, losing relatively few real-arithmetic certificates, many of which the measurement reclaims. At float32, ERAN's GPUPoly, to our knowledge the only other public floating-point-sound verifier for networks of our size, loses most of its certificates on most of our models to its own rounding accounting; ours does not, and is more than an order of magnitude faster.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑