Skip to main content
QUICK REVIEW

[Paper Review] Explaining Black Box Predictions and Unveiling Data Artifacts through Influence Functions

Xiaochuang Han, Byron Wallace|arXiv (Cornell University)|May 14, 2020
Explainable Artificial Intelligence (XAI)Computer Science37 references19 citations
TL;DR

This paper proposes using influence functions as a complementary method to gradient-based saliency maps for interpreting black-box NLP models, particularly in complex reasoning tasks like natural language inference (NLI). It demonstrates that influence functions are more effective than saliency maps for explaining model decisions in NLI, and introduces a new quantitative measure to detect data artifacts in training sets using influence scores.

ABSTRACT

Modern deep learning models for NLP are notoriously opaque. This has motivated the development of methods for interpreting such models, e.g., via gradient-based saliency maps or the visualization of attention weights. Such approaches aim to provide explanations for a particular model prediction by highlighting important words in the corresponding input text. While this might be useful for tasks where decisions are explicitly influenced by individual tokens in the input, we suspect that such highlighting is not suitable for tasks where model decisions should be driven by more complex reasoning. In this work, we investigate the use of influence functions for NLP, providing an alternative approach to interpreting neural text classifiers. Influence functions explain the decisions of a model by identifying influential training examples. Despite the promise of this approach, influence functions have not yet been extensively evaluated in the context of NLP, a gap addressed by this work. We conduct a comparison between influence functions and common word-saliency methods on representative tasks. As suspected, we find that influence functions are particularly useful for natural language inference, a task in which 'saliency maps' may not have clear interpretation. Furthermore, we develop a new quantitative measure based on influence functions that can reveal artifacts in training data.

Motivation & Objective

  • To evaluate the reliability of influence functions in interpreting deep transformer-based models like BERT.
  • To compare influence functions with gradient-based saliency maps in explaining predictions across different NLP tasks.
  • To investigate whether influence functions can detect and quantify the impact of data artifacts in training data, especially in NLI.
  • To propose a new quantitative method for measuring the effect of hypothesized data artifacts on model predictions using influence functions.
  • To assess whether influence functions provide more faithful and meaningful explanations than input-level saliency methods in complex semantic tasks.

Proposed method

  • Adapt the influence function framework (Koh & Liang, 2017) to deep NLP models, specifically BERT-based classifiers, without modifying the model architecture.
  • Use the Hessian-based approximation of influence functions to efficiently compute the influence of each training example on a test prediction.
  • Rank training examples by their influence score to identify which training instances most affected a given prediction.
  • Compare influence-based explanations with gradient-based saliency maps (e.g., gradient × input) on sentiment analysis and NLI tasks.
  • Develop a new quantitative metric based on influence scores to assess the extent to which data artifacts (e.g., lexical cues) affect model predictions.
  • Use diagnostic datasets (e.g., from McCoy et al., 2019) to evaluate how influence scores correlate with model reliance on artifacts.

Experimental results

Research questions

  • RQ1Can the approximation of influence functions be reliably used to interpret predictions of deep transformer-based models such as BERT?
  • RQ2How consistent are influence function-based explanations with gradient-based saliency maps across different NLP tasks?
  • RQ3To what extent can influence functions reveal and quantify the impact of data artifacts in training data on model predictions?
  • RQ4Can influence functions serve as a more faithful explanation method than input-level saliency for complex reasoning tasks like natural language inference?
  • RQ5How can influence functions be systematically used to detect and analyze data artifacts in NLP datasets?

Key findings

  • The influence function approximation is reliable and effective for interpreting predictions in BERT-based models, even though it is computationally intensive.
  • On sentiment analysis, influence functions and gradient-based saliency maps show strong consistency in identifying important input tokens.
  • On natural language inference (NLI), influence functions and saliency maps diverge significantly, with influence functions providing more meaningful and contextually coherent explanations.
  • Influence functions are particularly effective at identifying training examples that contain lexical cues or artifacts, such as specific words that correlate with labels.
  • The proposed quantitative measure based on influence functions successfully detects and quantifies the effect of data artifacts, such as the presence of specific words like 'entailment' or 'contradiction' in NLI datasets.
  • Influence functions reveal that models often rely on superficial patterns in training data, such as the presence of specific words in the hypothesis or premise, rather than deeper semantic reasoning.

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.