从约束到因果:用Petri网编码解释二值神经网络推理
From Constraints to Causality: Petri net Encodings for Explaining Binary Neural Network Inference
该研究提出将训练好的二值神经网络(BNN)推理语义组合式翻译为1-safe Petri网,每个计算步骤对应显式变迁,使触发序列成为BNN决策的因果轨迹。在一个示例上通过穷举输入-输出等价验证了翻译的忠实性,并展示对比触发序列可定位单特征变化改变预测的位置。后续方向包括翻译正确性定理,以及分析两个训练后BNN决策分歧的因果轨迹。
arXiv:2611.22396v1 Announce Type: cross Abstract: Binary Neural Networks (BNNs) are attractive for resource-constrained hardware and on-device components in autonomous systems. However, their discrete, non-linear behaviour makes them difficult to analyse and trust in safety-relevant settings. Existing approaches based on SAT and Satisfiability Modulo Theories can verify a BNN's input-output properties, but treat it as a monolithic constraint system, which reveal only whether a property holds and not how the computation reaches its result. In this paper, we present an early work that provides a complementary, discrete-event view. We give a compositional translation from the inference semantics of a fixed, trained BNN to a 1-safe Petri net (PN), where each computation step is an explicit transition, so that a firing sequence is a causal trace of the BNN's decision. On a worked example, we establish faithfulness via exhaustive input-output equivalence against a reference implementation, and show how contrasting firing sequences localises where a single-feature change alters the prediction. Finally, we outline two directions this opens: a correctness-of-translation theorem, and a causal-trace analysis of where two trained BNNs diverge in their decisions, a structural question that constraint-based verifiers cannot express.
来源:arXiv (AI + Vision + Imaging) · arxiv.org