This paper introduces REPEAT, a new framework designed to improve how we estimate uncertainty in the explanations of unsupervised representation learning models. By shifting the focus from numerical score variability to the certainty of importance, REPEAT provides more intuitive and reliable insights into what deep learning models are actually "looking at."
TL;DR
REPEAT models pixel importance as a Bernoulli random variable, allowing it to estimate the probability and certainty that a pixel is important for a model's internal representation. This approach significantly outperforms existing methods in sanity checks, out-of-distribution detection, and identifying poisoned data, all while producing more concise and interpretable uncertainty maps.
What Problem Does This Paper Address?
As deep learning models become more complex, understanding why they make certain decisions is critical, especially in safety-sensitive fields like healthcare. While Explainable AI (XAI) for supervised tasks is well-studied, Representation Learning XAI (R-XAI)—which explains the internal features learned without labels—is a newer frontier.
Current R-XAI methods (like RELAX) provide uncertainty estimates by measuring the numerical variability of importance scores. However, the authors argue this is the wrong metric. A pixel might have a high variance in its score but still be consistently "important" (above a certain threshold). Existing methods would flag this as highly uncertain, which is counter-intuitive for a human user. The real question users want answered is: "How certain are we that this pixel is important?"
Methods
The authors propose REPEAT (REpresentation learning Pixel-wise Explanation with Adaptive Thresholding). The core idea is to treat each pixel as a Bernoulli random variable (RV) that is either "important" (1) or "unimportant" (0).
The process works as follows:
- Stochastic Sampling: Leverage a base stochastic R-XAI method (like RELAX) to generate $K$ different importance maps for a single image.
- Adaptive Thresholding: For each map, apply a classic image thresholding technique (like Mean or Otsu’s method) to binarize the pixels into foreground (important) and background (unimportant).
- Estimation: The final importance is calculated as a weighted sample mean of these binary realizations. The uncertainty is then the variance of this Bernoulli distribution ($p(1-p)$).
- Efficiency Optimization: To make this computationally feasible, the authors derived a new empirical bound for the RELAX method, reducing the number of masks needed per run without sacrificing accuracy.
Datasets
The researchers evaluated REPEAT across a variety of standard and specialized computer vision datasets:
- Pascal-VOC and MS-COCO: Used for general evaluation and sanity checks.
- EuroSAT (satellite imagery) and FashionMNIST: Used as out-of-distribution (OOD) data to test if the uncertainty estimates could flag unfamiliar inputs.
- CIFAR-10: Used for a downstream task involving the detection of "poisoned" data.
Key Insights and Ideas
- Certainty vs. Precision: The fundamental "aha" moment is that human-centric XAI should prioritize the certainty of a binary decision (is it important?) over the precision of a continuous score.
- Conciseness is Key: A good uncertainty map shouldn't be noisy. REPEAT produces "concise" explanations where uncertainty is concentrated at critical ambiguous boundaries rather than spread across the entire object.
- Theoretical Bridge: The authors provide a proof connecting REPEAT to Multiple Kernel Learning, showing that their method can be interpreted as a weighted linear scoring function in a reproducing kernel Hilbert space.
- Detecting the Invisible: REPEAT’s uncertainty estimates can reveal subtle "poison" patterns in data that are invisible to standard importance scores.
Key Results
- Sanity Checks: REPEAT was the only method tested that passed the efficient Model Parameter Randomization Test (eMPRT). It achieved scores of 0.44–0.48 (higher is better), while all other baselines, including RELAX, received negative scores.
- OOD Detection: Using uncertainty to detect out-of-distribution data, REPEAT achieved a near-perfect AUROC of 1.000 in several settings, vastly outperforming the base RELAX method which struggled to differentiate between in-distribution and OOD samples.
- Poison Detection: In a task to identify poisoned CIFAR-10 images, REPEAT's uncertainty achieved an AUROC of 0.86, compared to just 0.59 when using importance scores alone.
- Complexity: REPEAT consistently produced lower complexity scores (approx. 9.9 vs 10.8 for RELAX), confirming that its uncertainty maps are more focused and less cluttered.
Limitations and Future Work
The primary limitation is computational overhead. Even with the new efficiency bounds, REPEAT requires running a base R-XAI method $K$ times (the authors suggest $K=10$). While this is manageable, it is still more expensive than a single-pass explanation.
Future work could explore:
- Integrating more advanced Multiple Kernel Learning techniques to improve how realizations are combined.
- Testing REPEAT with a wider variety of stochastic base methods beyond RELAX and Kernel SHAP.
- Applying these certainty estimates to real-world safety-critical pipelines, such as medical diagnostics, to see if they improve human-AI trust.
Summary updated