How Can Petri Nets Explain What Binary Neural Networks Actually Compute?
Binary neural networks use only two values for weights and activations, making them compact enough for tiny chips in autonomous devices. Their discrete logic resists standard analysis tools, so engineers cannot easily see why a network chooses one output over another.
Why Binary Networks Resist Inspection
Binary neural networks replace floating-point arithmetic with single-bit operations. This makes them attractive for resource-constrained hardware and on-device components in autonomous systems. The trade-off is a discrete, non-linear behaviour that resists standard debugging. Existing approaches based on SAT and Satisfiability Modulo Theories can verify a BNN's input-output properties. They treat the network as a monolithic constraint system. Such verifiers reveal only whether a property holds. They do not show how the computation reaches its result.
A Translation Into Discrete Events
Researchers at Newcastle University propose a compositional translation from the inference semantics of a fixed, trained BNN to a 1-safe Petri net. Each computation step becomes an explicit transition. A firing sequence then forms a causal trace of the BNN's decision. The method does not approximate. It maps the exact inference semantics. The paper presents this as early work. A worked example establishes faithfulness via exhaustive input-output equivalence against a reference implementation. The Petri net encoding is 1-safe, meaning each place holds at most one token. This property bounds the state space but the paper does not quantify the net size relative to the original BNN. The translation works for a fixed, trained network. It does not address training dynamics or weight updates. Whether the approach scales to networks with millions of parameters remains unanswered.
What the Worked Example Reveals
Contrasting firing sequences localises where a single-feature change alters the prediction. This is a structural question that constraint-based verifiers cannot express. The example demonstrates the mechanism on a concrete network. The paper does not report how many networks were tested beyond this example. It does not compare runtime against SAT or SMT solvers.
Two Directions Left Open
The authors outline two directions this opens. First, a correctness-of-translation theorem. Second, a causal-trace analysis of where two trained BNNs diverge in their decisions. Neither is proven in the current version. The paper appears in Proceedings FMAS 2026, published as EPTCS 457, 2026, pages 1–9. The submission date is 17 November 2026. The file size is 188 KB.
The sources this article was written from
- "arXiv:2611.22396v1
https://arxiv.org/abs/2611.22396v1"