From Constraints to Causality: Petri net Encodings for Explaining Binary Neural Network Inference
Alex Chan (Newcastle University), Mohamed Tarraf (Newcastle University), Alex Yakovlev (Newcastle University), Rishad Shafik (Newcastle University)
Key points
From the paper's conclusion- 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.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- On the robustness verification of binary neural networksArtificial Intelligence Review · 2026
- Towards Verifying Neural Networks Against Multi-Parameter Bit-Flip PerturbationsarXiv · 2026
- Branch and Bound for Relational Verification of Neural NetworksarXiv · 2026
- BernBRS: Certified Backward Reachability for Deep Bernstein Neural NetworksarXiv · 2026
- From Type to Token: Petri Nets, Individual Token Philosophy, and Individualized Causal EffectsarXiv · 2026
- Petri Net Description of Biological Neural Circuits for Fast Hardware PrototypingarXiv · 2026