Abstract
Post-hoc explanation methods like LIME and Grad-CAM are widely used to interpret deep learning models, yet they often lack "faithfulness"—the degree to which an explanation accurately reflects a model's internal decision-making process. This paper introduces ID-ExpO (Insertion/Deletion metric-aware Explanation-based Optimization), a framework that transforms non-differentiable evaluation metrics into differentiable regularizers. By fine-tuning models to optimize for these metrics, ID-ExpO produces models that are inherently more transparent and whose explanations more reliably represent their underlying logic.
The Faithfulness Gap in Post-hoc Explanations
As machine learning models are increasingly deployed in high-stakes environments, the need for interpretability has grown. Researchers typically rely on post-hoc explainers to generate feature importance maps. However, these explanations can be misleading; a heatmap might highlight features that seem intuitive to a human but are not actually used by the model to make its prediction.
Faithfulness is traditionally measured using Insertion and Deletion metrics:
- Insertion: Measures how quickly model confidence increases as "important" pixels are added to a blank canvas.
- Deletion: Measures how quickly model confidence drops as "important" pixels are removed from the original image.
Because these metrics involve a discrete "top-s" selection of features, they are non-differentiable and cannot be used directly in standard gradient-based training. ID-ExpO addresses this by creating a differentiable bridge between model training and explanation evaluation.
ID-ExpO: Differentiable Metric-aware Optimization
The core innovation of ID-ExpO is the replacement of the "hard" top-s selection mask with a soft mask function. By using a sigmoid function with a temperature parameter ($T$), the authors create a smooth approximation of the feature selection process. This allows the Insertion and Deletion scores to be formulated as differentiable regularizers ($\Omega_{Ins}$ and $\Omega_{Del}$) added to the standard cross-entropy loss.
As shown in the framework diagram, the training objective encourages the model to minimize prediction error while ensuring the explainer can identify a small set of features that are both necessary (Deletion) and sufficient (Insertion) for the output. This process also helps mitigate "missingness bias," as the regularizers act as a form of masking augmentation that makes the model more robust to partially occluded inputs.
Experimental Evaluation
The authors evaluated ID-ExpO across multiple domains:
- Image Classification: Using ResNet-18 on the CIFAR-10 and STL-10 datasets.
- Tabular Classification: Testing Multi-Layer Perceptrons (MLPs) on six OpenML datasets, including medical and chemical data.
The framework was tested against several post-hoc explainers, including LIME, KernelSHAP, and Grad-CAM, to ensure the improvements in faithfulness were consistent across different explanation techniques.
Results and the Accuracy-Faithfulness Trade-off
ID-ExpO consistently outperformed standard fine-tuning and other state-of-the-art explanation-aware methods in terms of faithfulness. Notably, the models maintained high predictive accuracy, allowing users to trade off a marginal amount of performance for significant gains in explanation reliability.
Qualitatively, the heatmaps produced by ID-ExpO-trained models are significantly "cleaner" and more focused on the primary object of interest compared to the noisier outputs of standard models. Furthermore, the optimization improved performance on metrics the model wasn't directly trained on, such as Sensitivity-n, suggesting a genuine improvement in the transparency of the model's internal logic.
Conclusion and Future Directions
While ID-ExpO represents a major step toward faithful AI, challenges remain. The computational cost of perturbation-based explainers like LIME during training is high, and Grad-CAM optimization requires memory-intensive second-order derivatives. Additionally, the authors note that a "faithful" explanation is not always a "human-interpretable" one; future work may explore combining ID-ExpO with human-in-the-loop constraints to ensure explanations are both honest to the model and intuitive to the user.
Summary updated