TL;DR
This paper introduces semantic continuity, a new metric for Explainable AI (XAI) that requires similar semantic inputs to produce similar explanations. By measuring how smoothly an explanation changes as an input feature (like the rotation of a shape or the addition of glasses on a face) evolves, the authors provide a quantitative way to evaluate whether XAI methods truly capture a model's internal reasoning or are just producing unstable noise.
What Problem Does This Paper Address?
As deep learning models become more complex, we rely on XAI methods (like saliency maps) to tell us why a model made a specific decision. However, these "explainers" themselves can be unreliable. A major gap in current research is the lack of a rigorous way to measure continuity: the idea that if you change an input slightly, the explanation should also change slightly.
Previous attempts to measure continuity often relied on random pixel perturbations or adversarial noise. The authors argue this is insufficient because it doesn't account for semantics—the actual meaning of the data. If a model is tracking a specific concept (like "triangularity"), the explanation should move predictably as that triangle rotates or fades. If the explanation jumps around erratically while the input changes smoothly, the explainer is failing to provide a trustworthy window into the model's logic.
Methods
The authors formalize semantic continuity as a mathematical property: the distance between a reference explanation and a new explanation should increase monotonically as the semantic difference in the input increases.
To quantify this, they use a three-step pipeline:
- Semantic Variation: They apply controlled, incremental changes to an input (e.g., rotating a shape by 1 degree at a time).
- Explanation Generation: They generate saliency maps using four popular XAI methods: GradCAM, RISE, LIME, and KernelSHAP.
- Correlation Analysis: They calculate the distance between these saliency maps (using Mean Squared Deviation or Wasserstein distance) and correlate those distances with the input changes using Pearson, Spearman, and Kendall’s Tau metrics. High correlation indicates high semantic continuity.
Datasets
The study uses two distinct types of data to test these properties:
- Shape Dataset: A proof-of-concept "toy" dataset featuring simple geometric shapes (triangles and circles). It includes three types of semantic variations: rotation, contrast reduction, and a "morphing" transition from a circle to a triangle.
- Synthetic Facial Dataset: A more realistic dataset created using generative AI. The authors used Stable Diffusion to create a base training set of faces with and without glasses. To test continuity, they used InterFaceGAN and SEGA to generate smooth, frame-by-frame sequences of glasses gradually appearing on a face.
Key Insights and Ideas
- GradCAM is the "Smoothest" Explainer: Across almost all tests, GradCAM showed the highest semantic continuity. Because it relies on the model's internal gradients, it tends to "stick" to the features the model is actually using, even as they move or fade.
- LIME’s "Jumpy" Nature: LIME performed the worst in terms of continuity. Because it works by randomly perturbing pixels to build a local linear model, its explanations can be highly stochastic. Two very similar images might end up with wildly different LIME heatmaps, which undermines user trust.
- The "Perfect Predictor" Assumption: The authors first tested explainers on a "perfect" model (100% accuracy on shapes) to isolate the explainer's behavior. They then moved to imperfect models to see how explainers handle "confusion"—for instance, when a model incorrectly thinks a face has glasses because of a prominent brow ridge.
- Monotonicity as a Proxy for Trust: The paper argues that if an explainer isn't monotonic (i.e., the explanation doesn't change in proportion to the input change), it’s likely capturing artifacts rather than the underlying semantic concept.
Key Results
- Rotation Task: GradCAM achieved a Kendall’s Tau correlation of 0.967 (MSD distance), while LIME failed to show any statistically significant correlation.
- Contrast Task: GradCAM and RISE both showed near-perfect monotonicity (Spearman correlations of 1.000 and 0.981 respectively), meaning they accurately tracked the shape as it became harder to see.
- Facial Recognition: In the "True Positive" case (correctly identifying glasses), GradCAM reached a Pearson correlation of 0.994, significantly outperforming KernelSHAP (0.758) and LIME (0.750).
- Visual Consistency: Qualitative visual inspection confirmed the math: GradCAM’s heatmaps followed the edges of the triangle as it rotated, whereas other methods often produced "noisy" spots that appeared and disappeared at random.
Limitations and Future Work
The authors acknowledge several areas for further exploration:
- Scope: The study is currently limited to binary image classification. Future work should extend this to multi-class problems and other modalities like text (NLP) or audio.
- Distance Metrics: While they used Wasserstein and MSD, other metrics like Distance Correlation might provide deeper insights into non-linear relationships.
- Human Perception: The paper focuses on mathematical continuity, but the ultimate goal of XAI is human understanding. Future studies should investigate whether mathematically continuous explanations actually lead to higher levels of human trust and better decision-making.
Summary updated