From Constraints to Causality: Petri net Encodings for Explaining Binary Neural Network Inference
Alex Chan, Mohamed Tarraf, Alex Yakovlev, Rishad Shafik
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.
Create a lesson
Related papers
Compact MaxSAT Encodings for Balanced Waiting in B2B Meeting Scheduling
Shared title terminology · Tuyen Van Kieu, Long Duc Nguyen, Minh Duc Dang Vu et al.
Wave-Domain Semantic ISAC: Holographic Surfaces as Analog Semantic Encoders for Integrated TN-NTN
Shared title terminology · Shadi Danesh, Pooria Salami, Hesaam Zaravashan et al.
A polynomial-size logical twin for neural networks
Shared title terminology · Sandro Preto, Marcelo Finger
On Deciding the Constraint Loop Problem in Dimension Two
Shared title terminology · Daria Goliasova, Toghrul Karimov
Solving quantified constraint satisfaction problems with applications to control
Shared title terminology · Éric Goubault, Nuwan Herath Mudiyanselage, Sylvie Putot
Learning Erasing Equal-Length Relational Pattern Languages in the Limit from Positive Data over Binary Alphabets
Shared title terminology · S. Mahmoud Mousawi, Sandra Zilles