Skip to main content
QUICK REVIEW

[Paper Review] Self-Explaining Structures Improve NLP Models

Zijun Sun, Chun Chieh Fan|arXiv (Cornell University)|Dec 3, 2020
Topic ModelingComputer Science75 references25 citations
TL;DR

This paper proposes a self-explaining neural network framework that enhances NLP model interpretability and performance by adding an interpretation layer on top of any existing model. The layer assigns learnable weights to all text spans (e.g., phrases, sentences), enabling direct, high-level saliency scoring without external probing models, and achieves new SOTA results of 59.1 on SST-5 and 92.3 on SNLI.

ABSTRACT

Existing approaches to explaining deep learning models in NLP usually suffer from two major drawbacks: (1) the main model and the explaining model are decoupled: an additional probing or surrogate model is used to interpret an existing model, and thus existing explaining tools are not self-explainable; (2) the probing model is only able to explain a model's predictions by operating on low-level features by computing saliency scores for individual words but are clumsy at high-level text units such as phrases, sentences, or paragraphs. To deal with these two issues, in this paper, we propose a simple yet general and effective self-explaining framework for deep learning models in NLP. The key point of the proposed framework is to put an additional layer, as is called by the interpretation layer, on top of any existing NLP model. This layer aggregates the information for each text span, which is then associated with a specific weight, and their weighted combination is fed to the softmax function for the final prediction. The proposed model comes with the following merits: (1) span weights make the model self-explainable and do not require an additional probing model for interpretation; (2) the proposed model is general and can be adapted to any existing deep learning structures in NLP; (3) the weight associated with each text span provides direct importance scores for higher-level text units such as phrases and sentences. We for the first time show that interpretability does not come at the cost of performance: a neural model of self-explaining features obtains better performances than its counterpart without the self-explaining nature, achieving a new SOTA performance of 59.1 on SST-5 and a new SOTA performance of 92.3 on SNLI.

Motivation & Objective

  • Address the lack of self-explainability in existing NLP models, which rely on separate probing or surrogate models for interpretation.
  • Overcome the limitation of word-level saliency methods that fail to capture semantic composition at higher-level text units like phrases and sentences.
  • Develop a generalizable framework that improves model performance while enabling precise, interpretable explanations at the span level.
  • Demonstrate that interpretability and performance are not mutually exclusive, but can be jointly enhanced through architectural design.

Proposed method

  • Introduce an interpretation layer on top of any pre-trained NLP model, which computes attention weights over all possible text spans (O(n²) spans).
  • Each text span is associated with a learnable weight that reflects its contribution to the final prediction, enabling direct interpretation.
  • The weighted sum of span representations is passed through a softmax layer for final classification, integrating interpretation into the main prediction path.
  • The interpretation layer is trained end-to-end with the main model, eliminating the need for separate probing models.
  • Leverage span-level attention weights to generate saliency scores for phrases, sentences, or paragraphs, enabling high-level interpretability.
  • Apply the framework to adversarial example generation by replacing the most salient span with a paraphrase, achieving effective attack success.

Experimental results

Research questions

  • RQ1Can a self-explainable NLP model be designed without relying on external probing models?
  • RQ2Can interpretability at the phrase and sentence level be achieved more effectively than word-level saliency methods?
  • RQ3Does incorporating a self-explaining mechanism degrade or improve model performance?
  • RQ4Can the span-level attention mechanism be used to generate more effective adversarial examples in NLP?
  • RQ5How do self-explaining models reveal failure patterns in model predictions, such as attention to irrelevant clauses or misinterpretation of irony?

Key findings

  • The proposed self-explaining framework achieves a new SOTA performance of 59.1 on the SST-5 sentiment classification benchmark.
  • The model obtains a new SOTA result of 92.3 on the SNLI natural language inference dataset, demonstrating improved generalization.
  • The model’s interpretation layer provides direct, high-level saliency scores for phrases and sentences, enabling clearer error analysis than word-level methods.
  • The framework enables effective adversarial example generation by replacing the most salient span with a paraphrase, reducing model accuracy by 84% on IMDB and 48.86% on Yahoo! Answers.
  • Error analysis reveals that models often misattend to irrelevant clauses in contrastive structures, fail to detect sentiment shifts, and misinterpret irony or analogies.
  • The self-explaining mechanism does not compromise performance; instead, it enhances it, proving that interpretability and accuracy can coexist in NLP models.

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.