Abstract
Deep learning models like TextCNN are highly effective for text classification but often operate as "black boxes," limiting their utility in high-stakes domains. This paper introduces a feature-based evaluation framework to assess the faithfulness of model explanations. By perturbing intermediate neural layers rather than raw input tokens, the authors compare Layer-wise Relevance Propagation (LRP) and gradient-based Saliency Maps. The results demonstrate that LRP provides more faithful and semantically aware explanations, effectively identifying the "load-bearing" features that drive model decisions across sentiment analysis and financial risk assessment tasks.
Introduction
As deep learning models are increasingly deployed in sensitive sectors like banking, the need for interpretability becomes paramount. To trust a model's classification, analysts must understand the underlying rationale. Traditional methods for evaluating explanations—such as deleting "important" words to observe accuracy drops—are often flawed because they disrupt linguistic dependencies (e.g., removing "not" from "not good"). This paper addresses this gap by proposing an evaluation method that respects these dependencies by targeting internal "features" like embeddings and n-grams within the model's architecture.
Methodology
The study focuses on the TextCNN architecture, a popular choice for industrial text classification. The authors compare two primary attribution methods:
- Saliency Maps (Sensitivity Analysis): A gradient-based approach measuring the impact of small input changes on the final output.
- Layer-wise Relevance Propagation (LRP): A technique that redistributes the final prediction score backward through the network layers to the input.
Feature-based Perturbation
To quantitatively measure the accuracy of these attributions, the authors performed "feature removal" at three distinct levels of the network:
- Embedded-word level: Weighting word embeddings by attribution scores.
- Embedded-document level: Zeroing out specific dimensions in the document's embedding matrix based on relevance.
- Embedded-ngrams level: Removing specific convolutional kernels corresponding to n-gram patterns.
Experimental Setup
The framework was validated using three datasets to ensure robustness:
- Yelp Reviews: Binary sentiment classification.
- US Consumer Finance Complaints: Multi-class classification into 11 financial categories.
- Customer Due Diligence (CDD) Reports: A private corporate dataset from Rabobank used for financial risk categorization.
Results and Discussion
LRP vs. Saliency Maps
The experiments revealed that LRP is significantly more effective at capturing compositionality and identifying critical features. For instance, LRP correctly identifies phrases like "no stars" as a single unit of sentiment, whereas Saliency Maps often produce "noisy" results that highlight words in isolation without capturing their contextual impact.
Quantitative Impact of Feature Removal
The most striking evidence for LRP's superiority came from the feature removal experiments. On the Yelp dataset, removing the top 150 features identified by LRP caused the TextCNN's accuracy to plummet from a high baseline to just 2.1%. In contrast, removing the same number of features identified by Saliency Maps left the accuracy virtually unchanged at 96.4%. This suggests that Saliency Maps often identify features that the model does not actually rely on for its final decision.
Furthermore, using LRP scores to weight document embeddings improved the performance of simpler downstream classifiers. On Yelp, LRP-weighted embeddings achieved 92.75% accuracy, far outperforming the 69.25% achieved with Saliency-weighted embeddings.
Conclusion
This research demonstrates that Layer-wise Relevance Propagation (LRP) provides a more faithful representation of a TextCNN's internal logic than traditional gradient-based methods. By evaluating attributions at the feature level rather than the word level, the authors provide a more robust framework for model interpretability. Future work should explore whether these findings extend to attention-based architectures like Transformers and incorporate human-in-the-loop studies to measure the practical utility of these explanations for domain experts.
Summary updated