Skip to main content
QUICK REVIEW

[Paper Review] Generating Hierarchical Explanations on Text Classification via Feature Interaction Detection

Hanjie Chen, Guangtao Zheng|arXiv (Cornell University)|Apr 4, 2020
Explainable Artificial Intelligence (XAI)Computer Science40 references11 citations
TL;DR

This paper proposes Hedge, a model-agnostic method for generating hierarchical explanations in text classification by detecting feature interactions across multiple granularities. By recursively identifying and splitting text spans based on interaction strength, Hedge produces faithful, interpretable explanations that reveal how words and phrases combine to influence model predictions, outperforming baselines in both automatic and human evaluations on LSTM, CNN, and BERT models.

ABSTRACT

Generating explanations for neural networks has become crucial for their applications in real-world with respect to reliability and trustworthiness. In natural language processing, existing methods usually provide important features which are words or phrases selected from an input text as an explanation, but ignore the interactions between them. It poses challenges for humans to interpret an explanation and connect it to model prediction. In this work, we build hierarchical explanations by detecting feature interactions. Such explanations visualize how words and phrases are combined at different levels of the hierarchy, which can help users understand the decision-making of black-box models. The proposed method is evaluated with three neural text classifiers (LSTM, CNN, and BERT) on two benchmark datasets, via both automatic and human evaluations. Experiments show the effectiveness of the proposed method in providing explanations that are both faithful to models and interpretable to humans.

Motivation & Objective

  • To address the limitation of existing explanation methods that focus only on individual words or phrases, ignoring how they interact in decision-making.
  • To develop a model-agnostic approach that reveals the hierarchical composition of features influencing a model's prediction.
  • To improve human interpretability by visualizing how combinations of words and phrases contribute to predictions at multiple levels of granularity.
  • To evaluate the faithfulness and comprehensibility of explanations through both automated metrics and human evaluation.

Proposed method

  • Hedge uses a top-down, divisive approach to recursively partition text spans based on detected feature interactions.
  • It employs a scoring function to quantify the contribution of each text span to the model’s prediction, based on perturbations and prediction shifts.
  • The method detects the weakest interaction at each step and splits the span accordingly, building a hierarchical tree of feature interactions.
  • The hierarchy captures interactions from coarse to fine granularity, from full sentences down to individual words.
  • The approach is model-agnostic, requiring only model predictions and input text, making it applicable to any black-box classifier.
  • It limits explanation length for human evaluation by selecting top features up to five tokens, improving usability.

Experimental results

Research questions

  • RQ1Can feature interaction detection improve the faithfulness and interpretability of explanations in text classification?
  • RQ2How well can a hierarchical explanation structure reveal the compositional logic behind model predictions compared to flat, word-level explanations?
  • RQ3Does the proposed method outperform existing model-agnostic explanation techniques in human evaluation?
  • RQ4How does the method perform across different neural architectures like LSTM, CNN, and BERT?
  • RQ5Is there a trade-off between model accuracy and explanation coherence, particularly for high-performing models like BERT?

Key findings

  • Hedge achieved the highest coherence score of 0.89 on the IMDB dataset with the LSTM model, outperforming all baselines including LIME (0.85) and SampleShapley (0.78).
  • On BERT, Hedge maintained strong performance with a coherence score of 0.75, despite BERT’s higher accuracy (0.97), suggesting a potential trade-off between accuracy and interpretability.
  • Human evaluators were significantly more likely to correctly guess the model’s prediction from Hedge-generated explanations than from other methods, confirming improved interpretability.
  • Hedge successfully captured complex interactions such as negation (e.g., 'not a bad') in BERT, explaining why it made correct predictions where LSTM failed.
  • The hierarchical structure revealed that words like 'good' were dominated by stronger interactions (e.g., 'waste of good'), providing deeper insight into model reasoning than flat explanations.
  • Experiments on both SST and IMDB datasets confirmed that Hedge’s explanations are both faithful to model behavior and comprehensible to humans.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.