Introduction
Instead of inventing a new way to explain black-box models post-training, this paper proposes Saliency Guided Training (SGT): a training-time regularization technique that forces models to be inherently more interpretable. By iteratively masking features with low gradients and penalizing the model if its output changes, SGT produces sparser, more faithful saliency maps across images, text, and time series without sacrificing predictive accuracy.
The Problem: Noisy Saliency Maps
Deep Neural Networks (DNNs) are notoriously difficult to interpret. Researchers and practitioners often rely on "saliency maps"—heatmaps showing which input features (like pixels or words) most influenced a prediction—to peek under the hood. However, these maps are frequently noisy. They might highlight random background pixels or fluctuate wildly with tiny changes to the input.
The authors argue that this isn't just a failure of the explanation methods (like Integrated Gradients or SmoothGrad); it’s a failure of the training process itself. Standard training via Empirical Risk Minimization doesn't penalize a model for relying on noisy gradients or irrelevant features, as long as it predicts the correct label. This paper aims to bridge the gap between model performance and model explainability by addressing the root cause during training.
Methodology: Saliency Guided Training
The core idea of SGT is to bake interpretability directly into the loss function. The process works in a continuous loop during training:
- Identify "Unimportant" Features: For a given input $X$, compute the vanilla gradient. Sort the features and identify the $k$ features with the lowest gradient values.
- Masking: Create a perturbed version of the input ($\tilde{X}$) by masking those $k$ features. For example, this might involve replacing pixels with random values or replacing words with previously identified salient words.
- The "Invariance" Penalty: The model is trained using a dual-objective loss function:
- Classification Loss: Standard cross-entropy to ensure the model stays accurate.
- KL Divergence: A penalty that forces the model's output for the original input $X$ to be as similar as possible to the output for the masked input $\tilde{X}$.
By telling the model, "If you claim these features have low gradients (and are thus unimportant), you shouldn't change your mind when I scramble them," the model learns to concentrate its attention on truly informative features. This leads to naturally cleaner gradients.
Experimental Setup
The authors evaluated SGT across three distinct domains to prove its versatility:
- Computer Vision: MNIST (digits), CIFAR-10 (objects), and BIRD (fine-grained bird classification).
- Natural Language Processing: Movie Reviews (sentiment), FEVER (fact extraction/verification), and e-SNLI (natural language inference).
- Time Series: A multivariate version of MNIST and a benchmark of 10 synthetic datasets designed to test feature importance over time.
Key Insights and Results
- Qualitative Clarity: Saliency maps produced by SGT-trained models are visibly cleaner. They successfully highlight the actual object of interest (e.g., the bird or the digit) while suppressing background gradients to near zero.
- Faithfulness Metrics: Using the "Model Accuracy Drop" test—where the most "important" pixels are removed to see how fast accuracy falls—SGT-trained models showed a much steeper decline. This proves the saliency maps were accurately identifying the features the model actually relied on.
- Universal Improvement: Even though SGT uses vanilla gradients to select masks during training, it significantly improves the quality of other popular saliency methods (like Integrated Gradients or DeepLIFT) used at test time.
- NLP Performance: On the ERASER benchmark, SGT improved "Comprehensiveness" (ensuring all necessary features are selected) and "Sufficiency" (ensuring the selected features are enough for a prediction) across multiple text tasks.
- Fixing RNN "Amnesia": Recurrent Neural Networks (RNNs) often suffer from "vanishing saliency," where they ignore early time steps in a sequence. SGT effectively mitigates this, forcing the model to maintain meaningful gradients across the entire sequence.
- Self-Supervised Interpretability: Unlike previous methods that require "ground truth" explanations (which are rare and expensive), SGT is self-supervised. It discovers what is important on its own.
- Robustness: Crucially, SGT achieved these interpretability gains while maintaining predictive accuracy comparable to traditionally trained models.
Limitations and Future Directions
While highly effective, SGT comes with trade-offs:
- Computational Cost: SGT is more expensive than standard training. Because it processes both the original and masked inputs in every batch, it roughly doubles the memory requirements and takes longer to converge.
- Hyperparameter Sensitivity: The method introduces two new hyperparameters: $k$ (how many features to mask) and $\lambda$ (how much to weigh the KL divergence). While the authors found $\lambda=1$ worked well, $k$ is highly dependent on the dataset (e.g., MNIST needs a much higher $k$ than a dense image dataset).
- Masking Strategy: The authors used simple random masking for images. Future work could explore more sophisticated masking techniques (like using generative models) to avoid creating "out-of-distribution" samples that might confuse the model during training.
Summary updated