Skip to main content
QUICK REVIEW

[Paper Review] Looking Deeper into Deep Learning Model: Attribution-based Explanations of TextCNN

Wenting Xiong, Iftitahu Ni’mah|arXiv (Cornell University)|Nov 8, 2018
Explainable Artificial Intelligence (XAI)Computer Science9 references7 citations
TL;DR

This paper proposes a feature-based perturbation framework to evaluate attribution methods—Layer-wise Relevance Propagation (LRP) and saliency maps—on TextCNN for text classification, replacing traditional word-deletion with removal of embedded features from intermediate convolutional layers. Results show LRP outperforms saliency in identifying relevant features, and attribution differences effectively reveal model prediction bias toward specific classes.

ABSTRACT

Layer-wise Relevance Propagation (LRP) and saliency maps have been recently used to explain the predictions of Deep Learning models, specifically in the domain of text classification. Given different attribution-based explanations to highlight relevant words for a predicted class label, experiments based on word deleting perturbation is a common evaluation method. This word removal approach, however, disregards any linguistic dependencies that may exist between words or phrases in a sentence, which could semantically guide a classifier to a particular prediction. In this paper, we present a feature-based evaluation framework for comparing the two attribution methods on customer reviews (public data sets) and Customer Due Diligence (CDD) extracted reports (corporate data set). Instead of removing words based on the relevance score, we investigate perturbations based on embedded features removal from intermediate layers of Convolutional Neural Networks. Our experimental study is carried out on embedded-word, embedded-document, and embedded-ngrams explanations. Using the proposed framework, we provide a visualization tool to assist analysts in reasoning toward the model's final prediction.

Motivation & Objective

  • To address the limitation of word-deletion perturbation methods that ignore linguistic dependencies in text classification.
  • To develop a feature-based evaluation framework for attribution methods in CNNs using embedded-word, embedded-document, and embedded-ngram features.
  • To compare the quality of LRP and saliency maps in explaining TextCNN predictions on both public and corporate text datasets.
  • To build an interactive visualization tool to support analysts in interpreting model predictions and identifying influential features.
  • To investigate whether attribution differences between true class and other classes can guide model predictions toward specific outcomes.

Proposed method

  • Replace word-deletion perturbation with removal of high- or low-relevance features from intermediate convolutional layers of TextCNN.
  • Apply three types of feature-level attribution: embedded-word, embedded-document, and embedded-ngram features extracted from convolutional filters.
  • Use LRP and saliency maps to compute attribution scores at different layers, focusing on filter-level relevance.
  • Evaluate model accuracy after removing features ranked by relevance (top, bottom, or based on attribution differences between classes).
  • Construct an interactive visualization tool to display LRP attributions and inter-class attribution differences for individual words and n-grams.
  • Perform ablation studies by removing features in increasing numbers (e.g., 1, 3, 5, 7) to measure impact on prediction accuracy.

Experimental results

Research questions

  • RQ1How do LRP and saliency maps compare in identifying relevant features for TextCNN predictions when using feature-based perturbations instead of word deletion?
  • RQ2Does removing features based on attribution differences between the true class and other classes guide model predictions toward specific incorrect classes?
  • RQ3Can the proposed feature-based evaluation framework measure the quality of attribution methods more effectively than word-deletion methods?
  • RQ4To what extent do LRP and saliency maps preserve model accuracy when irrelevant features are removed compared to random or relevance-based removal?
  • RQ5How do attribution differences between classes affect misclassification patterns in both binary and multi-class text classification tasks?

Key findings

  • LRP-based feature removal caused a significantly larger drop in model accuracy than saliency when removing the most relevant features, indicating LRP identifies more critical features.
  • On the Yelp review dataset, removing the top 5 relevant n-gram features led to a 99.2% accuracy with LRP, compared to 81.1% with saliency, showing LRP’s superior feature relevance detection.
  • On the CDD corporate dataset, removing top 5 relevant features using LRP reduced accuracy to 97.81%, while saliency dropped to 98.90%, further confirming LRP’s stronger sensitivity to relevant features.
  • When using attribution differences (e.g., true class vs. class 2), LRP and saliency both guided predictions toward specific classes, with significantly higher misclassification rates for class 2 and 3, indicating model bias detection capability.
  • The visualization tool successfully highlighted key words and n-grams contributing to predictions, enabling analysts to trace model reasoning and detect potential confounding factors.
  • In the multi-class US consumer complaints dataset, removing 15 filters with highest LRP scores for the true class led to only 7 misclassifications, while removing the same filters based on LRP differences with class 2 or 3 caused over 300 misclassifications, demonstrating strong predictive guidance via attribution differences.

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.