TL;DR
Deep Integrated Explanations (DIX) is a universal explainability method for vision models that operates seamlessly across both Convolutional Neural Networks (CNNs) and Vision Transformers (ViTs). By performing path integration over internal model representations and their gradients across multiple deep layers, DIX generates highly accurate, class-discriminative saliency maps. This approach sets a new state-of-the-art in model faithfulness and weakly-supervised semantic segmentation.
What Problem Does This Paper Address?
Despite the massive success of deep learning in computer vision, models like CNNs and ViTs remain notorious "black boxes." Understanding why a model makes a specific prediction is crucial for safety, debugging, and user trust.
While many explainability methods (like saliency maps) exist, they suffer from two major flaws:
- Architectural Fragmentation: Popular methods are often locked to specific architectures. For instance, Grad-CAM is tailored for CNN convolutional layers, while Transformer Attribution is designed specifically for ViT self-attention blocks.
- Lack of Faithfulness: Many methods fail to properly isolate the specific class of interest, often highlighting class-agnostic background features or failing basic sanity tests (like sensitivity to model weight randomization).
The authors introduce DIX to bridge this gap, offering a mathematically rigorous, universal framework that extracts high-quality explanations regardless of whether the underlying model uses convolutions or self-attention blocks.
Methods
DIX adapts the concept of Integrated Gradients (IG)—which traditionally operates on raw input pixels—and applies it to the model's internal representations.
The core mathematical approach involves computing a line integral along a path from a reference "baseline" representation (representing missing information) to the actual internal representation triggered by the input image.
The implementation details vary elegantly depending on the architecture:
- For CNNs: DIX interpolates over intermediate activation maps. It computes the element-wise product of the interpolated activations and their gradients, capturing regions where filters are both highly active and highly relevant to the target class.
- For ViTs: DIX interpolates over internal attention matrices. It introduces a novel mechanism called Gradient Rollout (GR), a variant of Attention Rollout that scales attention matrices by their gradients before propagating them through the transformer blocks.
Crucially, DIX does not rely on a single layer. It aggregates explanation maps across multiple deep layers (e.g., DIX2 uses the last two layers, DIX3 uses the last three layers) via summation to capture a richer spectrum of semantic features.
Datasets
The authors evaluated DIX using a variety of standard computer vision benchmarks:
- ImageNet (ILSVRC 2012): The validation set (50,000 images) was used to conduct extensive perturbation and information-curve tests.
- ImageNet-Segmentation (IN-Seg): A subset of 4,276 annotated images used to evaluate object localization accuracy.
- Microsoft Common Objects in Context (COCO) 2017: 5,000 images used to test performance on complex, multi-label scenes.
- PASCAL Visual Object Classes (VOC) 2012: 1,449 images used for standard object segmentation benchmarking.
Key Insights and Ideas
- Multi-Layer Aggregation is Essential: Instead of looking only at the final layer, combining explanations from the last few layers yields a much cleaner signal. Ablation studies showed that summing these layers outperforms multiplying them; multiplication acts like an intersection operator that overly restricts the explanation map.
- Internal Integration Filters Noise: Moving path integration from raw pixels to internal feature spaces naturally filters out low-level pixel noise, resulting in highly localized, semantic heatmaps.
- Sensitivity to the Model: DIX successfully passes rigorous sanity tests (parameter and data randomization). This proves that the generated maps are truly reflective of the model's learned weights and data labels, rather than acting as simple edge detectors.
Key Results
DIX was compared against a massive suite of baselines, including Grad-CAM, Layer-CAM, Integrated Gradients, and Transformer Attribution.
Quantitative Performance
On ImageNet perturbation tests, DIX3 consistently outperformed all baselines. For example, under the Negative Perturbation AUC metric (where higher is better, indicating the method successfully identifies the most critical pixels), DIX3 achieved 57.13 on ResNet101 and 56.94 on ViT-Base, outperforming all architecture-specific baselines.
In weakly-supervised semantic segmentation tasks, DIX achieved the highest Pixel Accuracy (PA) and mean IoU (mIoU) across all three evaluation datasets (IN-Seg, COCO, VOC), demonstrating its superior localization capabilities.
Qualitative Performance
Visually, DIX produces significantly tighter, more precise heatmaps that accurately isolate the target object even in crowded or confusing backgrounds.
As shown in Figure 1, when distinguishing specific classes like "sturgeon" or "accordion," DIX accurately targets the object of interest, whereas gradient-free or single-layer methods often bleed into the background. A similar precision advantage is visible when applying DIX to Vision Transformers:
Limitations and Future Work
- Computational Overhead: Because DIX relies on path integration, it requires approximating an integral using multiple steps (the authors use $N=10$). This makes it computationally heavier than single-forward-pass methods like Grad-CAM, though its complexity remains on par with standard Integrated Gradients.
- Spatial Structure Preservation: The method assumes that intermediate layers preserve the spatial structure of the input image. While this holds true for standard CNNs and ViTs, it might restrict DIX's application to architectures that discard spatial dimensions early in the network.
The authors suggest that future work could explore adapting this universal integration framework to multi-modal models or other domains like Natural Language Processing.
Summary updated