DD-CAM: Minimal Sufficient Explanations for Vision Models Using Delta Debugging

Krishna Khadka, Yu Lei, Raghu Kacker, D. Richard KuhnNeurIPS 2026

TL;DR

When we ask a deep vision model why it saw a bird or a lung lesion, standard heatmap techniques average together all of the model’s internal features—mixing critical evidence with incidental background noise. By borrowing a classic bug-hunting algorithm from software engineering called "delta debugging," DD-CAM strips away every redundant internal feature until only a minimal, decision-preserving core remains. The result is a dramatically sharper, clutter-free visual explanation that excels in high-stakes fields like medical imaging.

What Problem Does This Paper Address?

Deep vision models—both Convolutional Neural Networks (CNNs) and Vision Transformers (ViTs)—are notoriously opaque. To peek inside, researchers rely heavily on Class Activation Mapping (CAM) methods (like Grad-CAM), which generate "saliency maps" highlighting the pixels a model used to make its prediction.

However, existing CAM techniques share a subtle flaw: they assign an importance weight to every single late-layer internal unit (feature maps in CNNs, or patch tokens in ViTs) and sum them all up. Even units that contributed only incidentally get a vote. This produces diffuse, blurry heatmaps that spill over into irrelevant background regions, obscuring what the model actually needed to make up its mind. In safety-critical domains like radiology, "somewhere in this general blurry area" isn't good enough.

Figure 1: Existing CAM methods aggregate contributions from all K feature maps, producing diffuse saliency maps that mix essential and incidental regions. DD-CAM aggregates only the minimal subset S⋆found by delta debugging, masking non-essential feature maps to produce a focused saliency map that preserves the prediction.

Methods

Instead of weighting all internal units, the authors reframe visual explanation as finding a 1-minimal sufficient subset ($S^\star$). A subset of internal units is sufficient if keeping only those units active preserves the model's top-1 prediction, and 1-minimal if removing any single remaining unit flips that prediction. (Finding the absolute smallest possible set is NP-hard, so 1-minimality offers a tractable, local guarantee that every retained unit is genuinely necessary.)

To find $S^\star$ without relying on noisy gradients, the authors adapt delta debugging—an algorithm originally invented to isolate minimal bug-inducing code changes. Here, the model's prediction is the "bug" we want to preserve, and internal units are the components we test by masking them out:

  • Clean masking: Unlike input-space methods that blur or black out image pixels (which can push images out-of-distribution), DD-CAM masks representations cleanly inside the network—zeroing out CNN feature maps or applying $-\infty$ pre-softmax attention masks to ViT patch tokens (while keeping the CLS token intact).
  • Exploiting classifier structure: DD-CAM adapts its search to the model's final head. For linear heads (like ResNet's GAP+FC) where units don't interact, it prunes unhelpful units and runs fast, iterative single-unit removal passes. For non-linear heads (like VGG's dense layers or ViT self-attention) where units interact, it uses recursive partition-and-reduce—testing and discarding whole chunks of units at once before narrowing down to finer partitions.

Finally, DD-CAM weights only the surviving units in $S^\star$ by how much the target logit drops when each is individually removed, yielding a crisp saliency map.

Datasets

The authors evaluate DD-CAM on three established benchmarks (no new datasets are introduced):

  • ILSVRC2012 (ImageNet): 2,000 validation images for evaluating faithfulness, plus 100 images for stability testing.
  • NIH ChestX-ray14: 791 chest radiographs containing 884 radiologist-drawn bounding boxes to test clinical localization.
  • CUB-200-2011: 300 test images with bounding boxes across 200 bird species for fine-grained localization.

Key Insights and Ideas

  • Software engineering meets XAI: Treating a neural network's prediction like a software failure to be isolated via combinatorial reduction gives visual explanations a formal necessity-and-sufficiency guarantee at the representation level.
  • Different channels, same pixels: Delta debugging isn't unique—shuffling the order in which channels are tested yields almost completely disjoint sets of surviving channels on ResNet-50 (median Jaccard similarity of just 0.002). Yet, remarkably, those different channel subsets produce nearly identical saliency maps (median IoU of 1.000, pixel-identical on 55% of images!). Deep networks have massive channel redundancy, meaning many distinct combinations of internal detectors fire on the exact same canonical spatial region.
  • Architecture-aware efficiency: Recognizing when internal units act independently versus interactively lets DD-CAM skip combinatorial search on linear-head CNNs, running in 0.347s per image—4.5$\times$ faster than perturbation baselines like Score-CAM (1.646s).

Key Results

Evaluated across eight CNN and ViT architectures against 13 baselines (7 CAM-based, 6 non-CAM like SHAP, LIME, and SIS):

  • Faithfulness: DD-CAM wins 13 out of 18 metric-group cells on ImageNet (11 statistically significant at $p < 0.001$), achieving top composite faithfulness (ADCC of 0.809 on linear CNNs, 0.787 on non-linear CNNs, and 0.833 on ViTs).
  • Clinical & Fine-Grained Localization: On NIH ChestX-ray14 (using DenseNet-121), DD-CAM improves IoU by 45% (0.263 vs. 0.181) and F1 by 22% (0.425 vs. 0.348) over the strongest baseline (Recipro-CAM), and achieves 4.4$\times$ the IoU of standard Grad-CAM (0.060). While baselines fragment attention across up to 6.42 separate blobs, DD-CAM isolates a single coherent region (1.00 region/image). On CUB-200-2011, it beats the runner-up by +18% IoU and +14% F1.
Figure 3: Qualitative localization examples on NIH ChestX-ray14. DD-CAM consistently isolates a single, compact pathological region while baselines vary between diffuse and fragmented responses. Comparisons against non-CAM baselines on the same dataset are shown in Figure 7 (Appendix P).

Limitations and Future Work

  • Limitations: DD-CAM requires white-box access to internal layers and still upsamples low-resolution feature maps, inheriting CAM's coarse spatial precision. Because 1-minimality is a local optimum rather than global minimum cardinality, smaller sufficient subsets may exist, and excluded units might still hold valid, redundant evidence. It is also slower than single-backward-pass gradient methods (taking 0.35s–1.93s vs. <0.05s for Grad-CAM).
  • Future Work: The authors plan to use 1-minimal subsets for model debugging and bias auditing—pinpointing exact internal units responsible for spurious correlations or misclassifications—and aim to extend the delta-debugging framework to Large Language Models.

Summary updated

Abstract

Class Activation Mapping (CAM) and related saliency techniques are widely used to explain predictions of deep vision models, producing post-hoc saliency maps that highlight image regions a model relied on. However, existing CAM methods aggregate weighted contributions over the full set of internal units, including units whose contribution may be incidental. The resulting saliency maps are often diffuse and obscure which units are actually sufficient to preserve the prediction. We reframe visual explanation as the selection of a 1-minimal sufficient subset of internal representational units, feature maps in CNNs and patch tokens in ViTs, whose joint activation preserves the model's prediction. A subset is 1-minimal sufficient if removing any single unit changes the prediction. We propose DD-CAM, a gradient-free procedure adapted from delta debugging in software engineering that instantiates this formulation. DD-CAM exploits classifier-head structure with two algorithms: iterative single-unit removal for non-interacting heads (GAP+FC), and recursive partition-and-reduce for interacting heads (multi-layer FC stacks and ViT self-attention). On 2,000 ImageNet validation images across eight CNN and ViT architectures, DD-CAM is the strongest method on 13 of 18 faithfulness metric-group cells against CAM-based and non-CAM baselines. On the NIH ChestX-ray14 bounding-box set, DD-CAM improves IoU by 45% and F1 by 22% over the strongest baseline while producing single-region saliency maps. These results suggest that necessity-grounded internal-unit selection can produce more focused and faithful explanations than weighted aggregation over all units, with particular promise for safety-critical settings such as medical imaging.
BibTeX
@inproceedings{khadka2026dd,
  author = {Krishna Khadka and Yu Lei and Raghu Kacker and D. Richard Kuhn},
  title = {{DD-CAM: Minimal Sufficient Explanations for Vision Models Using Delta Debugging}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=a30XWAYlaJ},
}
Figure