TL;DR
This paper argues that the evaluation of NLP model interpretability methods is often flawed because the evaluation metrics don't align with the underlying definition of what "interpretation" means. They propose a "Definition Driven Pipeline" (DDP) where both the interpretation algorithm and its evaluation metric are derived from a common definition, specifically adversarial perturbation. This framework helps to avoid misleading conclusions about method faithfulness.
What Problem Does This Paper Address?
As NLP models become more complex and are deployed in critical applications, understanding why they make certain predictions (interpretability) is crucial. Numerous methods exist to generate these "interpretations," such as highlighting important words or features. However, a major challenge is evaluating whether these interpretations are "faithful" – meaning they accurately reflect the model's internal reasoning. Current evaluation practices often compare different interpretation methods using a single, potentially unsuitable metric. This can lead to the misleading conclusion that one method is inherently better or more faithful than another, when in reality, the discrepancy might stem from the evaluation metric itself being misaligned with the interpretation's definition. The paper aims to provide a principled way to define and evaluate interpretation methods to ensure fair comparisons.
Methods
The core contribution is the Definition Driven Pipeline (DDP). Instead of a traditional pipeline where an interpretation method is developed and then evaluated with a chosen metric, DDP insists that both the algorithm and the metric must stem from a single, concrete definition of interpretation.
The paper proposes using adversarial perturbation as this foundational definition. The intuition is that features are important if perturbing them significantly changes the model's prediction. The DDP formalizes this by defining an interpretation based on finding an adversarial example ($x^*$) that minimally perturbs the input ($x$) while causing a significant change in the model's output.
Based on this adversarial definition, the paper shows how several existing interpretation methods can be derived:
- Continuous-Space Adversary (CSA): Interprets based on perturbations in the continuous embedding space. Methods like Vanilla Gradient (VaGrad), Smooth Gradient (SmoothGrad), and Iterative Gradient (IterGrad) are shown to be instances of CSA.
- Embedding Erasure Adversary (ERA): Interprets by removing (setting to zero) word embeddings. Input Times Gradient (InpGrad) and Integrated Gradient (InteGrad) are presented as methods derived from ERA.
- Message Masking Adversary (MMA): Specifically for attention models, this method masks attention scores to understand their impact. Ranked Masking (RankMask) is an example.
Crucially, for each definition (CSA, ERA, MMA), the paper shows that the natural metric for evaluating faithfulness is directly related to the objective function used in the adversarial definition.
The paper also proposes a method to align interpretation with human cognition by incorporating human-annotated important words into the training process, aiming to make model interpretations more intuitive to humans without significantly degrading performance.
Datasets
The experiments were conducted on three standard NLP datasets:
- SST2 (Stanford Sentiment Treebank 2): A binary sentiment classification dataset.
- Yelp Polarity: Another binary sentiment classification dataset.
- AG News Corpus: A topic classification dataset (binary classification used for experiments).
The authors note that texts shorter than 5 words were discarded due to the embedding erasure method.
Key Insights and Ideas
- Evaluation Bias is Real: The core insight is that "faithfulness" is not an absolute property of an interpretation method but is heavily dependent on the evaluation metric used. If the metric doesn't align with the definition of interpretation, results can be misleading.
- Adversarial Perturbation as a Unifying Definition: The paper demonstrates that many popular interpretation methods can be unified under the umbrella of adversarial perturbation. This provides a principled way to understand their underlying assumptions and relationships.
- Definition Dictates Metric: The DDP framework highlights that the choice of definition for interpretation directly implies the appropriate metric for evaluating its faithfulness. This moves away from arbitrary metric selection.
- "Attention is Not Explanation" Revisited: The paper suggests that claims like "attention is not explanation" might be premature if the evaluation metric (e.g., gradient correlation) is not aligned with the definition of attention-based interpretation.
- Human Cognition Alignment is Possible: The proposed method shows a way to make interpretations more aligned with human intuition by fine-tuning the model, though it comes with a slight performance trade-off.
Key Results
- Experiments on SST2, Yelp, and AGNews datasets showed that interpretation algorithms generally perform better when evaluated under metrics derived from their own definition (e.g., VaGrad/SmoothGrad/IterGrad perform best under CSA metric, InpGrad/InteGrad under ERA, and RankMask under MMA).
- When methods were mismatched with their metrics, their relative performance became less clear and more "random," underscoring the importance of definition-metric alignment.
- For instance, under the CSA metric, InteGrad (derived from ERA) did not consistently outperform other methods, suggesting its definition is not inherently suited for CSA evaluation.
- The parameter analysis for Integrated Gradient showed that increasing the number of points ($T$) used in the path integral generally improved its performance, especially for BERT, indicating its prediction function is less smooth.
- The interpretation alignment method showed improved similarity to human cognition over retraining iterations, with a slight decrease in classification performance (e.g., 0.791 for SST2, 0.922 for Yelp on LSTM).
Limitations and Future Work
- Application Scope: The current work focuses on classification tasks. Future work could extend the DDP to other NLP applications like question answering and natural language inference.
- Performance Trade-off: A significant unsolved problem is how to achieve better interpretation alignment with human cognition without negatively impacting model performance.
- Balancing Interpretation Aspects: The paper acknowledges that faithfulness is just one aspect of interpretability. Future work could explore how to balance faithfulness with other desirable properties like sensitivity and understandability for specific applications.
- Subjectivity of Metrics: While DDP provides a framework, the choice of the initial definition (e.g., adversarial perturbation) and the specific metric within that definition can still involve subjective choices based on application scenarios or audience preferences.
Summary updated