Introduction
Deep Neural Networks (DNNs) have achieved remarkable success across diverse domains, yet their internal decision-making processes remain largely opaque. Traditional eXplainable AI (XAI) techniques, such as SHAP or LIME, primarily focus on feature attribution—assigning importance scores to individual input features. However, these methods often fail to capture the underlying inference logic: the complex ways in which features interact to drive a model's output. This technical note outlines a framework for quantifying these interactions through the lens of symbolic AND and OR logic, providing explanations that are both mathematically faithful to the model and concise enough for human interpretation.
The Problem: Beyond Feature Attribution
The fundamental limitation of standard attribution methods is their inability to represent feature collaboration. For instance, in natural language processing, the phrase "take it easy" carries a specific semantic meaning that is lost if the words are analyzed in isolation. While an attribution map might highlight all three words as "important," it does not explicitly reveal that the model's decision depends on their simultaneous presence (an AND interaction).
To truly decode a DNN, we must move beyond "which features matter" to "how features collaborate." The challenge lies in defining a mathematical framework that can extract these relationships while maintaining two critical properties:
- Faithfulness: The ability to accurately reconstruct the model's output from the extracted interactions.
- Conciseness: Limiting the explanation to a human-interpretable number of salient concepts rather than millions of potential combinations.
Methodology: AND-OR Interaction Logic
The proposed framework decomposes model outputs into two primary types of symbolic interactions:
1. AND Interactions
Rooted in the game-theoretic concept of Harsanyi dividends, an AND interaction represents an effect triggered only when a specific set of variables is present. If any single variable within the set is masked or missing, the interaction effect vanishes. The authors posit that the Harsanyi dividend is the unique metric capable of satisfying the faithfulness requirement for AND logic.
2. OR Interactions
Conversely, OR interactions capture redundancy or alternative triggers. An OR interaction represents an effect that is activated if any variable within a defined set appears. This is crucial for understanding models that have learned multiple pathways to the same conclusion.
3. Disentanglement and Sparsity
A significant hurdle in interaction analysis is the exponential growth of potential interactions ($2^n$ for $n$ inputs). To address this, the authors employ a Lasso-based optimization to disentangle the model's output into a sparse mixture of AND and OR interactions. By introducing a small approximation error ($\epsilon$), the framework can filter out "noisy" interactions with negligible impact, leaving only the "salient symbolic concepts" that define the core logic.
Mathematical Foundations and Axiomatic Support
The framework is built upon a rigorous theoretical foundation. The AND interaction metric is shown to satisfy five essential game-theoretic axioms, ensuring the trustworthiness of the explanation:
- Efficiency: The sum of all interactions equals the model's total output.
- Linearity: The interactions of a sum of functions equal the sum of the interactions.
- Dummy: Variables with no impact have zero interaction value.
- Symmetry: If two variables contribute identically, their interactions are equal.
- Anonymity: The interaction value is independent of the variable's index.
Furthermore, this method serves as a granular generalization of established XAI tools, connecting interaction utilities to the Shapley value, the Shapley interaction index, and the Shapley Taylor interaction index.
Applications and Empirical Verification
While this note focuses on the theoretical framework, the methodology has been validated through various applications in the authors' primary studies:
- Game Logic (QiGan): Explaining the strategic logic encoded by DNNs playing the game of Go.
- Sentiment Analysis: Demonstrating how specific word combinations (e.g., "this movie is boring and disappointing") form logical units that drive sentiment classification.
Limitations and Future Outlook
Despite its theoretical strengths, several challenges remain. The computational complexity of searching the $2^n$ interaction space is significant for high-dimensional data like high-resolution images. Additionally, the quantification of interactions is sensitive to the choice of "baseline values" used for masking features (e.g., using black pixels vs. mean color). Future research is needed to conduct human-centric evaluations to confirm whether these symbolic AND-OR concepts are more intuitive for non-experts than traditional heatmaps.
Conclusion
By shifting the focus from individual feature importance to symbolic logical interactions, this framework provides a more nuanced and faithful representation of DNN inference. The ability to decompose complex model behavior into a concise set of AND and OR operations represents a significant step toward making "black box" models truly transparent and accountable.
Summary updated