将传统不透明的二进制神经网络事件化为1安全Petri网模型
Eventizing Traditionally Opaque Binary Neural Networks as 1-safe Petri net Models
AI总结:
本研究提出基于Petri网的框架,将二进制神经网络事件化以实现因果透明性和形式化验证,提升其在安全关键领域的应用能力。
摘要:
二进制神经网络(BNNs)通过将权重和激活值限制为二进制值,提供了一种低复杂度且节能的替代方案,用于传统全精度神经网络。然而,其离散且高度非线性的行为使它们难以解释、验证和形式化验证。因此,BNNs仍然大多不透明,限制了其在安全关键领域中的应用,因为在这些领域中因果透明性和行为保证是至关重要的。在本工作中,我们引入了一个基于Petri网(PN)的框架,该框架将BNN的内部操作作为事件驱动过程来捕捉。通过将它们的操作“事件化”,我们暴露了它们的因果关系和依赖性,以对并发性、顺序性和状态演变进行细粒度分析。在此,我们构建了模块化的PN蓝图,用于核心BNN组件,包括激活、梯度计算和权重更新,并将它们组合成一个完整的系统级模型。然后,我们将构建的PN与参考软件基于的BNN进行验证,通过可达性和结构检查来建立1安全性,无死锁,互斥和正确性由构造的因果序列。最后,我们使用Workcraft中的自动化测量工具,在段、组件和系统级别评估其可扩展性和复杂性。总体而言,该框架使能够对透明且事件驱动的BNN进行因果内省,这些BNN适合形式推理和验证。
英文摘要:
Binary Neural Networks (BNNs) offer a low-complexity and energy-efficient alternative to traditional full-precision neural networks by constraining their weights and activations to binary values. However, their discrete, highly non-linear behavior makes them difficult to explain, validate and formally verify. As a result, BNNs remain largely opaque, limiting their suitability in safety-critical domains, where causal transparency and behavioral guarantees are essential. In this work, we introduce a Petri net (PN)-based framework that captures the BNN's internal operations as event-driven processes. By "eventizing" their operations, we expose their causal relationships and dependencies for a fine-grained analysis of concurrency, ordering, and state evolution. Here, we construct modular PN blueprints for core BNN components including activation, gradient computation and weight updates, and compose them into a complete system-level model. We then validate the composed PN against a reference software-based BNN, verify it against reachability and structural checks to establish 1-safeness, deadlock-freeness, mutual exclusion and correct-by-construction causal sequencing, before we assess its scalability and complexity at segment, component, and system levels using the automated measurement tools in Workcraft. Overall, this framework enables causal introspection of transparent and event-driven BNNs that are amenable to formal reasoning and verification.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。