Introduction
Deep Neural Networks (DNNs) are often criticized as "black boxes," posing risks in high-stakes fields like healthcare and defense. While Explainable AI (XAI) offers post-hoc methods like GradCAM or SHAP, these can be misleading by prioritizing visual appeal over true model sensitivity. Recently, "DiffLogic" networks emerged, where nodes learn discrete logic gate operations (AND, OR, XOR, etc.), offering a path toward inherent interpretability.
This paper introduces eXpLogic, a framework that treats neural networks like digital circuits to extract precise explanations. By tracing "activation paths" backward from output nodes to input features—a process known as finding the "fan-in"—eXpLogic provides transparency into local predictions and global functional behaviors.
Methodology
The eXpLogic algorithm leverages the deterministic nature of logic gates to provide several novel capabilities:
- Local Saliency (eXpLogic-L): Unlike gradient-based methods, eXpLogic reveals the exact binary inputs responsible for a decision. It uniquely identifies whether the presence (1) or absence (0) of a feature drove the prediction.
- Function Explanation: By calculating "Signal Probability," the method identifies overarching input patterns that activate specific classes across the dataset.
- SwitchDist Metric: To evaluate saliency maps on discrete models, the authors introduced SwitchDist, which measures the minimum perturbation required along a saliency map's suggested direction to flip a model's prediction.
- MiniNets: The framework can prune irrelevant nodes by isolating the logical fan-in for a specific class, creating highly efficient sub-networks.
Experimental Results
The authors evaluated eXpLogic using a binarized MNIST dataset. The results demonstrate that logic-based tracing avoids common XAI pitfalls like getting stuck in local maxima.
Key Findings
- Superior Saliency: eXpLogic maps outperformed Vanilla Gradients (VG) and Integrated Gradients (IG) on the SwitchDist metric, requiring significantly less perturbation to change model outputs.
- Debugging Capabilities: The ability to highlight the importance of feature absence proved vital for analyzing False Positives and False Negatives, which standard saliency maps often obscure.
- Efficiency Gains: Pruning parent networks into class-specific MiniNets reduced model size by an average of 86% and improved inference speed by 10%. This massive reduction came with a manageable accuracy trade-off, dropping from 98.6% to 94.8%.
Conclusion and Future Work
eXpLogic demonstrates that treating DNNs as digital circuits allows for deterministic, high-fidelity explanations. While currently validated on smaller architectures, the MiniNet concept is particularly promising for resource-constrained edge computing. Future research will focus on scaling these logic-tracing techniques to higher-dimensional datasets and larger network architectures.
Summary updated