eXpLogic: Explaining Logic Types and Patterns in DiffLogic Networks

Stephen E. Wormald, David Selasi Koblah, Matheus Kunzler Maldaner, Domenic Forte, Damon L. WoodardarXiv 2025 · DOI

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.

Overview of the eXpLogic framework, highlighting local explanations, function representations, and network reduction.

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.

Visual results of eXpLogic, including function explanations (a), MiniNet conversion (b), error analysis (c), and saliency comparisons (d).

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

BibTeX
@misc{wormald2025explogic,
  author = {Stephen E. Wormald and David Selasi Koblah and Matheus Kunzler Maldaner and Domenic Forte and Damon L. Woodard},
  title = {{eXpLogic: Explaining Logic Types and Patterns in DiffLogic Networks}},
  year = {2025},
  eprint = {2503.09910},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.09910},
}
Figure