# From Constraints to Causality: Petri net Encodings for Explaining Binary Neural Network Inference

arXiv: https://arxiv.org/abs/2611.22396 · HTML: https://mlsanity.com/paper/2611.22396/

## Key facts

- No citing papers in the map yet (data through 24 Nov 2026).
- Builds on 11 of its 20 references that are in the map.
- Submitted 17 Nov 2026, announced 18 Nov 2026.

## Builds on (most cited first, 11 of 11)

- [A Unified Approach to Interpreting Model Predictions](https://mlsanity.com/paper/1705.07874/) (2017)
- ["Why Should I Trust You?": Explaining the Predictions of Any Classifier](https://mlsanity.com/paper/1602.04938/) (2016)
- [Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPR](https://mlsanity.com/paper/1711.00399/) (2017)
- [FINN: A Framework for Fast, Scalable Binarized Neural Network Inference](https://mlsanity.com/paper/1612.07119/) (2016)
- [Verifying Properties of Binarized Deep Neural Networks](https://mlsanity.com/paper/1709.06662/) (2017)
- [Efficient Exact Verification of Binarized Neural Networks](https://mlsanity.com/paper/2005.03597/) (2020)
- [Binary DAD-Net: Binarized Driveable Area Detection Network for Autonomous Driving](https://mlsanity.com/paper/2006.08178/) (2020)
- [Seeking Interpretability and Explainability in Binary Activated Neural Networks](https://mlsanity.com/paper/2209.03450/) (2022)
- [Arrhythmia Classifier Based on Ultra-Lightweight Binary Neural Network](https://mlsanity.com/paper/2304.01568/) (2023)
- [Minimizing Classification Energy of Binarized Neural Network Inference for Wearable Devices](https://mlsanity.com/paper/1903.11381/) (2019)
- [Self-timed Reinforcement Learning using Tsetlin Machine](https://mlsanity.com/paper/2109.00846/) (2021)

## Abstract (arXiv)

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.
