TL;DR
This paper introduces a novel framework to quantitatively evaluate the quality of machine learning explanations by measuring how much they help a student model learn to mimic a teacher model. Their experiments reveal that attention-based explanations are generally the most effective, and this framework provides a more robust and less gameable alternative to existing evaluation methods.
What Problem Does This Paper Address?
Explaining the predictions of complex machine learning models, particularly deep neural networks, has become a critical area of research. While many methods exist to highlight important input features (e.g., "saliency maps," "attention mechanisms"), there's a significant lack of consensus on what constitutes a "good" explanation and how to objectively evaluate them. Existing quantitative evaluation methods are often easily gamed or rely on specific, sometimes unrealistic, scenarios. This makes it difficult to compare different explanation techniques reliably and understand their true utility. The authors aim to bridge this gap by proposing a principled, automated, and model-agnostic framework for evaluating explanations.
Methods
The core of the paper is a "student-teacher" framework. A "teacher" model (which could be another ML model or even a human) makes predictions. An "explanation generation method" provides explanations for these predictions. A "student" model (typically a machine learning model) is trained to mimic the teacher's predictions. Crucially, the student model has access to the explanations during training but not during testing. The effectiveness of an explanation is then measured by the improvement in the student model's accuracy in simulating the teacher's predictions on unseen data.
Two primary learning strategies are explored for the student model to incorporate explanations:
- Attention Regularization: This method encourages the student model's attention mechanisms to align with the provided explanations.
- Multitask Learning: The student model is trained jointly to predict the teacher's output and to generate explanations itself.
The framework is designed to be model-agnostic, meaning it can be applied to various teacher and student models, and tasks.
Datasets
The paper uses the following datasets:
- IMDb dataset: For sentiment analysis tasks.
- Natural Questions (NQ) dataset: For question answering tasks, specifically using "QED annotations" which provide referential equality annotations.
The authors do not introduce new datasets but leverage existing ones to evaluate their framework and various explanation methods.
Key Insights and Ideas
- Simulatability as a Metric: The paper frames explanation quality through the lens of "simulatability" – how well an explanation helps a learner (the student model) understand and replicate the teacher's decision-making process.
- Test-Time Independence is Crucial: By withholding explanations during the student's testing phase, the framework avoids "leakage" where explanations might directly reveal the answer, thus providing a more honest evaluation of their explanatory power.
- Attention-Based Explanations Shine: Across various student models and tasks, attention-based explanations consistently emerge as highly effective, often outperforming other methods.
- Framework Robustness: The proposed framework shows consistent results across different student architectures and learning strategies, suggesting its reliability.
- Trivial Explanations Don't Fool the Metric: The framework is robust against "trivial" explanations (e.g., always highlighting the first token for a positive class) which can fool simpler evaluation metrics.
Key Results
- Sentiment Analysis: Attention-based explanations and integrated gradients were found to be the most effective attribution methods. Vanilla gradient-based saliency maps and LIME were among the least effective. For example, attention regularization improved simulation accuracy by up to 6 percentage points on the IMDb dataset.
- Question Answering: Attention regularization and attention alignment loss significantly improved F1 scores. For instance, attention alignment loss provided a 7.9 absolute point gain with 250 examples.
- Human vs. Automated: While human studies showed less significant differences between explanation methods (likely due to small sample sizes), the automated framework consistently revealed quantitative differences, supporting its scalability and effectiveness.
- Rank Correlation: The rankings of explanation methods were found to be highly correlated across different student models and learning strategies, indicating the framework's stability.
Limitations and Future Work
- Format Dependency: The current experiments primarily compare explanations of the same format. Future work could explore comparing explanations of different formats (e.g., natural language vs. token highlighting) and developing strategies to make such comparisons meaningful.
- Human Judgement vs. Automated Evaluation: Validating automated evaluations with human judgment remains challenging. The authors suggest exploring interactive studies where people can query models to better assess explanation plausibility and responsibility.
- Student Model Sensitivity: While the framework shows good agreement across student models, it's acknowledged that rankings might be sensitive to the specific student model chosen. Averaging results across diverse student architectures is recommended.
- Learning to Generate Explanations: An interesting future direction is to train explanation generation modules that directly optimize the proposed metric, potentially by learning from student feedback. This could involve meta-learning approaches.
Summary updated