Defining and extracting generalizable interaction primitives from DNNs

Lu Chen, Siyu Lou, Benhao Huang, Quanshi Zhang

Explainable AI (XAI) has traditionally relied on saliency maps—heatmaps indicating which input features (like pixels or words) most influence a model's output. However, these maps fail to capture the underlying logic. This paper, presented at ICLR 2024, proposes a shift toward "interaction primitives": symbolic logic patterns (AND/OR relationships) that represent how a model processes information.

The Problem: Brittle Explanations

Previous attempts to extract logic from Deep Neural Networks (DNNs) were often inconsistent. Retraining a model with a different seed or architecture would yield entirely different "logic," suggesting that XAI methods were capturing model-specific noise rather than generalizable task concepts. This lack of generalization indicates that previous methods were overfitting to model-specific quirks.

Methodology: Cross-Model Consensus

The authors utilize the mathematical framework of Harsanyi dividends to decompose DNN outputs into interactions between input variables. To ensure these interactions are meaningful and stable, they introduce three key innovations:

  1. AND-OR Decomposition: Separating effects triggered by all variables in a set (AND) from those triggered by any single variable (OR).
  2. Cross-Model Consensus (Rowmax Loss): By training an ensemble of different models for the same task, they penalize interactions unique to a single model and reward those shared across the ensemble.
  3. Noise Modeling: A learnable error term filters out high-order interactions that are mathematically proven to be sensitive to Gaussian noise, ensuring only robust signals are interpreted as logical primitives.
Figure 1: Conceptual overview of shared vs. distinctive interaction primitives between two DNNs for a sentiment analysis task.

Key Results and Insights

The proposed method significantly improves the generalization of explanations. In sentiment classification tasks using BERT, the overlap between model explanations increased from ~20% to over 50-80% depending on the threshold.

Figure 6: Interaction strength distributions for BERT-base and BERT-large models, illustrating the sparsity and strength of salient interactions.

Key Findings:

  • Simplicity is Stable: "Low-order" interactions (involving only 2 or 3 variables) are much more likely to be shared across architectures than complex, high-order ones.
  • LLM Convergence: Large Language Models (LLMs) like LLaMA share more interactions than smaller models like BERT, suggesting that as models scale, their internal logic becomes more consistent and human-like.
  • Sparsity: Despite the consensus constraint, explanations remain sparse; a tiny fraction of possible interactions (usually <100) is sufficient to approximate the full DNN output.

Conclusion and Future Work

By enforcing consensus across multiple models, this framework extracts stable, symbolic primitives that move XAI closer to human-readable logic. While scaling to larger inputs remains a challenge due to exponential complexity ($2^n$), these primitives offer a promising path for model debugging and out-of-distribution (OOD) detection by identifying which specific logical interactions cause failures on edge cases.

Summary updated

BibTeX
@inproceedings{chen2024defining,
  author = {Lu Chen and Siyu Lou and Benhao Huang and Quanshi Zhang},
  title = {{Defining and extracting generalizable interaction primitives from DNNs}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=OCqyFVFNeF},
}
Figure