[Paper Review] Pair the Dots: Jointly Examining Training History and Test Stimuli for Model Interpretability
This paper proposes a differentiable, efficient framework that jointly analyzes training examples and test inputs to explain neural model predictions by tracing saliency from test stimuli back to influential training data via influence functions. The method enables comprehensive interpretability, error analysis, adversarial example generation, and model correction with minimal retraining, achieving up to 1% accuracy gain through targeted training data augmentation.
Any prediction from a model is made by a combination of learning history and test stimuli. This provides significant insights for improving model interpretability: {\it because of which part(s) of which training example(s), the model attends to which part(s) of a test example}. Unfortunately, existing methods to interpret a model's predictions are only able to capture a single aspect of either test stimuli or learning history, and evidences from both are never combined or integrated. In this paper, we propose an efficient and differentiable approach to make it feasible to interpret a model's prediction by jointly examining training history and test stimuli. Test stimuli is first identified by gradient-based methods, signifying {\it the part of a test example that the model attends to}. The gradient-based saliency scores are then propagated to training examples using influence functions to identify {\it which part(s) of which training example(s)} make the model attends to the test stimuli. The system is differentiable and time efficient: the adoption of saliency scores from gradient-based methods allows us to efficiently trace a model's prediction through test stimuli, and then back to training examples through influence functions. We demonstrate that the proposed methodology offers clear explanations about neural model decisions, along with being useful for performing error analysis, crafting adversarial examples and fixing erroneously classified examples.
Motivation & Objective
- To address the interpretability gap in neural models by jointly analyzing test stimuli and training history.
- To overcome the limitation of existing methods that focus only on test inputs or training examples in isolation.
- To develop a differentiable and efficient framework that traces model decisions from test input features back to influential training data.
- To enable practical applications such as error diagnosis, adversarial example crafting, and model correction through training data modification.
- To demonstrate the method’s effectiveness in improving model robustness and interpretability across NLP tasks.
Proposed method
- Test input saliency is identified using gradient-based methods to locate the parts of a test example that most influence the model’s prediction.
- Saliency scores are propagated from test inputs to training examples using influence functions, which quantify the impact of each training example on a prediction.
- The method is fully differentiable, enabling end-to-end gradient flow from test inputs through model parameters to training examples.
- Influence functions are computed efficiently without retraining the model, ensuring time efficiency.
- The framework supports both adversarial example generation (by perturbing influential training examples) and model correction (by modifying training examples to fix misclassifications).
- Perturbations are applied to training examples using synonyms and antonyms to alter model attention, with retraining performed only once after data augmentation.
Experimental results
Research questions
- RQ1How can we jointly interpret model predictions by analyzing both test stimuli and training history?
- RQ2What parts of which training examples are responsible for the model attending to specific regions in a test input?
- RQ3Can we generate adversarial examples by modifying influential training examples rather than test inputs?
- RQ4Can we correct model errors by modifying training examples to shift attention to correct features?
- RQ5How does the number of modified training examples affect model performance in adversarial and correction settings?
Key findings
- Perturbing a single influential training example reduced model accuracy by up to 25% on the IMDB dataset, demonstrating the method's effectiveness in generating impactful adversarial examples.
- The combined adversarial method, which both suppresses attention on salient regions and redirects it to non-salient ones, outperformed individual methods with the same number of perturbed examples.
- When generating training examples to fix misclassified predictions, test accuracy improved by 1% when four perturbed examples were added per misclassified instance, peaking at four examples before overfitting occurred.
- Overfitting was observed when more than four training examples were generated per misclassified test example, leading to a sharp decline in test performance.
- The method achieved significant performance degradation (e.g., 52.0% accuracy with 20 perturbed examples) when too many training examples were modified, indicating a trade-off between attack strength and model generalization.
- The approach is computationally efficient, as it avoids retraining the model during influence analysis, relying instead on precomputed influence functions and gradient-based saliency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.