Skip to main content
QUICK REVIEW

[Paper Review] Model Explainability in Deep Learning Based Natural Language Processing

Shafie Gholizadeh, Nengfeng Zhou|arXiv (Cornell University)|Jun 14, 2021
Explainable Artificial Intelligence (XAI)Computer Science21 references10 citations
TL;DR

This paper evaluates Layer-wise Relevance Propagation (LRP) for explainability in deep learning-based NLP models, demonstrating its effectiveness in assigning local relevance scores to words and identifying global feature importance. The study shows LRP outperforms gradient-based and permutation-based methods in detecting model weaknesses through false positive and false negative analysis on Yelp sentiment data.

ABSTRACT

Machine learning (ML) model explainability has received growing attention, especially in the area related to model risk and regulations. In this paper, we reviewed and compared some popular ML model explainability methodologies, especially those related to Natural Language Processing (NLP) models. We then applied one of the NLP explainability methods Layer-wise Relevance Propagation (LRP) to a NLP classification model. We used the LRP method to derive a relevance score for each word in an instance, which is a local explainability. The relevance scores are then aggregated together to achieve global variable importance of the model. Through the case study, we also demonstrated how to apply the local explainability method to false positive and false negative instances to discover the weakness of a NLP model. These analysis can help us to understand NLP models better and reduce the risk due to the black-box nature of NLP models. We also identified some common issues due to the special natures of NLP models and discussed how explainability analysis can act as a control to detect these issues after the model has been trained.

Motivation & Objective

  • To evaluate and compare model explainability methods in NLP, especially for regulatory and risk management purposes.
  • To apply Layer-wise Relevance Propagation (LRP) to a text classification model to derive local and global feature importance scores.
  • To use explainability analysis to detect model weaknesses in false positive and false negative predictions.
  • To identify common NLP-specific issues—such as OOV words, proxies, and bias—using explainability as a post-training control.
  • To demonstrate how explainability can enhance model transparency and reduce risk in high-stakes NLP applications.

Proposed method

  • Applies LRP to a trained NLP classifier (SVM on Yelp sentiment dataset) to compute per-word relevance scores for individual predictions.
  • Aggregates local relevance scores across all instances to derive global feature importance for the model.
  • Uses LRP to analyze false positive and false negative predictions, identifying misleading or spurious features.
  • Compares LRP with gradient-based, permutation-based, and SHAP explainability methods using correlation and performance impact metrics.
  • Employs baseline comparison and ablation testing by removing top-ranked tokens based on LRP scores to measure performance degradation.
  • Assesses correlation between relevance scores from training and evaluation data to validate consistency and robustness.

Experimental results

Research questions

  • RQ1How does LRP compare to other explainability methods (e.g., gradient-based, permutation, SHAP) in identifying influential words in NLP models?
  • RQ2To what extent can LRP reveal model weaknesses in false positive and false negative predictions?
  • RQ3How stable are relevance scores across training and evaluation data, and what does this imply for model reliability?
  • RQ4What common NLP-specific issues—such as OOV words, proxies, or demographic biases—can be detected through explainability analysis?
  • RQ5Can explainability metrics serve as a post-training control to detect model flaws related to data quality or bias?

Key findings

  • LRP outperformed gradient-based and permutation-based methods in identifying influential features, particularly in detecting model errors.
  • Removing the top 10% of LRP-ranked tokens caused the largest drop in recall, indicating their high predictive impact.
  • Relevance scores from training and evaluation data showed high correlation (especially for LRP and SVM permutation methods), suggesting consistent feature importance.
  • GbSA showed low correlation with other methods, indicating potential instability in feature attribution.
  • Explainability analysis effectively flagged problematic patterns such as reliance on non-English words, OOV terms, and demographic proxies.
  • The study confirmed that explainability can serve as a critical control mechanism to detect model risks post-training, especially in regulated environments.

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.