Asymmetric feature interaction for interpreting model predictions

Xiaolei Lu, Jianghong Ma, Haode Zhang

Abstract

Deep Neural Networks (DNNs) are often viewed as "black boxes," making it difficult to understand the logic behind their predictions. While feature attribution methods identify individual word importance, they often fail to capture the directional nature of linguistic interactions. We propose Asymmetric Shapley Interaction Value (ASIV), a novel metric that captures how one word specifically modifies another. By constructing directed interaction graphs, ASIV provides more faithful and linguistically intuitive explanations. Our evaluation on SST-2 and Yelp-2 datasets shows that ASIV significantly outperforms existing symmetric interaction baselines in terms of faithfulness and model interpretation.

Introduction

Understanding why a deep learning model makes a specific prediction is a critical challenge in NLP. Existing feature attribution methods, such as standard Shapley values, identify which individual words are important but struggle to explain how words interact. A significant limitation of current interaction metrics is the assumption of symmetry—the idea that the interaction between "not" and "funny" is identical to the interaction between "funny" and "not." In reality, human language is asymmetric; a negation like "not" fundamentally modifies "funny," but the reverse is not true. This paper introduces ASIV to bridge this gap by capturing the inherent directionality of language.

Methodology

The authors propose Asymmetric Shapley Interaction Value (ASIV). Instead of a generic symmetric score, ASIV calculates the marginal contribution of one word set ($T_1$) specifically conditioned on the presence of another set ($T_2$).

Directed Interaction Graphs

Unlike standard undirected graphs, ASIV produces a directed graph where an edge from word $A \to B$ represents how much the presence of $A$ influences $B$'s contribution to the final prediction. This aligns with linguistic structures where modifiers (like "not" or "very") influence the meaning of the words they target.

Comparison of symmetric vs. asymmetric interaction modeling.

Estimation and Ranking

To estimate these values efficiently, the authors investigated three sampling strategies: Marginal Expectation (random sampling), Conditional Expectation (using a language model), and In-domain Expectation (sampling from the training distribution). To simplify these complex graphs into a ranking of influential words, the PageRank algorithm is applied, treating words with many incoming "influence" edges as critical features.

Experimental Results

The researchers evaluated ASIV using BERT and RoBERTa models on two sentiment classification benchmarks: SST-2 (short movie reviews) and Yelp-2 (long restaurant reviews).

Quantitative Performance

ASIV consistently outperformed five state-of-the-art baselines, including HEDGE and Archipelago. On the SST-2 dataset with BERT, ASIV achieved an Area Over the Perturbation Curve (AOPC) of 0.1929, nearly double that of Archipelago (0.1055). A higher AOPC indicates superior identification of the most influential words. Furthermore, ASIV showed lower Log-odds (LOR) scores, confirming its faithfulness to the model's internal logic.

Qualitative Insights

The directed edges in ASIV graphs align closely with human grammar. For example, in a negative prediction, the edge from "not" $\to$ "funny" is significantly stronger than the reverse, correctly identifying "not" as the modifier.

Comparison of ASIV with Bivariate Shapley and Shapley interaction index.

As shown in the figure above, ASIV (a) provides a more nuanced, directed view of interactions compared to Bivariate Shapley (b) or the standard Shapley interaction index (c), which either lack directionality or fail to capture the specific influence of modifiers like "not" on subsequent terms.

Discussion and Conclusion

ASIV demonstrates that modeling asymmetric interactions is crucial for faithful model interpretation. While computationally more expensive than individual attribution, the resulting directed graphs provide a much clearer picture of how models process linguistic structure. Future work will focus on reducing computational complexity and exploring higher-order interactions through hypergraphs to capture relationships between larger phrases or triplets.

Summary updated

BibTeX
@inproceedings{lu2023asymmetric,
  author = {Xiaolei Lu and Jianghong Ma and Haode Zhang},
  title = {{Asymmetric feature interaction for interpreting model predictions}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.286},
}
Figure