TL;DR
Current post-hoc explainability methods for image classifiers often rely on "masking" parts of an image with arbitrary values (like black or blurred pixels), which creates unrealistic, out-of-distribution samples that confuse the model. This paper introduces Activation-Deactivation (AD) and a drop-in mechanism called CONVAD, which instead "switches off" the specific neurons in a CNN that correspond to the masked regions, resulting in explanations that are up to 62.5% more robust without requiring domain-specific tuning.
What Problem Does This Paper Address?
To understand why a model classified an image as a "Starfish," researchers often use black-box explainability (XAI) tools. These tools typically create "mutants"—versions of the image where parts are occluded—to see which parts are essential for the classification.
However, this approach has two major flaws:
- Out-of-Distribution (OOD) Inputs: Replacing a patch of an image with a solid black square creates a "Frankenstein" image the model never saw during training. The model’s reaction to this weird input might not reflect its actual logic on the original image.
- The Occlusion Value Problem: Should you mask with zero (black), the average pixel value, or random noise? There is no consensus, and the "best" value changes depending on the dataset and model.
The authors argue that we shouldn't be changing the input to simulate absence; we should be changing the model to ignore specific features.
Methods
The authors propose the Activation-Deactivation (AD) framework. Instead of perturbing the input pixels, AD identifies the internal activations (features) that map to the regions we want to ignore and deactivates them during the forward pass.
Key components include:
- CONVAD: A specific implementation for Convolutional Neural Networks (CNNs). It acts as a "drop-in" mechanism that doesn't require retraining.
- Checkpoints: Strategic locations in the network (usually before operations that resize or average data, like pooling or strided convolutions) where the deactivation occurs.
- Position-Attribution Function ($\Phi$): A function that tracks which internal activations correspond to which input pixels, ensuring that when a region is "masked," the correct neurons are silenced.
- Variadic Functionality: By deactivating neurons, CONVAD effectively treats the CNN as a "variadic function"—one that can accept a variable number of inputs—allowing the model to process only the "unmasked" sub-network.
Datasets
The researchers evaluated their method across three major CNN architectures (ResNet-50, RegNetY-12GF, and EfficientNet-V2) using four standard datasets:
- ImageNet-1k: The gold standard for image classification.
- ImageNet-v2: A robust version of ImageNet designed to test generalization.
- CalTech-256: A diverse dataset of 256 object categories.
- PASCAL-VOC: A widely used dataset for object detection and segmentation.
Key Insights and Ideas
- Sub-networks are the Key: The AD framework intuitively finds a minimal sub-network within the original model that still reaches the correct decision. Because this sub-network is part of the original, it remains "in-distribution" for the decision paths.
- The Fallacy of the "Best Mask": The paper demonstrates that there is no single best masking value (Min, Max, Avg, Zero) across different datasets. AD removes this guesswork entirely by deactivating the model's response rather than inventing new pixel values.
- Theoretical Soundness: The authors prove (Theorem 1) that CONVAD does not change the model's decision-making process during regular inference (when no mask is applied). It is a mathematically rigorous restriction of the original function.
- Meaningful Size: AD explanations tend to be slightly larger than those produced by traditional masking. The authors suggest this is a feature, not a bug: models often rely on more context than traditional XAI tools suggest, and AD captures a more complete picture of the model's reasoning.
Key Results
The primary metric used was $\rho$-robustness, which measures how often a model correctly identifies the object when the explanation (the "important" part of the image) is "planted" onto 100 different random backgrounds.
- Superior Robustness: AD explanations were consistently more robust than all other masking strategies, showing improvements of up to 62.5% compared to traditional occlusion-based methods.
- Consistency: While methods like "Mean masking" might work well on one dataset but fail on another, AD was "among the best, and usually the best" across every tested combination of model and dataset.
- LIME Integration: The authors showed that AD could even improve the results of other popular XAI tools like LIME, proving the framework's versatility.
Limitations and Future Work
- Leakage Scenarios: In certain edge cases—such as when a convolution window straddles the boundary between a masked and unmasked region—it is difficult to perfectly separate the effects. The authors use a threshold ($\tau$) to manage this, but it remains a technical challenge.
- Architecture Scope: While the paper focuses on CNNs, modern AI is increasingly dominated by Transformers (ViTs). The authors note that extending AD to other architecture classes is "straightforward" but did not include those results in this specific paper.
- Human Trust: While the explanations are mathematically more robust, the paper does not include a user study to confirm if humans find these larger, more robust explanations more helpful or trustworthy in practice.
Summary updated