arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.13700cs.LO
收藏

用 Coq 形式化驯服可微逻辑

Taming Differentiable Logics with Coq Formalisation

Reynald Affeldt, Alessandro Bruni, Ekaterina Komendantskaya, Natalia Ślusarz, Kathrin Stark

AI总结:

本文利用 Coq 与 Mathematical Components 对现有可微逻辑进行统一形式化,验证其语义、可靠性、组合性及相关性质,并发现既往错误,为机器学习验证的语言支持奠定基础。

摘要:

为了机器学习中的性能与验证,近来人们提出了一些新方法,通过优化学习系统使其满足以形式化方式表达的逻辑性质。在这些方法中,可微逻辑(DLs)被用于将命题逻辑或一阶逻辑公式转换为损失函数,并部署到机器学习的优化过程中。与此同时,近期为神经网络验证提供编程语言支持的尝试表明,DLs 可用于将验证性质编译到机器学习后端。这一形势要求对此类编译器的可靠性、DLs 的可靠性与组合性,以及所得损失函数的可微性和性能提供更强的保证。本文提出一种在 Coq 证明助手中使用 Mathematical Components 库对现有 DLs 进行形式化的方法。借助该形式化,我们能够为原本彼此分散的 DLs 给出统一语义,为现有的非形式化论证提供形式化证明,发现先前工作中的错误,并为缺失的、被猜想成立的性质提供形式化证明。本工作旨在成为开发面向机器学习验证的编程语言支持的垫脚石。

英文摘要:

For performance and verification in machine learning, new methods have recently been proposed that optimise learning systems to satisfy formally expressed logical properties. Among these methods, differentiable logics (DLs) are used to translate propositional or first-order formulae into loss functions deployed for optimisation in machine learning. At the same time, recent attempts to give programming language support for verification of neural networks showed that DLs can be used to compile verification properties to machine-learning backends. This situation is calling for stronger guarantees about the soundness of such compilers, the soundness and compositionality of DLs, and the differentiability and performance of the resulting loss functions. In this paper, we propose an approach to formalise existing DLs using the Mathematical Components library in the Coq proof assistant. Thanks to this formalisation, we are able to give uniform semantics to otherwise disparate DLs, give formal proofs to existing informal arguments, find errors in previous work, and provide formal proofs to missing conjectured properties. This work is meant as a stepping stone for the development of programming language support for verification of machine learning.

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

↑